Lines Matching refs:dai
293 static int pcm3168a_mute(struct snd_soc_dai *dai, int mute, int direction)
295 struct snd_soc_component *component = dai->component;
303 static int pcm3168a_set_dai_sysclk(struct snd_soc_dai *dai,
306 struct pcm3168a_priv *pcm3168a = snd_soc_component_get_drvdata(dai->component);
328 static void pcm3168a_update_fixup_pcm_stream(struct snd_soc_dai *dai)
330 struct snd_soc_component *component = dai->component;
333 unsigned int channel_max = dai->id == PCM3168A_DAI_DAC ? 8 : 6;
335 if (pcm3168a->io_params[dai->id].fmt == PCM3168A_FMT_RIGHT_J) {
343 if (pcm3168a->io_params[dai->id].tdm_slots != 2)
347 if (dai->id == PCM3168A_DAI_DAC) {
348 dai->driver->playback.channels_max = channel_max;
349 dai->driver->playback.formats = formats;
351 dai->driver->capture.channels_max = channel_max;
352 dai->driver->capture.formats = formats;
356 static int pcm3168a_set_dai_fmt(struct snd_soc_dai *dai, unsigned int format)
358 struct snd_soc_component *component = dai->component;
380 dev_err(component->dev, "unsupported dai format\n");
403 if (dai->id == PCM3168A_DAI_DAC) {
413 pcm3168a->io_params[dai->id].master_mode = master_mode;
414 pcm3168a->io_params[dai->id].fmt = fmt;
418 pcm3168a_update_fixup_pcm_stream(dai);
423 static int pcm3168a_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
427 struct snd_soc_component *component = dai->component;
429 struct pcm3168a_io_params *io_params = &pcm3168a->io_params[dai->id];
448 if (dai->id == PCM3168A_DAI_DAC)
453 pcm3168a_update_fixup_pcm_stream(dai);
460 struct snd_soc_dai *dai)
462 struct snd_soc_component *component = dai->component;
464 struct pcm3168a_io_params *io_params = &pcm3168a->io_params[dai->id];
475 if (dai->id == PCM3168A_DAI_DAC) {
563 if (dai->id == PCM3168A_DAI_DAC) {