[alsa-devel] [PATCH v8 0/5] ASoC: MT8173 HDMI jack detection

Philipp Zabel p.zabel at pengutronix.de
Thu Aug 11 11:20:22 CEST 2016


Hi,

now that kernel v4.8-rc1 is released and includes the new CEC framework in
drivers/staging/media/cec, I wonder how to proceed with this. To allow the
ASoC drivers to present HDMI cable connection state as an ALSA jack, and
to allow them to update sink capabilities when it signals an EDID change,
we need a notification mechanism between CEC/HDMI, and ALSA drivers.

I had used Russell's hdmi notification prototype to let the CEC/HDMI
drivers notify the hdmi-codec and ASoC machine drivers of changes. The
mtk_cec driver currently is just a placeholder that only handles the HPD
interrupts.

Should the notifications be integrated with the CEC framework for those
devices that do have CEC support?

Changes since v7 ("ASoC: MT8173 HDMI codec support"):
 - Dropped the already applied ELD control and machine driver patches
 - Dropped the N/CTS helper patch for now, as the helpers don't exist yet.
 - Lock ELD mutex while copying ELD in hdmi_eld_ctl_get

regards
Philipp

Philipp Zabel (5):
  video: rmk's HDMI notification prototype
  ASoC: hdmi-codec: Use HDMI notifications to add jack support
  ASoC: mediatek: Add jack detection support to mt8173-rt5650-rt5676
    machine driver
  ASoC: mediatek: Add jack detection support to the mt8173-rt5650
    machine driver
  drm/mediatek: hdmi: issue notifications

 drivers/gpu/drm/mediatek/mtk_cec.c               | 11 +++
 drivers/gpu/drm/mediatek/mtk_hdmi.c              |  3 +
 drivers/video/Kconfig                            |  3 +
 drivers/video/Makefile                           |  1 +
 drivers/video/hdmi-notifier.c                    | 61 ++++++++++++++++
 include/linux/hdmi-notifier.h                    | 44 ++++++++++++
 include/sound/hdmi-codec.h                       |  6 ++
 sound/soc/codecs/Kconfig                         |  1 +
 sound/soc/codecs/hdmi-codec.c                    | 88 +++++++++++++++++++++---
 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c | 21 ++++++
 sound/soc/mediatek/mt8173/mt8173-rt5650.c        | 21 ++++++
 11 files changed, 252 insertions(+), 8 deletions(-)
 create mode 100644 drivers/video/hdmi-notifier.c
 create mode 100644 include/linux/hdmi-notifier.h

-- 
2.8.1



More information about the Alsa-devel mailing list