[pulseaudio-discuss] [PATCH 0/3] Fix jack detection for Intel HDMI LPE

Tanu Kaskinen tanuk at iki.fi
Mon Jun 12 15:45:13 UTC 2017


These patches hopefully fix jack detection (and ELD information
querying too) for Intel HDMI LPE. I don't have the hardware myself, so
further testing would be very welcome. Hans, Takashi and Pierre, you're
in Cc, because you indicated in this[1] thread that you have the
hardware.

Testing instructions:

First, before installing the modified PulseAudio version, check if you
still suffer from the problem that the kernel kills PulseAudio. I don't
know if these patches are sufficient to fix that problem, but it's worth
trying.

Next, apply the patches on top of the current PulseAudio master branch
and install the modified version. After installing, set
"realtime-scheduling = no" in daemon.conf to prevent the kernel from
killing PulseAudio.

Then, start pulseaudio and check if jack detection is working.
"pactl list cards" will show the cards, their profiles and the port
status. The HDMI card should only list HDMI profiles in the "Profiles:"
section (check that there are no analog profiles listed), and the port
status should change between "available" and "unavailable" in the
"Ports:" section as you plug the HDMI cable in and out.

If the jack detection seems to work, try setting
"realtime-scheduling = yes" in daemon.conf to see if the kernel still
kills PulseAudio.

Tanu Kaskinen (3):
  alsa-mixer: add query_hw_device option to mappings
  alsa-mixer: implement ELD device autodetection
  alsa-mixer: autodetect the HDMI jack PCM device

 src/modules/alsa/alsa-mixer.c                      | 164 +++++++++++++++++++--
 src/modules/alsa/alsa-mixer.h                      |  17 ++-
 src/modules/alsa/alsa-sink.c                       |   2 +-
 src/modules/alsa/alsa-source.c                     |   2 +-
 .../alsa/mixer/paths/analog-output.conf.common     |  11 +-
 src/modules/alsa/mixer/paths/hdmi-output-0.conf    |   5 +-
 src/modules/alsa/mixer/paths/hdmi-output-1.conf    |   5 +-
 src/modules/alsa/mixer/paths/hdmi-output-2.conf    |   5 +-
 src/modules/alsa/mixer/paths/hdmi-output-3.conf    |   5 +-
 src/modules/alsa/mixer/paths/hdmi-output-4.conf    |   5 +-
 src/modules/alsa/mixer/paths/hdmi-output-5.conf    |   5 +-
 src/modules/alsa/mixer/paths/hdmi-output-6.conf    |   5 +-
 src/modules/alsa/mixer/paths/hdmi-output-7.conf    |   5 +-
 src/modules/alsa/mixer/profile-sets/default.conf   |  37 +++++
 14 files changed, 237 insertions(+), 36 deletions(-)

-- 
2.11.0



More information about the pulseaudio-discuss mailing list