OSDN Git Service

ASoC: meson: add tdm interface driver
authorJerome Brunet <jbrunet@baylibre.com>
Tue, 17 Jul 2018 15:42:59 +0000 (17:42 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 20 Jul 2018 16:38:33 +0000 (17:38 +0100)
commitd60e4f1e4be5e2dfb55fb084b119aed094227a35
tree6309b26c3f67cd264e500ccd109b383e50a098d4
parent1a11d88f499ceb69e9b4098ddc36866820335a54
ASoC: meson: add tdm interface driver

Add Amlogic's axg TDM interface driver. This driver manages the format
and clocks provided on the pads.

On this SoC, each stream direction provides 4 serial lanes. This makes
a maximum of 8 channels in i2s modes and 128 channels in DSP modes.

While each lanes operate on the same slot number (same bit clock), they
may have different TDM masks. This requires to provide a function to let
the card set the 4 masks, in lieu of the usual set_tdm_slots() callback
of the dai driver.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/meson/Kconfig
sound/soc/meson/Makefile
sound/soc/meson/axg-tdm-interface.c [new file with mode: 0644]
sound/soc/meson/axg-tdm.h