Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Analog Input to CamillaDSP
#1
Information 
Hello Tim,

I want to use CamillaDSP with some analog input. What follows is surfing on an idea developped here by bitlab.

Suppose this playlist in /var/lib/mpd/playlists/Analog.m3u
Code:
#EXTM3U
#EXTGENRE:Various
#EXTIMG:local
#EXTALB:AnalogCapture
#EXTINF:3600, Analog_Capture
alsa://plughw:CARD=sndrpihifiberry?format=96000:32:2


where CARD is the (capture capable) device in use by moOde and format specifies the settings in MPD's SoX resampling.

As far as I can hear, this works perfectly when "format" is specifed correctly.

This conforms to the audio chain documented in the moOde Audio Infrastructure.

Is there any other consideration if I want to capture sound from one card and playback using moOde rich environment ?

Kind regards,
Reply
#2
Hello again Tim,

This kernel.org Guide to using M-Audio Audiophile USB with ALSA and Jack still quotes very old documentation considering we are at version 6.12.

But ... the warning "the device initialization made by the Alsa driver in default mode may result in a corrupted state of the device" still applies for devices offering 24bits 96kHz still holds.

I created the following USBAudio.conf in /etc/modprobe.d/:
Code:
# USB devices
# This configuration defines as the first USB audio card a fake device that is never enabled.
# In theory, the index of the first USB device is replaced by a value of -2 to prevent other
# drivers from grabbing index 0.This behavior is not clearly documented and is avoided here.

options    snd_usb_audio   vid=0x0000,0x1235 pid=0x0000,0x8210 device_setup=0x00,0x1D index=0,7 enable=0,1

# Detailed configuration:

# Advanced Linux Sound Architecture Driver Version k4.19.71-rt24-v7l+.
# Available USB audio devices:
# -----------------------------------------------------------
#
#  7 [USB            ]: USB-Audio - Scarlett 2i2 USB
#                       Focusrite Scarlett 2i2 USB at usb-0000:01:00.0-1.1, high speed
#                       index=7, vid=0x1235, pid=0x8210, device_setup=0x0
#

This USB device becomes moOde output device within its rich environment.

The HiFiBerryDACplusADCPro is used as an analog input device.

In case the above is not obvious, the Audio settings sets the 'Output device' as the USB card and the 'DT overlay' setting is set to 'hifiberry-dacplusadcpro'.

So far, everything works fine.

Regards,
Reply


Forum Jump: