Lines Matching +full:axg +full:- +full:tdm +full:- +full:iface
1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
10 #include <sound/soc-dai.h>
12 #include "axg-tdm-formatter.h"
64 if (!p->connect) in axg_tdmin_get_be()
67 if (p->source->id == snd_soc_dapm_dai_out) in axg_tdmin_get_be()
68 return (struct snd_soc_dai *)p->source->priv; in axg_tdmin_get_be()
70 be = axg_tdmin_get_be(p->source); in axg_tdmin_get_be()
115 unsigned int val, skew = quirks->skew_offset; in axg_tdmin_prepare()
118 switch (ts->iface->fmt & SND_SOC_DAIFMT_FORMAT_MASK) { in axg_tdmin_prepare()
130 ts->iface->fmt & SND_SOC_DAIFMT_FORMAT_MASK); in axg_tdmin_prepare()
131 return -EINVAL; in axg_tdmin_prepare()
137 switch (ts->iface->fmt & SND_SOC_DAIFMT_FORMAT_MASK) { in axg_tdmin_prepare()
146 if (axg_tdm_lrclk_invert(ts->iface->fmt)) in axg_tdmin_prepare()
150 val |= TDMIN_CTRL_BITNUM(ts->iface->slot_width - 1); in axg_tdmin_prepare()
237 .compatible = "amlogic,axg-tdmin",
240 .compatible = "amlogic,g12a-tdmin",
243 .compatible = "amlogic,sm1-tdmin",
252 .name = "axg-tdmin",
258 MODULE_DESCRIPTION("Amlogic AXG TDM input formatter driver");