Bug 99021 - HDMI crackling/distorted sound AMD radeon 290X
Summary: HDMI crackling/distorted sound AMD radeon 290X
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Sound(ALSA) (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Jaroslav Kysela
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-27 10:27 UTC by Daniele Peruzzi
Modified: 2015-05-27 14:19 UTC (History)
1 user (show)

See Also:
Kernel Version: 4.0.4
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmesg output (73.95 KB, text/plain)
2015-05-27 10:27 UTC, Daniele Peruzzi
Details
lspci output (21.65 KB, text/plain)
2015-05-27 10:28 UTC, Daniele Peruzzi
Details
aplay output (966 bytes, text/plain)
2015-05-27 10:29 UTC, Daniele Peruzzi
Details
Test fix patch (651 bytes, patch)
2015-05-27 10:47 UTC, Takashi Iwai
Details | Diff
dmesg output after patch and after disabled my workaround (71.23 KB, text/plain)
2015-05-27 13:34 UTC, Daniele Peruzzi
Details
Revised patch (664 bytes, patch)
2015-05-27 13:37 UTC, Takashi Iwai
Details | Diff
dmesg output after the patch solved my issue (71.35 KB, text/plain)
2015-05-27 14:15 UTC, Daniele Peruzzi
Details

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.

Note You need to log in before you can comment on or make changes to this bug.