[FrontPage] [TitleIndex] [WordIndex

Daffodil USB Sound Adapter

(Model No.: US01)

DSCN0544rs.png

Default Setup (BCM Audio only):

(Raspbian "Wheezy")

trevor@raspberrypi ~ $ ls -laF /dev/snd/by-path
total 0
drwxr-xr-x 2 root root  60 Sep 10 22:30 ./
drwxr-xr-x 3 root root 140 Sep 10 22:30 ../
lrwxrwxrwx 1 root root  12 Sep 10 22:30 platform-bcm2835_AUD0.0 -> ../controlC0

ie. the on-board BCM audio is the first, and only, sound card at /dev/snd/controlC0.

User is a member of the audio group:

trevor@raspberrypi ~ $ id
uid=1001(trevor) gid=1002(trevor) groups=1002(trevor),29(audio),100(users),1003(cruzer),1004(dtmicro),1006(maxell)

trevor@raspberrypi ~ $ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
sysdefault:CARD=ALSA
    bcm2835 ALSA, bcm2835 ALSA
    Default Audio Device

User is not a member of the audio group:

woody@raspberrypi ~ $ id
uid=1002(woody) gid=1005(woody) groups=1005(woody)

woody@raspberrypi ~ $ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server

After plugging in Daffodil USB (w/o rebooting):

trevor@raspberrypi ~ $ ls -laF /dev/snd/by-path
total 0
drwxr-xr-x 2 root root  80 Sep 12 12:23 ./
drwxr-xr-x 4 root root 220 Sep 12 12:23 ../
lrwxrwxrwx 1 root root  12 Sep 12 12:23 platform-bcm2708_usb-usb-0:1.2:1.0 -> ../controlC1
lrwxrwxrwx 1 root root  12 Sep 12 10:40 platform-bcm2835_AUD0.0 -> ../controlC0
trevor@raspberrypi ~ $ ls -laF /dev/snd/by-id
total 0
drwxr-xr-x 2 root root  60 Sep 12 12:23 ./
drwxr-xr-x 4 root root 220 Sep 12 12:23 ../
lrwxrwxrwx 1 root root  12 Sep 12 12:23 usb-0d8c_C-Media_USB_Headphone_Set-00 -> ../controlC1

ie. the Daffodil device has appeared as a "C-Media_USB_Headphone_Set" sound card at /dev/snd/controlC1.

trevor@raspberrypi ~ $ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
sysdefault:CARD=ALSA
    bcm2835 ALSA, bcm2835 ALSA
    Default Audio Device
sysdefault:CARD=Set
    C-Media USB Headphone Set, USB Audio
    Default Audio Device
front:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    Front speakers
surround40:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    IEC958 (S/PDIF) Digital Audio Output

Simple test:

trevor@raspberrypi ~ $ aplay /usr/share/sounds/alsa/Front_Center.wav -D sysdefault:CARD=Set
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

Various GUI Mixer screenshots:

Mixer#1.png

Mixer#2.png

Mixer#3.png

Enable USB Audio device to be "primary soundcard" ...

trevor@raspberrypi ~ $ cat /etc/modprobe.d/alsa-base.conf
# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7
# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet snd-ioctl32 ; /sbin/modprobe --quiet snd-seq ; }
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modprobe --quiet snd-seq-midi ; : ; }
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && { /sbin/modprobe --quiet snd-emu10k1-synth ; : ; }

# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
# Keep snd-pcsp from beeing loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from beeing loaded as first soundcard
# options snd-usb-audio index=-2

... ie. comment out last line (as per http://elinux.org/RPi_VerifiedPeripherals#USB_Sound_Cards) ...

... And then reboot, resulting in this configuration:

trevor@raspberrypi ~ $ ls -laF /dev/snd/by-path
total 0
drwxr-xr-x 2 root root  80 Sep 12 12:52 ./
drwxr-xr-x 4 root root 220 Sep 12 12:52 ../
lrwxrwxrwx 1 root root  12 Jan  1  1970 platform-bcm2708_usb-usb-0:1.2:1.0 -> ../controlC0
lrwxrwxrwx 1 root root  12 Sep 12 12:52 platform-bcm2835_AUD0.0 -> ../controlC1
trevor@raspberrypi ~ $ ls -laF /dev/snd/by-id
total 0
drwxr-xr-x 2 root root  60 Jan  1  1970 ./
drwxr-xr-x 4 root root 220 Sep 12 12:52 ../
lrwxrwxrwx 1 root root  12 Jan  1  1970 usb-0d8c_C-Media_USB_Headphone_Set-00 -> ../controlC0

trevor@raspberrypi ~ $ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
sysdefault:CARD=Set
    C-Media USB Headphone Set, USB Audio
    Default Audio Device
front:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    Front speakers
surround40:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
sysdefault:CARD=ALSA
    bcm2835 ALSA, bcm2835 ALSA
    Default Audio Device

... and a simpler test:

trevor@raspberrypi ~ $ aplay /usr/share/sounds/alsa/Front_Left.wav -D sysdefault
Playing WAVE '/usr/share/sounds/alsa/Front_Left.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

Audacity being used to record and playback a simple vocal test:

AudacityDaffodil.png


2014-04-17 20:25