I was trying to blacklist the module for the sound card on the GPU by blocking the module listed in
/proc/asound/modules. Unfortunately all of the cards even the radeon sound card listed snd-hda-intel as their driver so blacklisting was no option as it would have killed all my sound.
Fortunately an employee at my university found a workaround:
He used this chain of commands to tell ALSA not to use the radeon audio device
cat << EOF > /etc/modprobe.d/my-alsa.conf
options snd-hda-intel index=1,2,3 vid=0x8086,0x8086,0x1002 pid=0x9c20,0x9c32,0xaab0
alias snd-sound-slot-2 off
EOF
(or create a file named /etc/modprobe.d/my-alsa.conf and add the towo lines in the middle)
Sound slot off deactivates the third card (counting starts at 0 therefore slot 2).
You can get the index of your sound cards by executing LANG=C aplay -l which looks like this for me:
After that he told me that the init ram disk has to be rebuilt which he did by executing this command.
update-initramfs -k all -u
After a reboot my sound works flawlessly now.
As it stands the bug is not fixed but can be avoided this way. The downside is, that I have no hdmi audio because of that.
EDIT: During me writing this message the sound stopped working again. I have no idea why.
TEMPORARY WORKAROUND (Worked for a short time)
I was trying to blacklist the module for the sound card on the GPU by blocking the module listed in modules. Unfortunately all of the cards even the radeon sound card listed snd-hda-intel as their driver so blacklisting was no option as it would have killed all my sound.
/proc/asound/
Fortunately an employee at my university found a workaround:
He used this chain of commands to tell ALSA not to use the radeon audio device
cat << EOF > /etc/modprobe. d/my-alsa. conf 0x8086, 0x1002 pid=0x9c20, 0x9c32, 0xaab0
options snd-hda-intel index=1,2,3 vid=0x8086,
alias snd-sound-slot-2 off
EOF
(or create a file named /etc/modprobe. d/my-alsa. conf and add the towo lines in the middle)
Sound slot off deactivates the third card (counting starts at 0 therefore slot 2).
You can get the index of your sound cards by executing LANG=C aplay -l which looks like this for me:
root@HP- EliteBook- 850-G1: ~# LANG=C aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: PCH [HDA Intel PCH], device 0: 92HD91BXX Analog [92HD91BXX Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 3: HDMI_1 [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 3: HDMI_1 [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
It lists my radeon audio device as card3
After that he told me that the init ram disk has to be rebuilt which he did by executing this command.
update-initramfs -k all -u
After a reboot my sound works flawlessly now.
As it stands the bug is not fixed but can be avoided this way. The downside is, that I have no hdmi audio because of that.
EDIT: During me writing this message the sound stopped working again. I have no idea why.