Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDMI video and audio #5153

Open
plbossart opened this issue Aug 23, 2024 · 4 comments
Open

HDMI video and audio #5153

plbossart opened this issue Aug 23, 2024 · 4 comments

Comments

@plbossart
Copy link
Member

Discussed in https://github.com/orgs/thesofproject/discussions/9395

Originally posted by Hobbyist11 August 23, 2024
Greetings, I'm experiencing really bad flickering (turning on and off) of an HDMI external display on an Intel Meteorlake machine. I've noticed that it only happens when audio is set to play on HDMI but not when it is set to play on laptop. I've filed an issue to i915. https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11391#note_2476569 but debugging it, haven't found any possible causes/clues. Could this be an SOF issue? I've also enabled verbose debugging for SOF but haven't found anything useful too, nothing appears on dmesg -w when the flickering happens. Uninstalling sof-firmware though makes the flicker disappear at the expense of not having audio.

@plbossart plbossart transferred this issue from thesofproject/sof Aug 23, 2024
@plbossart
Copy link
Member Author

I don't see how this could be related to SOF. The external displays are handled with an internal HDaudio codec and the clocks are based on 24 MHz. nothing special. It's likely that there's some sort of configuration issue between the display clocks and the audio clocks.

The one question is whether audio 'sounds correct' on the external output? If you play a nice clean sine waves, do you hear any distortion, saturation or anything unexpected.

@Hobbyist11
Copy link

Hobbyist11 commented Aug 23, 2024

I used this video: https://www.youtube.com/watch?v=URrEtyFSENc
and this:
https://www.youtube.com/watch?v=0RMmDWNLRCk&list=TLPQMjMwODIwMjSFrVAILPEODA&index=2
Played it on the external monitors' audio and on the laptop audio. Didn't notice any difference between them. Howeveer when i set it to play on the laptop speakers then the connected HDMI monitor starts to turn on and off quickly.
Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
    • Kernel: {SHA} Linux 6.10.6 (tested with 6.11 from AUR as well and issue persists)
    • SOF: {SHA} sof-firmware 2024.06-1 (tested with 2024.03 as well same issue)
      (Also not sure how to obtain the SHA of this)
  2. Name of the topology file
    • Topology: {intel/sof-ace-tplg/sof-hda-generic-2ch.tplg} (not so sure if this is correct please do let me know)
  3. Name of the platform(s) on which the bug is observed.
    • Platform: {Meteor Lake} (Core ultra 9) Every linux distro I've tried, Fedora, Ubuntu, Arch.

dmesg | grep sof with verbose debugging enabled as per the docs.

sof_dmesg.txt

lspci | grep -i audio
00:1f.3 Multimedia audio controller: Intel Corporation Meteor Lake-P HD Audio Controller (rev 20) ```

@Hobbyist11
Copy link

Hobbyist11 commented Aug 24, 2024

I tried different cables as well as different HDMI ports on the 4k montor and it still flickers. I tried a different exxternal display, a 1080p LG TV and it didn't have any flickers at all. BTW, it doesn't flicker when there is an ongoing audio playback.

@Hobbyist11
Copy link

I've tried changing /sys/module/snd_hda_intel/parameters/power_save_controller to N and /sys/modules/snd_hda_intel/parameeters/power_save to 0 and it didn't stop it. Only workaround I've found ATM to make it useable is to playback audio on Youtube while working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants