Skip to content

ASoC: meson: add hdmitx glue support

Jerome Brunet alsa-devel linux-amlogic linux-devicetree lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ASoC: meson: axg-card: set link name based on link node namesound/soc/meson/axg-card.c+7 -51 reply
2/5ASoC: dapm: allow muxes to force a disconnectsound/soc/soc-dapm.c+1 -11 reply
3/5ASoC: meson: add tohdmitx DT bindingsDocumentation/devicetree/bindings/sound/amlogic,g12a-tohdmitx.txt include/dt-bindings/sound/meson-g12a-tohdmitx.h+68 -01 reply
4/5ASoC: meson: axg-card: add basic codec-to-codec link supportsound/soc/meson/axg-card.c+19 -01 reply
5/5ASoC: meson: add g12a tohdmitx controlsound/soc/meson/Kconfig sound/soc/meson/Makefile sound/soc/meson/g12a-tohdmitx.c+423 -01 reply

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchNeil ArmstrongKevin Hilman
SeriesT-b T-b
1/5T-b T-b
2/5T-b T-b
3/5T-b T-b
4/5T-b T-b
5/5T-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] ASoC: meson: add hdmitx glue support

On the Amlogic SoC, there is a glue between the SoC audio outputs and the input of the embedded Synopsys HDMI controller.

On the g12a, this glue is mostly a couple of muxes to select the i2s and spdif inputs of the hdmi controller. Each of these inputs may have different hw_params and fmt which makes our life a little bit more interesting, especially when switching between to active inputs.

This glue is modeled as codec driver and uses codec-to-codec links to connect to the Synopsys controller. This allows to use the regular hdmi-codec driver (used by dw-hdmi i2s).

To avoid glitches while switching input, the trick is to temporarily force a disconnection of the mux output, which shutdowns the output dai link. This also ensure that the stream parameters and fmt are updated when the output is connected back.

Jerome Brunet (5):
ASoC: meson: axg-card: set link name based on link node name
ASoC: dapm: allow muxes to force a disconnect
ASoC: meson: add tohdmitx DT bindings
ASoC: meson: axg-card: add basic codec-to-codec link support
ASoC: meson: add g12a tohdmitx control

 .../bindings/sound/amlogic,g12a-tohdmitx.txt  |  55 +++
 .../dt-bindings/sound/meson-g12a-tohdmitx.h   |  13 +
 sound/soc/meson/Kconfig                       |   8 +
 sound/soc/meson/Makefile                      |   2 +
 sound/soc/meson/axg-card.c                    |  31 +-
 sound/soc/meson/g12a-tohdmitx.c               | 413 ++++++++++++++++++
 sound/soc/soc-dapm.c                          |   2 +-
 7 files changed, 518 insertions(+), 6 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/sound/amlogic,g12a-tohdmitx.txt
 create mode 100644 include/dt-bindings/sound/meson-g12a-tohdmitx.h
 create mode 100644 sound/soc/meson/g12a-tohdmitx.c
Signature · 1 line
2.20.1