Skip to contentSkip to conversation

HDA ATI HDMI: no sound with 3.0 - 2.6.39.3 works

Bug 39832 [email protected] 1 participant 17 messages Aug 14, 2011 – Nov 9, 2016 1 message not in the archive Sound

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=39832

Rafael J. Wysocki <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

          Component|Sound(ALSA)                 |Video(DRI - non Intel)
         AssignedTo|[email protected]              |drivers_video-dri@kernel-bu
                   |                            |gs.osdl.org
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#2 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=39832

--- Comment #11 from Michel Dänzer <[email protected]> 2011-08-29 17:46:25 --- If you want to consider this a regression, it was caused by the currently best known fix for another regression: enabling HDMI audio by default caused blank screens and display problems. Are you seriously suggesting going back to that would be the better?

--- Comment #12 from Andreas Steinmetz <[email protected]> 2011-09-02 00:21:00 --- I am suggesting that if audio is disabled by default the HDMI output must not be advertised as an alsa device. If the device is not there users will look for what switch to use to enable the device if the device works for them with no side effects. The way it is now is a cable that is plugged in on both sides but after a long search is apparently broken somewhere in between. You know, probably from experience, that this state of affairs is no fun. That's what I'm seriously suggesting.

Signature · 7 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=39832

--- Comment #13 from Florian Mickler <[email protected]> 2011-09-02 09:47:04 --- (I don't know the details of this bug, but am just responding to comment #11) @Michel: Fixing regressions without introducing other regressions is a prerequisite for being sure of forward progress. Else it's possible we are going in circles. The policy on the linux kernel is: no regressions. So, we revert even fixes if they cause _new_ regressions.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#4 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=39832

--- Comment #14 from Alex Deucher <[email protected]> 2011-09-02 13:44:29 --- (In reply to comment #13)

Quoted 5 lines

(I don't know the details of this bug, but am just responding to comment #11) @Michel: Fixing regressions without introducing other regressions is a prerequisite for being sure of forward progress. Else it's possible we are going in circles. The policy on the linux kernel is: no regressions. So, we revert even fixes if they cause _new_ regressions.

Not being able to see your screen(s) seems like a bigger issue than having to set an option to enable audio. Although, audio support itself regressed working video for the bad cases originally, so audio support was a regression as well for some people.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#5 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=39832

Xavier Bestel <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #15 from Xavier Bestel <[email protected]> 2011-09-02 14:19:17 --- I think the problem is that the audio device is *advertised* as working, although it doesn't.
radeon should just stop advertising audio if radeon.audio isn't set.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#6 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=39832

--- Comment #16 from Alex Deucher <[email protected]> 2011-09-02 14:33:03 --- (In reply to comment #15)

Quoted 3 lines

I think the problem is that the audio device is *advertised* as working, although it doesn't.
radeon should just stop advertising audio if radeon.audio isn't set.

The GPU driver doesn't advertise/handle the audio device. The alsa driver does. All the GPU driver does is enable the audio packets in the HDMI stream. I don't think there's a way for the gpu driver to tell the alsa driver not to load. Moreover, there are audio devices on certain boards with where the audio can be sent to either hdmi or regular audio ports so you would still want it that case.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#7 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=39832

James Cloos <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #17 from James Cloos <[email protected]> 2011-09-03 11:00:01 --- [I tried to send this via mail; but that pends hera’s return....]

I occasionally have to connect my compute node to the TV in the other room to fix or diagnose issues, and looked into the hdmi audio the last time I did so.

While using KMS, the TV constantly complained that the audio packets were corrupt.

After moving the box back, I extended the EDID reporting tools to handle the audio bits and found that the TV only advertises support for 16 bit 48 kHz PCM 2-channel stereo audio. ALSA, OTOH, was trying to send 5.1.

Some time ago I read a thread on some list (lkml? xorg-driver-ati?) where the decision was made to ignore the EDID advertisements because some hdmi switches (I presume amplifiers) pass through the TV’s EDID even though they support more audio options and do not pass the audio through to the TV.

I suspect, but have not had the opportunity to test, that forcing the driver to only send 16 bit 48 kHz PCM 2-channel stereo audio would appease the TV and allow things to Just Work™.

I additionally suspect that were I to place an hdmi-connected amp between the box and the TV things also would Just Work.

If so, the proper solution is to honour the EDID advert by default and to provide sysfs configuration to override the EDID limits and to specify the set of audio options which the driver may output over the hdmi link.

Some of the legacy ati cards get their hdmi audio support from a different file in the kernel src; that file limits output to two audio channels. Adding one’s card’s pci id to that driver and recompiling the kernel might be a reasonable way to test my hypothesis – a method I’ve prepared to do the next time I need to lug the box out there. Edit sound/pci/hda/patch_hdmi.c and add something like:

sound/pci/hda/patch_hdmi.c +0 -0
index bd0ae69..3870853 100644
@@ -1632,2 +1632,3 @@ static const struct hda_codec_preset

snd_hda_preset_hdmi[] = {

 { .id = 0x1002791a, .name = "RS690/780 HDMI",  .patch = patch_atihdmi },
+{ .id = 0x1002970f, .name = "RS880 HDMI",      .patch = patch_atihdmi },
 { .id = 0x1002aa01, .name = "R6xx HDMI",       .patch = patch_generic_hdmi },

@@ -1679,2 +1680,3 @@ MODULE_ALIAS("snd-hda-codec-id:10027919");
MODULE_ALIAS("snd-hda-codec-id:1002791a");
+MODULE_ALIAS("snd-hda-codec-id:1002970f");
MODULE_ALIAS("snd-hda-codec-id:1002aa01");

(where 0x1002970f is the id of the 890GX chipset’s onboard graphics).

I cannot do much testing here (unless someone wants to loan me a 10+ meter hdmi cable and a wireless keyboard ☺); lugging that box around is a RPITA™. But I’ll do what I can.

Signature · 7 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#9 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=39832

--- Comment #19 from Jonathan Nieder <[email protected]> 2012-02-17 05:38:13 --- (In reply to comment #18)

Quoted 1 line

Is this still a problem in 3.2 / 3.3-rc1?

Here's a report using 3.0 and 3.2.4:
http://bugs.debian.org/659673

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#10 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=39832

Carlos <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #20 from Carlos <[email protected]> 2012-05-15 20:53:42 --- I can confirm that this bug still a problem Kernel Linux 3.2.0. I tried everything I found all forums. Simply doesnt work.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#11 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=39832

--- Comment #21 from Rafał Miłecki <[email protected]> 2012-05-17 07:14:14 --- (In reply to comment #20)

Quoted 2 lines

I can confirm that this bug still a problem Kernel Linux 3.2.0. I tried everything I found all forums. Simply doesnt work.

This bug(report) is only about disabling audio by default. By setting radeon.audio=1 you go back to the earlier behavior.

So I guess you must be seeing another issue, please create another bug report or ask for help for ex. at: [email protected]

Signature · 7 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#12 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=39832

--- Comment #22 from Carlos <[email protected]> 2012-05-17 11:14:02 --- Thanks for the reply. In fact, I already try the radeon.audio=1 settings, as well to play sound with command sudo aplay -D plughw:1,3 (music).mp3 and nothing. I tried as well kernel 3.3 no luck. I will create another bug.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#13 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=39832

Santiago Garcia Mantinan <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #23 from Santiago Garcia Mantinan <[email protected]> 2012-05-25 06:21:20 --- Hi, I'm the one that submitted the problem in Comment #19 From Jonathan Nieder, I have now uploaded to alsa the alsa-info.sh collected data and tests include 3.3.6.

Here are the kernels for which I submitted the info and the link to the info submitted.

ii  linux-image-2.6.39-2-686-pae         2.6.39-3
ii  linux-image-3.2.0-2-686-pae          3.2.17-1
ii  linux-image-3.3.0-trunk-686-pae      3.3.6-1~experimental.1

3.2.17
http://www.alsa-project.org/db/?f=1065dc2b77cb999525747f08238309c2de1013c9
3.3.6
http://www.alsa-project.org/db/?f=499ea9e973c6119416e9356e23451250893048d5
2.6.39
http://www.alsa-project.org/db/?f=9c9b0c9e26c1bc570e15ed12b23d8b6ff1386ae5

I have previously tested 3.0 and 3.1 kernels and were also working, in I had to go to 2.6.39 to find a working kernel.

I don't have access to the machine at anytime that is why it took so long to report back, I hope I can test 3.4 soon but I don't think that will make any change.

Hope this helps identify the bug, regards.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#14 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=39832

--- Comment #24 from Santiago Garcia Mantinan <[email protected]> 2012-05-25 07:35:48 --- About my previous message... when I talk about 3.0 and 3.1 I meant that they were also failing, not working, 2.6.39 was the last working one for me, I tested all the series since that one and they were all broken.

Hope this clarifies a bit and sorry for the confusion.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#15 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=39832

--- Comment #25 from Santiago Garcia Mantinan <[email protected]> 2012-07-16 06:54:36 --- I have just tested 3.4.4 and I got no sound again, however this time the kernel said this:

[   81.186129] hda-intel: IRQ timing workaround is activated for card #0.

Suggest a bigger bdl_pos_adj.

I hope this helps!

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#17 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=39832

Szőgyényi Gábor <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #26 from Szőgyényi Gábor <[email protected]> --- Please try this bug with latest kernel image.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel