ASoC: meson: g12a: extract codec-to-codec utils
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 13 Feb 2020 15:51:52 +0000 (16:51 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 13 Feb 2020 20:57:20 +0000 (20:57 +0000)
commit9c29fd9bdf92900dc0cc5c2d8f58951a7bdc0f41
treefa691e59699a2962ad6934913c2f4367e488c9bc
parent1dfa5a5ab34560fd9647083f623d19705be2e706
ASoC: meson: g12a: extract codec-to-codec utils

The hdmi routing mechanism used on g12a hdmi is also used:
* other Amlogic SoC types
* for the internal DAC path

Each of these codec glues are slightly different but the idea
behind it remains the same. This change extract some helper functions
from the g12a-tohdmitx driver to make them available for other Amlogic
codecs.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20200213155159.3235792-3-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/meson/Kconfig
sound/soc/meson/Makefile
sound/soc/meson/g12a-tohdmitx.c
sound/soc/meson/meson-codec-glue.c [new file with mode: 0644]
sound/soc/meson/meson-codec-glue.h [new file with mode: 0644]