nexus511 / gpd-ubuntu-packages

This repository shall provide the base for building ubuntu packages from most of the patches currently used to get linux on the gpd-pocket.
GNU General Public License v3.0
73 stars 4 forks source link

Problem with HDMI audio output #20

Open misiak1989 opened 7 years ago

misiak1989 commented 7 years ago

Ubuntu 16.04.3 (ubuntu-16.04.3-desktop-amd64_gpdpocket_2017-08-29.iso), updated to:

In the sound settings, as soon as I choose "Analog Output Intel HDMI/DP LPE Audio", it freezes both video and audio playback in browser (I only tested the browser sound output, but clicking "Test sound" also does not play via HDMI). Steps to reproduce:

  1. Have HDMI cable connected to external display and enabled it, but selected "Speakers" as audio output.
  2. Open Firefox (or Chromium, tested both).
  3. Go to youtube, open any video with sound. Result - video plays (on any of the screens), sound works via internal speaker.
  4. Select HDMI audio output in sound settings. Result - video and audio both suddenly freeze, while the rest of applications (including web browser) remain responsive... I can even jump to other frames via time slider at the bottom of the video, but it displays single frame and freezes again... Reloading the page or even restarting the browser causes to display only first frame of the video and then also freeze. I also tried to change the output sound source back to speakers during the expected playback (when the video was frozen), and the sound continued to play in internal speaker, but the video image was still frozen in the browser untill I refreshed the page.

I haven't checked the behavior in other applications (e.g. VLC), but will do that and report back if it's the same and if there are any related syslog entries or other kernel/alsa/pulseaudio/whatever messages written anywhere.

misiak1989 commented 7 years ago

syslog.txt

The issue also demonstrates itself when the videos are played using other applications (tested by playing http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_30mb.mp4 in "Videos" application). Sometimes the sound and video freeze no matter if I switch the audio device back to internal speaker, sometimes the sound continues, but the video remain frozen.

dmesg shows nothing related to audio.

Attaching parts copied from systemlog that could be related to the issue (or not).

What's interesting from my point of view:

  1. upon startup, the "input: Intel HDMI/DP LPE Audio HDMI/DP,pcm={0,1,2}" devices get mapped to "/devices/pci0000:00/0000:00:02.0/hdmi-lpe-audio/sound/card0/inputXXX" where "XXX" is either {6,7,8} or {7,8,9} or {8,9,10} (a bit random, don't know what it depends on), however it gets followed by "LPE base" setting etc that seem to have consistent values between rebots.

  2. The last lines of file are from the exact moment when the hdmi audio failed and froze the video and audio streams. It says "protocol-native.c: Failed to push data into queue" multiple times. It also states multiple times "UPower-Linux-WARNING **: energy 25,555250 bigger than full 25,544750" around that statement, but I don't know if it's related to that or what it really means...

misiak1989 commented 7 years ago

The syslog parts are available as pastebins too (I copied them that way from gpd pocket to my other laptop that I'm using now) - https://pastebin.com/AjnJuHna and https://pastebin.com/g2BwGuRC

Also created issue #22 that I found out during debugging.

jwrdegoede commented 7 years ago

HDMI audio output not working is a general Cherry Trail device issue, seen on all CHT devices out there. The kernel bits are in place, but some pulse-audio patches are necessary. Some people are working on this, there is a PA bug open for this somewhere but I've failed to find it.

jwrdegoede commented 7 years ago

I've found the PA bug where this is discussed: https://bugs.freedesktop.org/show_bug.cgi?id=100488