Bug 75537 - [hsw] Hdmi audio is buggy
Summary: [hsw] Hdmi audio is buggy
Status: CLOSED INVALID
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Mengdong Lin
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-26 17:43 UTC by BRULE Herman
Modified: 2017-07-24 22:55 UTC (History)
6 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (24.93 KB, text/plain)
2014-02-27 11:30 UTC, BRULE Herman
no flags Details
lspci (1.55 KB, text/plain)
2014-02-27 11:30 UTC, BRULE Herman
no flags Details
lsusb (614 bytes, text/plain)
2014-02-27 11:30 UTC, BRULE Herman
no flags Details

Description BRULE Herman 2014-02-26 17:43:37 UTC
Hello,

I'm with Intel haswell + ASUS B85M-G and dual screen (hdmi + DVI). Hdmi is buggy/crapy. I have hurge distrotion of sound, but it's not noise, it's the tested sound.
I have tested with VLC, aplay, stable and git intel drivers, 3.10.32 linux kernel.

Cheers,
Comment 1 Chris Wilson 2014-02-26 22:17:53 UTC
You need to be much more precise in your description of the audio issue and if it is related to any particular configuration, knowing that would be very useful.
Comment 2 BRULE Herman 2014-02-26 23:29:43 UTC
What details I can add?
It's related to intel driver, no problem when I use my radeon HD 5450 in place of the integrated card.
Comment 3 Jani Nikula 2014-02-27 06:57:35 UTC
CC Mengmeng.
Comment 4 Jani Nikula 2014-02-27 07:23:27 UTC
(In reply to comment #3)
> CC Mengmeng.

Was supposed to be Mengdong. Sorry.
Comment 5 Mengdong Lin 2014-02-27 08:55:12 UTC
(In reply to comment #0)
> Hello,
> 
> I'm with Intel haswell + ASUS B85M-G and dual screen (hdmi + DVI). Hdmi is
> buggy/crapy. I have hurge distrotion of sound, but it's not noise, it's the
> tested sound.
> I have tested with VLC, aplay, stable and git intel drivers, 3.10.32 linux
> kernel.
> 
> Cheers,

Hi Brule,

Could you try latest stable kernel v3.13?

Thanks
Mengdong
Comment 6 BRULE Herman 2014-02-27 11:29:42 UTC
With kernel 3.14, no sound. I add more file to have details.
Comment 7 BRULE Herman 2014-02-27 11:30:00 UTC
Created attachment 94808 [details]
dmesg
Comment 8 BRULE Herman 2014-02-27 11:30:30 UTC
Created attachment 94809 [details]
lspci
Comment 9 BRULE Herman 2014-02-27 11:30:51 UTC
Created attachment 94810 [details]
lsusb
Comment 10 BRULE Herman 2014-02-27 12:04:41 UTC
Same with kernel 3.13. Both 3.13 & 3.14 have just sound connect noise at video starting and seeking.
Comment 11 Mengdong Lin 2014-02-27 13:28:15 UTC
(In reply to comment #10)
> Same with kernel 3.13. Both 3.13 & 3.14 have just sound connect noise at
> video starting and seeking.

Hi Brule,

What's the 'connect noise' do you mean?
Does the noise present for a while or the whole playback duration?


Does this issue happen to many clips or this single clip?

What audio format in your test clip? PCM or non-PCM?

Thanks
Mengdong
Comment 12 BRULE Herman 2014-02-27 13:37:43 UTC
"connect noise" -> when you connect jack or when sound card is wake up. This is only at start reading sound buffer, then at sound start or seek into the movie.


Single movie in vlc. Or single sound in aplay.
I don't know, the original format is not raw, but I don't know how vlc/aplay send it to the sound card. I have tested multiple input format, wav, aac, mp3, ogg, ... no problem with internal sound card, or hd 5450 hdmi sound. I have only problem with intel hdmi.
Comment 13 BRULE Herman 2014-03-25 07:13:18 UTC
Another information: I'm on UEFI boot.
Comment 14 tmacalp 2014-04-15 19:42:15 UTC
We have two almost identical Lenovo laptops.  The T540p works properly with displayport/hdmi audio out.  The L540 has major problems with the displayport/hdmi audio out.  The sound does play through hdmi, but comes out about 25% faster and much higher pitched than normal.  Playback through the built-in speakers/headphone jack is normal speed/pitch. 

lspci on the T540p shows
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (Rev 4)

and the L540 shows
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (Rev 5)

As you can see, the only difference is the revision number.  Both systems are running up-to-date Fedora 20, using kernel 3.13.9-200.fc20.x86_64.

Also, I'm getting errors in dmesg on the L540.  I get 10 of these:
ALSA sound/pci/hda/hda_eld.c:260 HDMI: Unknown ELD version 0

And dmesg ends with these messages:
hda-intel: IRQ timing workaround is activated for card #1. Suggest a bigger bdl_pos_adj.

ALSA sound/pci/hda/hda_intel.c:2458 0000:00:1b.0: Unstable LPIB (352800 >= 176400); disabling LPIB delay counting

If requested, I will attach the full listings from both laptops.  Because the external audio is unusable on machines that use Rev 5, I'd argue that the importance should be elevated higher than "medium normal."
Comment 15 crxssi 2014-04-15 23:45:49 UTC
I am not sure if this bug 75537 is the same as what tmacalp is describing, but when I search, this is the closest thing I can find.  The original poster is not very clear.  And his dmesg does not contain the same error messages as shown in tmaclp's posting. HOWEVER, his lscpi does contain the exact same chip and it is Rev 05!

I can verify what tmaclp is saying.  There is a serious problem.  If this is the same issue as what the original poster is saying, I would rename the bug title to something like:

"Hdmi/displayport audio speed/tone/noise issues with Intel 8 Series/C220 Chipset High Definition Audio Rev 5"

And bump the priority/importance considerably.
Comment 16 Jani Nikula 2014-04-17 17:36:31 UTC
Please try the drm-intel-nightly branch from [1] and report back. Thanks.

[1] http://cgit.freedesktop.org/drm-intel/
Comment 17 BRULE Herman 2014-04-18 10:08:47 UTC
Hello,

http://cgit.freedesktop.org/drm-intel/ -> don't work.
Do sound like when you plus jack connector into analogic audio output... at sound track start. After nothing.

Cheers,
Comment 18 crxssi 2014-04-21 20:50:46 UTC
> Please try the drm-intel-nightly branch from [1] and report back. Thanks.
> 
> [1] http://cgit.freedesktop.org/drm-intel/

Viola- Fedora 20 pushed updates this weekend that I installed this morning and suddenly hdmi/displayport audio now works correctly for me!  (Good thing I decided to check)

I think this is what changed that mattered:
libdrm-2.4.53-1.fc20.x86_64

These were also updated:
pulseaudio-libs-4.0-13.gitf81e3.fc20.i686
pulseaudio-libs-glib2-4.0-13.gitf81e3.fc20.x86_64
kernel-3.13.10-200.fc20.x86_64
Comment 19 crxssi 2014-04-25 16:19:27 UTC
(In reply to comment #18)
> Viola- Fedora 20 pushed updates this weekend that I installed this morning
> and suddenly hdmi/displayport audio now works correctly for me! 

OK, this is wrong.  It WAS working fine and in the same day suddenly stopped working fine- having the "chimpmunks" sounding audio through displayport/hdmi again (playing too fast and too high pitch).  Rebooting changes nothing.  I can't figure out what changed, but I am still working on it to try and narrow down what is happening.

Sorry for the false hope.
Comment 20 tmacalp 2014-07-24 16:30:06 UTC
I'm still not entirely convinced that the bug I'm experiencing is the one originally reported, but it looks like my issue has been taken care of upstream.  

Here is the official bug report:
https://bugzilla.kernel.org/show_bug.cgi?id=74861

It looks like there are a few work arounds.  Both of these work for me.

* If you suspend your system and resume it, hdmi audio will be normal until the next power cycle

* You can pass the following option on the kernel command line to avoid the issue
 snd_hda_intel.power_save_controller=0
Comment 21 BRULE Herman 2014-07-24 17:02:08 UTC
No change here with this tips
Comment 22 Jani Nikula 2014-10-02 17:23:45 UTC
Please try the audio branch from http://cgit.freedesktop.org/~jani/drm/
Comment 23 Jesse Barnes 2014-12-10 20:24:05 UTC
Timing out.  Please re-open if this is still an issue with the branch Jani provided or with upstream.
Comment 24 Jani Nikula 2014-12-11 11:54:51 UTC
(In reply to Jesse Barnes from comment #23)
> Timing out.  Please re-open if this is still an issue with the branch Jani
> provided or with upstream.

FWIW, everything in the branch has been merged upstream.
Comment 25 BRULE Herman 2014-12-15 13:09:54 UTC
Same here


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.