Lines Matching +full:in +full:-

1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
10 #include <sound/soc-dai.h>
12 #include "axg-tdm-formatter.h"
46 "IN 0", "IN 1", "IN 2", "IN 3", "IN 4", "IN 5", "IN 6", "IN 7",
47 "IN 8", "IN 9", "IN 10", "IN 11", "IN 12", "IN 13", "IN 14", "IN 15",
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()
86 return be->capture_dma_data; in axg_tdmin_get_tdm_stream()
95 /* Clear out reset before in reset */ in axg_tdmin_enable()
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()
153 * The following also reset LSB_FIRST which result in the formatter in axg_tdmin_prepare()
168 SND_SOC_DAPM_AIF_IN("IN 0", NULL, 0, SND_SOC_NOPM, 0, 0),
169 SND_SOC_DAPM_AIF_IN("IN 1", NULL, 0, SND_SOC_NOPM, 0, 0),
170 SND_SOC_DAPM_AIF_IN("IN 2", NULL, 0, SND_SOC_NOPM, 0, 0),
171 SND_SOC_DAPM_AIF_IN("IN 3", NULL, 0, SND_SOC_NOPM, 0, 0),
172 SND_SOC_DAPM_AIF_IN("IN 4", NULL, 0, SND_SOC_NOPM, 0, 0),
173 SND_SOC_DAPM_AIF_IN("IN 5", NULL, 0, SND_SOC_NOPM, 0, 0),
174 SND_SOC_DAPM_AIF_IN("IN 6", NULL, 0, SND_SOC_NOPM, 0, 0),
175 SND_SOC_DAPM_AIF_IN("IN 7", NULL, 0, SND_SOC_NOPM, 0, 0),
176 SND_SOC_DAPM_AIF_IN("IN 8", NULL, 0, SND_SOC_NOPM, 0, 0),
177 SND_SOC_DAPM_AIF_IN("IN 9", NULL, 0, SND_SOC_NOPM, 0, 0),
178 SND_SOC_DAPM_AIF_IN("IN 10", NULL, 0, SND_SOC_NOPM, 0, 0),
179 SND_SOC_DAPM_AIF_IN("IN 11", NULL, 0, SND_SOC_NOPM, 0, 0),
180 SND_SOC_DAPM_AIF_IN("IN 12", NULL, 0, SND_SOC_NOPM, 0, 0),
181 SND_SOC_DAPM_AIF_IN("IN 13", NULL, 0, SND_SOC_NOPM, 0, 0),
182 SND_SOC_DAPM_AIF_IN("IN 14", NULL, 0, SND_SOC_NOPM, 0, 0),
183 SND_SOC_DAPM_AIF_IN("IN 15", NULL, 0, SND_SOC_NOPM, 0, 0),
192 { "SRC SEL", "IN 0", "IN 0" },
193 { "SRC SEL", "IN 1", "IN 1" },
194 { "SRC SEL", "IN 2", "IN 2" },
195 { "SRC SEL", "IN 3", "IN 3" },
196 { "SRC SEL", "IN 4", "IN 4" },
197 { "SRC SEL", "IN 5", "IN 5" },
198 { "SRC SEL", "IN 6", "IN 6" },
199 { "SRC SEL", "IN 7", "IN 7" },
200 { "SRC SEL", "IN 8", "IN 8" },
201 { "SRC SEL", "IN 9", "IN 9" },
202 { "SRC SEL", "IN 10", "IN 10" },
203 { "SRC SEL", "IN 11", "IN 11" },
204 { "SRC SEL", "IN 12", "IN 12" },
205 { "SRC SEL", "IN 13", "IN 13" },
206 { "SRC SEL", "IN 14", "IN 14" },
207 { "SRC SEL", "IN 15", "IN 15" },
246 .compatible = "amlogic,axg-tdmin",
249 .compatible = "amlogic,g12a-tdmin",
252 .compatible = "amlogic,sm1-tdmin",
261 .name = "axg-tdmin",