• Home
  • Raw
  • Download

Lines Matching refs:dai

36 			     struct snd_soc_dai *dai);
38 struct snd_soc_dai *dai);
40 struct snd_soc_dai *dai);
43 struct snd_soc_dai *dai);
45 struct snd_soc_dai *dai);
46 static int hdac_hda_dai_set_tdm_slot(struct snd_soc_dai *dai,
50 struct snd_soc_dai *dai);
128 static int hdac_hda_dai_set_tdm_slot(struct snd_soc_dai *dai, in hdac_hda_dai_set_tdm_slot() argument
132 struct snd_soc_component *component = dai->component; in hdac_hda_dai_set_tdm_slot()
137 pcm = &hda_pvt->pcm[dai->id]; in hdac_hda_dai_set_tdm_slot()
139 pcm[dai->id].stream_tag[SNDRV_PCM_STREAM_PLAYBACK] = tx_mask; in hdac_hda_dai_set_tdm_slot()
141 pcm[dai->id].stream_tag[SNDRV_PCM_STREAM_CAPTURE] = rx_mask; in hdac_hda_dai_set_tdm_slot()
148 struct snd_soc_dai *dai) in hdac_hda_dai_hw_params() argument
150 struct snd_soc_component *component = dai->component; in hdac_hda_dai_hw_params()
156 maxbps = dai->driver->playback.sig_bits; in hdac_hda_dai_hw_params()
158 maxbps = dai->driver->capture.sig_bits; in hdac_hda_dai_hw_params()
167 dev_err(dai->dev, in hdac_hda_dai_hw_params()
175 hda_pvt->pcm[dai->id].format_val[substream->stream] = format_val; in hdac_hda_dai_hw_params()
180 struct snd_soc_dai *dai) in hdac_hda_dai_hw_free() argument
182 struct snd_soc_component *component = dai->component; in hdac_hda_dai_hw_free()
188 pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai); in hdac_hda_dai_hw_free()
199 struct snd_soc_dai *dai) in hdac_hda_dai_prepare() argument
201 struct snd_soc_component *component = dai->component; in hdac_hda_dai_prepare()
212 pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai); in hdac_hda_dai_prepare()
218 stream = hda_pvt->pcm[dai->id].stream_tag[substream->stream]; in hdac_hda_dai_prepare()
219 format_val = hda_pvt->pcm[dai->id].format_val[substream->stream]; in hdac_hda_dai_prepare()
230 struct snd_soc_dai *dai) in hdac_hda_dai_open() argument
232 struct snd_soc_component *component = dai->component; in hdac_hda_dai_open()
239 pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai); in hdac_hda_dai_open()
255 struct snd_soc_dai *dai) in hdac_hda_dai_close() argument
257 struct snd_soc_component *component = dai->component; in hdac_hda_dai_close()
263 pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai); in hdac_hda_dai_close()
275 struct snd_soc_dai *dai) in snd_soc_find_pcm_from_dai() argument
281 switch (dai->id) { in snd_soc_find_pcm_from_dai()
292 dev_err(&hcodec->core.dev, "invalid dai id %d\n", dai->id); in snd_soc_find_pcm_from_dai()
301 dev_err(&hcodec->core.dev, "didn't find PCM for DAI %s\n", dai->name); in snd_soc_find_pcm_from_dai()