[pulseaudio-discuss] [PATCH v2 0/3] Fix Intel HDMI LPE problems

Tanu Kaskinen tanuk at iki.fi
Sun Oct 8 16:48:23 UTC 2017


The Intel HDMI LPE driver uses hw:0 for HDMI, which is different from
the HDA device numbering scheme. Our jack detection and ELD code assumed
the HDA numbering, these patches remove the assumption.

If PulseAudio tries to play audio while the monitor is not plugged in,
the HDMI LPE driver will refuse, and the error handling in PulseAudio
will enter an infinite loop, causing the kernel to kill PulseAudio. It
would be good to fix the error handling code, but these patches just
avoid the problem by implementing working jack detection, so PulseAudio
won't try to use HDMI when it's unplugged.

Tanu Kaskinen (3):
  alsa-mixer: add hw_device_index to pa_alsa_mapping
  alsa-mixer: autodetect the HDMI jack PCM device
  alsa-mixer: autodetect the ELD device

 src/modules/alsa/alsa-mixer.c                      | 107 +++++++++++++++++++--
 src/modules/alsa/alsa-mixer.h                      |   9 +-
 src/modules/alsa/alsa-sink.c                       |   2 +-
 src/modules/alsa/alsa-source.c                     |   2 +-
 .../alsa/mixer/paths/analog-output.conf.common     |  12 ++-
 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 +-
 13 files changed, 144 insertions(+), 28 deletions(-)

-- 
2.14.2



More information about the pulseaudio-discuss mailing list