Page 1 of 1

Three sound cards all changing card number

Posted: 2024-10-29 14:40
by user1213213
How do I ensure my aplay -l card number remains the same and do not jump around changing numbers all the time. I have three sound cards. It's giving me trouble with Music Player Demon. Thank you.

Code: Select all

**** List of PLAYBACK Hardware Devices ****
card 0: DG [Xonar DG], device 0: Multichannel [Multichannel]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: DG [Xonar DG], device 1: Digital [Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Intel [HDA Intel], device 0: ALC887-VD Analog [ALC887-VD Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: Intel [HDA Intel], device 1: ALC887-VD Digital [ALC887-VD Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Re: Three sound cards all changing card number

Posted: 2024-10-29 15:22
by sunrat
There are several ways to do this, all explained in the Arch wiki - https://wiki.archlinux.org/title/Advanc ... sound_card
You could probably disable the onboard card in UEFI settings if you don't use it. Otherwise the kernel module options method is simple if your cards use different kernel modules. For PCI devices you can find which modules are in use with:

Code: Select all

lspci -k | grep -i -A 3 audio
The USB device will probably use the snd-usb-audio module.

Re: Three sound cards all changing card number

Posted: 2024-10-29 16:22
by user1213213
Debian should be ashamed of itself.

Re: Three sound cards all changing card number

Posted: 2024-10-29 16:39
by user1213213
sunrat wrote: 2024-10-29 15:22 There are several ways to do this, all explained in the Arch wiki - https://wiki.archlinux.org/title/Advanc ... sound_card
You could probably disable the onboard card in UEFI settings if you don't use it. Otherwise the kernel module options method is simple if your cards use different kernel modules. For PCI devices you can find which modules are in use with:

Code: Select all

lspci -k | grep -i -A 3 audio
The USB device will probably use the snd-usb-audio module.
Thank you sir. This is whipping my audio-server into shape.