USB Sound Card & default device?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I just got a new USB sound card (Schiit Fulla 3, https://www.schiit.com/products/fulla-1). It works great, and I'm using it to play music through CMUS (https://cmus.github.io) on Arch Linux.
However, I can't seem to figure out how to tell ALSA which device to use as a default. When the Fulla 3 is not plugged in, I get:

# cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xa1110000 irq 129

# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC256 Analog [ALC256 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0

# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
jack
JACK Audio Connection Kit
pulse
PulseAudio Sound Server
default:CARD=PCH
HDA Intel PCH, ALC256 Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, ALC256 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, HDMI 0
HDMI Audio Output
hdmi:CARD=PCH,DEV=1
HDA Intel PCH, HDMI 1
HDMI Audio Output
hdmi:CARD=PCH,DEV=2
HDA Intel PCH, HDMI 2
HDMI Audio Output
hdmi:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 3
HDMI Audio Output
hdmi:CARD=PCH,DEV=4
HDA Intel PCH, HDMI 4
HDMI Audio Output
usbstream:CARD=PCH
HDA Intel PCH
USB Stream Output

This is just the internal sound card of my laptop. After I plug in the Fulla 3 on the USB port, I get:

# cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xa1110000 irq 129
1 [Schiit ]: USB-Audio - I'm Fulla Schiit
Schiit Audio I'm Fulla Schiit at usb-0000:00:15.0-1, high speed

# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC256 Analog [ALC256 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Schiit [I'm Fulla Schiit], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0

# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
jack
JACK Audio Connection Kit
pulse
PulseAudio Sound Server
default:CARD=PCH
HDA Intel PCH, ALC256 Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, ALC256 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC256 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, HDMI 0
HDMI Audio Output
hdmi:CARD=PCH,DEV=1
HDA Intel PCH, HDMI 1
HDMI Audio Output
hdmi:CARD=PCH,DEV=2
HDA Intel PCH, HDMI 2
HDMI Audio Output
hdmi:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 3
HDMI Audio Output
hdmi:CARD=PCH,DEV=4
HDA Intel PCH, HDMI 4
HDMI Audio Output
usbstream:CARD=PCH
HDA Intel PCH
USB Stream Output
default:CARD=Schiit
I'm Fulla Schiit, USB Audio
Default Audio Device
sysdefault:CARD=Schiit
I'm Fulla Schiit, USB Audio
Default Audio Device
front:CARD=Schiit,DEV=0
I'm Fulla Schiit, USB Audio
Front speakers
surround21:CARD=Schiit,DEV=0
I'm Fulla Schiit, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Schiit,DEV=0
I'm Fulla Schiit, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=Schiit,DEV=0
I'm Fulla Schiit, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Schiit,DEV=0
I'm Fulla Schiit, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Schiit,DEV=0
I'm Fulla Schiit, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Schiit,DEV=0
I'm Fulla Schiit, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Schiit,DEV=0
I'm Fulla Schiit, USB Audio
IEC958 (S/PDIF) Digital Audio Output
usbstream:CARD=Schiit
I'm Fulla Schiit
USB Stream Output

So far so good. In CMUS, the default settings for the ALSA plugin are:
setting: 'dsp.alsa.device=default'
setting: 'mixer.alsa.channel=PCM'
setting: 'mixer.alsa.device=default'

With these settings, sound gets played on the internal sound card.
My problem is that I can't seem to figure out how to direct sound to the Fulla 3 instead of the internal sound card. So far, the only workable option that I could figure out is to change the module loading order (https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#Set_the_default_sound_card). When I add /etc/modprobe.d/alsa-base.conf:

# cat /etc/modprobe.d/alsa-base.conf
options snd_usb_audio index=0
options snd_hda_intel index=1

then the order of the cards is reversed, and CMUS will output sound to the Fulla 3 rather than to the internal sound card. This method works, but is inconvenient, because switching from one card to the other requires me to edit /etc/modprobe.d/alsa-base.conf and reboot. I'd prefer to just change the ALSA plugin settings inside CMUS, independent of the order of the sound cards. 
Can anyone tell me how to configure CMUS to use the Fulla 3 or the internal sound card, no matter how ALSA sorts the cards? The Fulla 3 has a volume control dial, so I actually wouldn't need volume control from the computer (I guess that's the 'mixer').
Greetings, and thanks a lot,

Hans
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux