folks. I have an external USB sound card witch may, or may not present in the system depending on my actual location. Previously I used this card as default, so configuration like the following worked just fine:
defaults.ctl.card 1 defaults.pcm.card 1 defaults.pcm.dmix.rate 176400 defaults.pcm.dmix.format S32_LE defaults.timer.card 1 But since it is possible not to have this card at all, defining it as default is not working anymore, while I still need to redefine pcm.dmix.rate and pcm.dmix.format for that particular card living system defaults (whatever they are) for builtin card 0.
I did a brief search, but found only examples on defining virtual pcms witch is not what I'm looking for.
aplay -l output:
card 0: PCH [HDA Intel PCH], device 0: Generic Analog [Generic Analog] Subdevices: 0/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 1: Pro [DX3 Pro], device 0: USB Audio [USB Audio] <- optional card of interest Subdevices: 0/1 Subdevice #0: subdevice #0 Then here is my external card configured as fully working dmix "device" with a correct sampling rate and format:
pcm.dx3proDM { type dmix ipc_key_add_uid true ipc_key 2048 # mandatory, mast be unique ipc_perm 0660 ipc_gid audio slave { pcm "hw:1" rate 176400 format "S32_LE" channels 2 period_time 0 period_size 1024 buffer_size 8192 # mandatory parameter } bindings { 0 0 1 1 } } The problem is that dx3proDM is not usable by the system (I can't select ii as an an output device in Audacous for instance).
I still need to redefine default to point to it:
pcm.!default{ type plug slave.pcm "dx3proDM" } Makeing it default again - exactly opposite to what I'm trying to do.
Any ideas here?