Three sound cards all changing card number

Here you can discuss every aspect of Debian. Note: not for support requests!
Post Reply
Message
Author
user1213213
Posts: 18
Joined: 2024-10-25 13:17

Three sound cards all changing card number

#1 Post 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

User avatar
sunrat
Site admin
Site admin
Posts: 7339
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 130 times
Been thanked: 642 times

Re: Three sound cards all changing card number

#2 Post 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.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

user1213213
Posts: 18
Joined: 2024-10-25 13:17

Re: Three sound cards all changing card number

#3 Post by user1213213 »

Debian should be ashamed of itself.

user1213213
Posts: 18
Joined: 2024-10-25 13:17

Re: Three sound cards all changing card number

#4 Post 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.

Post Reply