Lines Matching refs:fmt
45 unsigned int fmt = 0; in axg_tdm_set_tdm_slots() local
63 fmt |= SNDRV_PCM_FMTBIT_S32_LE; in axg_tdm_set_tdm_slots()
66 fmt |= SNDRV_PCM_FMTBIT_S24_LE; in axg_tdm_set_tdm_slots()
67 fmt |= SNDRV_PCM_FMTBIT_S20_LE; in axg_tdm_set_tdm_slots()
70 fmt |= SNDRV_PCM_FMTBIT_S16_LE; in axg_tdm_set_tdm_slots()
73 fmt |= SNDRV_PCM_FMTBIT_S8; in axg_tdm_set_tdm_slots()
86 dai->driver->playback.formats = fmt; in axg_tdm_set_tdm_slots()
92 dai->driver->capture.formats = fmt; in axg_tdm_set_tdm_slots()
118 static int axg_tdm_iface_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) in axg_tdm_iface_set_fmt() argument
122 switch (fmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) { in axg_tdm_iface_set_fmt()
141 iface->fmt = fmt; in axg_tdm_iface_set_fmt()
217 switch (iface->fmt & SND_SOC_DAIFMT_FORMAT_MASK) { in axg_tdm_iface_set_lrclk()
249 axg_tdm_lrclk_invert(iface->fmt) ? 180 : 0); in axg_tdm_iface_set_lrclk()
289 axg_tdm_sclk_invert(iface->fmt) ? 0 : 180); in axg_tdm_iface_set_sclk()
305 switch (iface->fmt & SND_SOC_DAIFMT_FORMAT_MASK) { in axg_tdm_iface_hw_params()
329 if ((iface->fmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) == in axg_tdm_iface_hw_params()