Lines Matching refs:dai

291 static int pcm3168a_mute(struct snd_soc_dai *dai, int mute, int direction)
293 struct snd_soc_component *component = dai->component;
301 static int pcm3168a_set_dai_sysclk(struct snd_soc_dai *dai,
304 struct pcm3168a_priv *pcm3168a = snd_soc_component_get_drvdata(dai->component);
326 static void pcm3168a_update_fixup_pcm_stream(struct snd_soc_dai *dai)
328 struct snd_soc_component *component = dai->component;
330 struct pcm3168a_io_params *io_params = &pcm3168a->io_params[dai->id];
332 unsigned int channel_max = dai->id == PCM3168A_DAI_DAC ? 8 : 6;
346 if (dai->id == PCM3168A_DAI_DAC) {
347 dai->driver->playback.channels_max = channel_max;
348 dai->driver->playback.formats = formats;
350 dai->driver->capture.channels_max = channel_max;
351 dai->driver->capture.formats = formats;
355 static int pcm3168a_set_dai_fmt(struct snd_soc_dai *dai, unsigned int format)
357 struct snd_soc_component *component = dai->component;
359 struct pcm3168a_io_params *io_params = &pcm3168a->io_params[dai->id];
370 dev_err(component->dev, "unsupported dai format\n");
396 pcm3168a_update_fixup_pcm_stream(dai);
401 static int pcm3168a_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
405 struct snd_soc_component *component = dai->component;
407 struct pcm3168a_io_params *io_params = &pcm3168a->io_params[dai->id];
426 if (dai->id == PCM3168A_DAI_DAC)
431 pcm3168a_update_fixup_pcm_stream(dai);
438 struct snd_soc_dai *dai)
440 struct snd_soc_component *component = dai->component;
442 struct pcm3168a_io_params *io_params = &pcm3168a->io_params[dai->id];
448 if (dai->id == PCM3168A_DAI_DAC) {