Bug 99021

Summary: HDMI crackling/distorted sound AMD radeon 290X
Product: Drivers Reporter: Daniele Peruzzi (amnesiac2001)
Component: Sound(ALSA)Assignee: Jaroslav Kysela (perex)
Status: RESOLVED CODE_FIX    
Severity: normal CC: tiwai
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.0.4 Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg output
lspci output
aplay output
Test fix patch
dmesg output after patch and after disabled my workaround
Revised patch
dmesg output after the patch solved my issue

Description Daniele Peruzzi 2015-05-27 10:27:27 UTC
Created attachment 178051 [details]
dmesg output

I'm experiencing crackling/distorted sound output using my AMD 290X via HDMI cable.
I found as a workaround to set an alsa-base.conf in /etc/modprobe.d as follow:

options snd_hda_intel snoop=0

Is that the correct way to fix the issue?



My configuration is

- linux kernel 4.0.4
- alsa-firmware/alsa-lib/alsa-plugins/alsa-tools/alsa-utils 1.0.29
- mesa 10.5.6


Thanks
Comment 1 Daniele Peruzzi 2015-05-27 10:28:58 UTC
Created attachment 178061 [details]
lspci output
Comment 2 Daniele Peruzzi 2015-05-27 10:29:44 UTC
Created attachment 178071 [details]
aplay output
Comment 3 Takashi Iwai 2015-05-27 10:47:23 UTC
Could you try the patch below?
Comment 4 Takashi Iwai 2015-05-27 10:47:45 UTC
Created attachment 178081 [details]
Test fix patch
Comment 5 Daniele Peruzzi 2015-05-27 13:32:29 UTC
I tried the patch against a vanilla 4.0.4 kernel and it didn't work, audio corruption still there.
Comment 6 Daniele Peruzzi 2015-05-27 13:34:59 UTC
Created attachment 178111 [details]
dmesg output after patch and after disabled my workaround
Comment 7 Takashi Iwai 2015-05-27 13:37:13 UTC
Sorry, the patch was wrong.  It should be ATIHDMI_NS.  The fixed one is attached below.
Comment 8 Takashi Iwai 2015-05-27 13:37:32 UTC
Created attachment 178121 [details]
Revised patch
Comment 9 Daniele Peruzzi 2015-05-27 14:12:51 UTC
Ok, it worked that time, this last patch corrects my issue with hdmi audio and my 290X, thanks.
Comment 10 Daniele Peruzzi 2015-05-27 14:15:06 UTC
Created attachment 178131 [details]
dmesg output after the patch solved my issue
Comment 11 Takashi Iwai 2015-05-27 14:19:50 UTC
Great, I'm going to queue the fix.  It'll be backported to stable kernels once when merged to Linus tree.