Searched refs:rtd (Results 1 - 157 of 157) sorted by relevance

/linux-4.1.27/sound/soc/
H A Dsoc-compress.c31 struct snd_soc_pcm_runtime *rtd = cstream->private_data; soc_compr_open() local
32 struct snd_soc_platform *platform = rtd->platform; soc_compr_open()
35 mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass); soc_compr_open()
46 if (rtd->dai_link->compr_ops && rtd->dai_link->compr_ops->startup) { soc_compr_open()
47 ret = rtd->dai_link->compr_ops->startup(cstream); soc_compr_open()
49 pr_err("compress asoc: %s startup failed\n", rtd->dai_link->name); soc_compr_open()
54 snd_soc_runtime_activate(rtd, cstream->direction); soc_compr_open()
56 mutex_unlock(&rtd->pcm_mutex); soc_compr_open()
64 mutex_unlock(&rtd->pcm_mutex); soc_compr_open()
158 struct snd_soc_pcm_runtime *rtd = close_delayed_work() local
160 struct snd_soc_dai *codec_dai = rtd->codec_dai; close_delayed_work()
162 mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass); close_delayed_work()
164 dev_dbg(rtd->dev, "ASoC: pop wq checking: %s status: %s waiting: %s\n", close_delayed_work()
167 rtd->pop_wait ? "yes" : "no"); close_delayed_work()
170 if (rtd->pop_wait == 1) { close_delayed_work()
171 rtd->pop_wait = 0; close_delayed_work()
172 snd_soc_dapm_stream_event(rtd, SNDRV_PCM_STREAM_PLAYBACK, close_delayed_work()
176 mutex_unlock(&rtd->pcm_mutex); close_delayed_work()
181 struct snd_soc_pcm_runtime *rtd = cstream->private_data; soc_compr_free() local
182 struct snd_soc_platform *platform = rtd->platform; soc_compr_free()
183 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; soc_compr_free()
184 struct snd_soc_dai *codec_dai = rtd->codec_dai; soc_compr_free()
187 mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass); soc_compr_free()
194 snd_soc_runtime_deactivate(rtd, stream); soc_compr_free()
205 if (rtd->dai_link->compr_ops && rtd->dai_link->compr_ops->shutdown) soc_compr_free()
206 rtd->dai_link->compr_ops->shutdown(cstream); soc_compr_free()
212 if (snd_soc_runtime_ignore_pmdown_time(rtd)) { soc_compr_free()
213 snd_soc_dapm_stream_event(rtd, soc_compr_free()
217 rtd->pop_wait = 1; soc_compr_free()
219 &rtd->delayed_work, soc_compr_free()
220 msecs_to_jiffies(rtd->pmdown_time)); soc_compr_free()
224 snd_soc_dapm_stream_event(rtd, soc_compr_free()
229 mutex_unlock(&rtd->pcm_mutex); soc_compr_free()
283 struct snd_soc_pcm_runtime *rtd = cstream->private_data; soc_compr_trigger() local
284 struct snd_soc_platform *platform = rtd->platform; soc_compr_trigger()
285 struct snd_soc_dai *codec_dai = rtd->codec_dai; soc_compr_trigger()
288 mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass); soc_compr_trigger()
306 mutex_unlock(&rtd->pcm_mutex); soc_compr_trigger()
367 struct snd_soc_pcm_runtime *rtd = cstream->private_data; soc_compr_set_params() local
368 struct snd_soc_platform *platform = rtd->platform; soc_compr_set_params()
371 mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass); soc_compr_set_params()
385 if (rtd->dai_link->compr_ops && rtd->dai_link->compr_ops->set_params) { soc_compr_set_params()
386 ret = rtd->dai_link->compr_ops->set_params(cstream); soc_compr_set_params()
392 snd_soc_dapm_stream_event(rtd, SNDRV_PCM_STREAM_PLAYBACK, soc_compr_set_params()
395 snd_soc_dapm_stream_event(rtd, SNDRV_PCM_STREAM_CAPTURE, soc_compr_set_params()
399 rtd->pop_wait = 0; soc_compr_set_params()
400 mutex_unlock(&rtd->pcm_mutex); soc_compr_set_params()
402 cancel_delayed_work_sync(&rtd->delayed_work); soc_compr_set_params()
407 mutex_unlock(&rtd->pcm_mutex); soc_compr_set_params()
468 struct snd_soc_pcm_runtime *rtd = cstream->private_data; soc_compr_get_params() local
469 struct snd_soc_platform *platform = rtd->platform; soc_compr_get_params()
472 mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass); soc_compr_get_params()
477 mutex_unlock(&rtd->pcm_mutex); soc_compr_get_params()
484 struct snd_soc_pcm_runtime *rtd = cstream->private_data; soc_compr_get_caps() local
485 struct snd_soc_platform *platform = rtd->platform; soc_compr_get_caps()
488 mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass); soc_compr_get_caps()
493 mutex_unlock(&rtd->pcm_mutex); soc_compr_get_caps()
500 struct snd_soc_pcm_runtime *rtd = cstream->private_data; soc_compr_get_codec_caps() local
501 struct snd_soc_platform *platform = rtd->platform; soc_compr_get_codec_caps()
504 mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass); soc_compr_get_codec_caps()
509 mutex_unlock(&rtd->pcm_mutex); soc_compr_get_codec_caps()
515 struct snd_soc_pcm_runtime *rtd = cstream->private_data; soc_compr_ack() local
516 struct snd_soc_platform *platform = rtd->platform; soc_compr_ack()
519 mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass); soc_compr_ack()
524 mutex_unlock(&rtd->pcm_mutex); soc_compr_ack()
531 struct snd_soc_pcm_runtime *rtd = cstream->private_data; soc_compr_pointer() local
532 struct snd_soc_platform *platform = rtd->platform; soc_compr_pointer()
534 mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass); soc_compr_pointer()
539 mutex_unlock(&rtd->pcm_mutex); soc_compr_pointer()
546 struct snd_soc_pcm_runtime *rtd = cstream->private_data; soc_compr_copy() local
547 struct snd_soc_platform *platform = rtd->platform; soc_compr_copy()
550 mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass); soc_compr_copy()
555 mutex_unlock(&rtd->pcm_mutex); soc_compr_copy()
562 struct snd_soc_pcm_runtime *rtd = cstream->private_data; soc_compr_set_metadata() local
563 struct snd_soc_platform *platform = rtd->platform; soc_compr_set_metadata()
575 struct snd_soc_pcm_runtime *rtd = cstream->private_data; soc_compr_get_metadata() local
576 struct snd_soc_platform *platform = rtd->platform; soc_compr_get_metadata()
616 int soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num) soc_new_compress() argument
618 struct snd_soc_codec *codec = rtd->codec; soc_new_compress()
619 struct snd_soc_platform *platform = rtd->platform; soc_new_compress()
620 struct snd_soc_dai *codec_dai = rtd->codec_dai; soc_new_compress()
621 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; soc_new_compress()
628 if (rtd->num_codecs > 1) { soc_new_compress()
629 dev_err(rtd->card->dev, "Multicodec not supported for compressed stream\n"); soc_new_compress()
635 rtd->dai_link->stream_name, codec_dai->name, num); soc_new_compress()
650 dev_err(rtd->card->dev, "Invalid direction for compress P %d, C %d\n", soc_new_compress()
666 compr->ops = devm_kzalloc(rtd->card->dev, sizeof(soc_compr_ops), soc_new_compress()
669 dev_err(rtd->card->dev, "Cannot allocate compressed ops\n"); soc_new_compress()
674 if (rtd->dai_link->dynamic) { soc_new_compress()
676 rtd->dai_link->stream_name); soc_new_compress()
678 ret = snd_pcm_new_internal(rtd->card->snd_card, new_name, num, soc_new_compress()
679 rtd->dai_link->dpcm_playback, soc_new_compress()
680 rtd->dai_link->dpcm_capture, &be_pcm); soc_new_compress()
682 dev_err(rtd->card->dev, "ASoC: can't create compressed for %s\n", soc_new_compress()
683 rtd->dai_link->name); soc_new_compress()
687 rtd->pcm = be_pcm; soc_new_compress()
688 rtd->fe_compr = 1; soc_new_compress()
689 if (rtd->dai_link->dpcm_playback) soc_new_compress()
690 be_pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->private_data = rtd; soc_new_compress()
691 else if (rtd->dai_link->dpcm_capture) soc_new_compress()
692 be_pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->private_data = rtd; soc_new_compress()
702 ret = snd_compress_new(rtd->card->snd_card, num, direction, compr); soc_new_compress()
710 INIT_DELAYED_WORK(&rtd->delayed_work, close_delayed_work); soc_new_compress()
712 rtd->compr = compr; soc_new_compress()
713 compr->private_data = rtd; soc_new_compress()
H A Dsoc-pcm.c39 * @rtd: ASoC PCM runtime that is activated
45 * Must be called with the rtd->pcm_mutex being held
47 void snd_soc_runtime_activate(struct snd_soc_pcm_runtime *rtd, int stream) snd_soc_runtime_activate() argument
49 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; snd_soc_runtime_activate()
52 lockdep_assert_held(&rtd->pcm_mutex); snd_soc_runtime_activate()
56 for (i = 0; i < rtd->num_codecs; i++) snd_soc_runtime_activate()
57 rtd->codec_dais[i]->playback_active++; snd_soc_runtime_activate()
60 for (i = 0; i < rtd->num_codecs; i++) snd_soc_runtime_activate()
61 rtd->codec_dais[i]->capture_active++; snd_soc_runtime_activate()
66 for (i = 0; i < rtd->num_codecs; i++) { snd_soc_runtime_activate()
67 rtd->codec_dais[i]->active++; snd_soc_runtime_activate()
68 rtd->codec_dais[i]->component->active++; snd_soc_runtime_activate()
74 * @rtd: ASoC PCM runtime that is deactivated
80 * Must be called with the rtd->pcm_mutex being held
82 void snd_soc_runtime_deactivate(struct snd_soc_pcm_runtime *rtd, int stream) snd_soc_runtime_deactivate() argument
84 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; snd_soc_runtime_deactivate()
87 lockdep_assert_held(&rtd->pcm_mutex); snd_soc_runtime_deactivate()
91 for (i = 0; i < rtd->num_codecs; i++) snd_soc_runtime_deactivate()
92 rtd->codec_dais[i]->playback_active--; snd_soc_runtime_deactivate()
95 for (i = 0; i < rtd->num_codecs; i++) snd_soc_runtime_deactivate()
96 rtd->codec_dais[i]->capture_active--; snd_soc_runtime_deactivate()
101 for (i = 0; i < rtd->num_codecs; i++) { snd_soc_runtime_deactivate()
102 rtd->codec_dais[i]->component->active--; snd_soc_runtime_deactivate()
103 rtd->codec_dais[i]->active--; snd_soc_runtime_deactivate()
109 * @rtd: The ASoC PCM runtime that should be checked.
116 bool snd_soc_runtime_ignore_pmdown_time(struct snd_soc_pcm_runtime *rtd) snd_soc_runtime_ignore_pmdown_time() argument
121 if (!rtd->pmdown_time || rtd->dai_link->ignore_pmdown_time) snd_soc_runtime_ignore_pmdown_time()
124 for (i = 0; i < rtd->num_codecs; i++) snd_soc_runtime_ignore_pmdown_time()
125 ignore &= rtd->codec_dais[i]->component->ignore_pmdown_time; snd_soc_runtime_ignore_pmdown_time()
127 return rtd->cpu_dai->component->ignore_pmdown_time && ignore; snd_soc_runtime_ignore_pmdown_time()
177 struct snd_soc_pcm_runtime *rtd = substream->private_data; soc_pcm_apply_symmetry() local
181 rtd->dai_link->symmetric_rates)) { soc_pcm_apply_symmetry()
197 rtd->dai_link->symmetric_channels)) { soc_pcm_apply_symmetry()
214 rtd->dai_link->symmetric_samplebits)) { soc_pcm_apply_symmetry()
236 struct snd_soc_pcm_runtime *rtd = substream->private_data; soc_pcm_params_symmetry() local
237 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; soc_pcm_params_symmetry()
246 rtd->dai_link->symmetric_rates; soc_pcm_params_symmetry()
248 for (i = 0; i < rtd->num_codecs; i++) soc_pcm_params_symmetry()
249 symmetry |= rtd->codec_dais[i]->driver->symmetric_rates; soc_pcm_params_symmetry()
252 dev_err(rtd->dev, "ASoC: unmatched rate symmetry: %d - %d\n", soc_pcm_params_symmetry()
258 rtd->dai_link->symmetric_channels; soc_pcm_params_symmetry()
260 for (i = 0; i < rtd->num_codecs; i++) soc_pcm_params_symmetry()
261 symmetry |= rtd->codec_dais[i]->driver->symmetric_channels; soc_pcm_params_symmetry()
264 dev_err(rtd->dev, "ASoC: unmatched channel symmetry: %d - %d\n", soc_pcm_params_symmetry()
270 rtd->dai_link->symmetric_samplebits; soc_pcm_params_symmetry()
272 for (i = 0; i < rtd->num_codecs; i++) soc_pcm_params_symmetry()
273 symmetry |= rtd->codec_dais[i]->driver->symmetric_samplebits; soc_pcm_params_symmetry()
276 dev_err(rtd->dev, "ASoC: unmatched sample bits symmetry: %d - %d\n", soc_pcm_params_symmetry()
286 struct snd_soc_pcm_runtime *rtd = substream->private_data; soc_pcm_has_symmetry() local
287 struct snd_soc_dai_driver *cpu_driver = rtd->cpu_dai->driver; soc_pcm_has_symmetry()
288 struct snd_soc_dai_link *link = rtd->dai_link; soc_pcm_has_symmetry()
295 for (i = 0; i < rtd->num_codecs; i++) soc_pcm_has_symmetry()
297 rtd->codec_dais[i]->driver->symmetric_rates || soc_pcm_has_symmetry()
298 rtd->codec_dais[i]->driver->symmetric_channels || soc_pcm_has_symmetry()
299 rtd->codec_dais[i]->driver->symmetric_samplebits; soc_pcm_has_symmetry()
306 struct snd_soc_pcm_runtime *rtd = substream->private_data; soc_pcm_set_msb() local
314 dev_warn(rtd->dev, "ASoC: Failed to set MSB %d: %d\n", soc_pcm_set_msb()
320 struct snd_soc_pcm_runtime *rtd = substream->private_data; soc_pcm_apply_msb() local
321 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; soc_pcm_apply_msb()
327 for (i = 0; i < rtd->num_codecs; i++) { soc_pcm_apply_msb()
328 codec_dai = rtd->codec_dais[i]; soc_pcm_apply_msb()
337 for (i = 0; i < rtd->num_codecs; i++) { soc_pcm_apply_msb()
338 codec_dai = rtd->codec_dais[i]; soc_pcm_apply_msb()
356 struct snd_soc_pcm_runtime *rtd = substream->private_data; soc_pcm_init_runtime_hw() local
357 struct snd_soc_dai_driver *cpu_dai_drv = rtd->cpu_dai->driver; soc_pcm_init_runtime_hw()
373 for (i = 0; i < rtd->num_codecs; i++) { soc_pcm_init_runtime_hw()
374 codec_dai_drv = rtd->codec_dais[i]->driver; soc_pcm_init_runtime_hw()
392 if (rtd->num_codecs > 1) { soc_pcm_init_runtime_hw()
420 struct snd_soc_pcm_runtime *rtd = substream->private_data; soc_pcm_open() local
422 struct snd_soc_platform *platform = rtd->platform; soc_pcm_open()
423 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; soc_pcm_open()
429 for (i = 0; i < rtd->num_codecs; i++) soc_pcm_open()
430 pinctrl_pm_select_default_state(rtd->codec_dais[i]->dev); soc_pcm_open()
432 for (i = 0; i < rtd->num_codecs; i++) soc_pcm_open()
433 pm_runtime_get_sync(rtd->codec_dais[i]->dev); soc_pcm_open()
436 mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass); soc_pcm_open()
457 for (i = 0; i < rtd->num_codecs; i++) { soc_pcm_open()
458 codec_dai = rtd->codec_dais[i]; soc_pcm_open()
476 if (rtd->dai_link->ops && rtd->dai_link->ops->startup) { soc_pcm_open()
477 ret = rtd->dai_link->ops->startup(substream); soc_pcm_open()
480 rtd->dai_link->name, ret); soc_pcm_open()
486 if (rtd->dai_link->dynamic || rtd->dai_link->no_pcm) soc_pcm_open()
492 if (rtd->num_codecs == 1) soc_pcm_open()
493 codec_dai_name = rtd->codec_dai->name; soc_pcm_open()
525 for (i = 0; i < rtd->num_codecs; i++) { soc_pcm_open()
526 if (rtd->codec_dais[i]->active) { soc_pcm_open()
528 rtd->codec_dais[i]); soc_pcm_open()
544 snd_soc_runtime_activate(rtd, substream->stream); soc_pcm_open()
546 mutex_unlock(&rtd->pcm_mutex); soc_pcm_open()
550 if (rtd->dai_link->ops && rtd->dai_link->ops->shutdown) soc_pcm_open()
551 rtd->dai_link->ops->shutdown(substream); soc_pcm_open()
554 i = rtd->num_codecs; soc_pcm_open()
558 codec_dai = rtd->codec_dais[i]; soc_pcm_open()
570 mutex_unlock(&rtd->pcm_mutex); soc_pcm_open()
573 for (i = 0; i < rtd->num_codecs; i++) soc_pcm_open()
574 pm_runtime_put(rtd->codec_dais[i]->dev); soc_pcm_open()
576 for (i = 0; i < rtd->num_codecs; i++) { soc_pcm_open()
577 if (!rtd->codec_dais[i]->active) soc_pcm_open()
578 pinctrl_pm_select_sleep_state(rtd->codec_dais[i]->dev); soc_pcm_open()
593 struct snd_soc_pcm_runtime *rtd = close_delayed_work() local
595 struct snd_soc_dai *codec_dai = rtd->codec_dais[0]; close_delayed_work()
597 mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass); close_delayed_work()
599 dev_dbg(rtd->dev, "ASoC: pop wq checking: %s status: %s waiting: %s\n", close_delayed_work()
602 rtd->pop_wait ? "yes" : "no"); close_delayed_work()
605 if (rtd->pop_wait == 1) { close_delayed_work()
606 rtd->pop_wait = 0; close_delayed_work()
607 snd_soc_dapm_stream_event(rtd, SNDRV_PCM_STREAM_PLAYBACK, close_delayed_work()
611 mutex_unlock(&rtd->pcm_mutex); close_delayed_work()
621 struct snd_soc_pcm_runtime *rtd = substream->private_data; soc_pcm_close() local
622 struct snd_soc_platform *platform = rtd->platform; soc_pcm_close()
623 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; soc_pcm_close()
627 mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass); soc_pcm_close()
629 snd_soc_runtime_deactivate(rtd, substream->stream); soc_pcm_close()
635 for (i = 0; i < rtd->num_codecs; i++) { soc_pcm_close()
636 codec_dai = rtd->codec_dais[i]; soc_pcm_close()
646 for (i = 0; i < rtd->num_codecs; i++) { soc_pcm_close()
647 codec_dai = rtd->codec_dais[i]; soc_pcm_close()
652 if (rtd->dai_link->ops && rtd->dai_link->ops->shutdown) soc_pcm_close()
653 rtd->dai_link->ops->shutdown(substream); soc_pcm_close()
659 if (snd_soc_runtime_ignore_pmdown_time(rtd)) { soc_pcm_close()
661 snd_soc_dapm_stream_event(rtd, soc_pcm_close()
666 rtd->pop_wait = 1; soc_pcm_close()
668 &rtd->delayed_work, soc_pcm_close()
669 msecs_to_jiffies(rtd->pmdown_time)); soc_pcm_close()
673 snd_soc_dapm_stream_event(rtd, SNDRV_PCM_STREAM_CAPTURE, soc_pcm_close()
677 mutex_unlock(&rtd->pcm_mutex); soc_pcm_close()
680 for (i = 0; i < rtd->num_codecs; i++) soc_pcm_close()
681 pm_runtime_put(rtd->codec_dais[i]->dev); soc_pcm_close()
683 for (i = 0; i < rtd->num_codecs; i++) { soc_pcm_close()
684 if (!rtd->codec_dais[i]->active) soc_pcm_close()
685 pinctrl_pm_select_sleep_state(rtd->codec_dais[i]->dev); soc_pcm_close()
700 struct snd_soc_pcm_runtime *rtd = substream->private_data; soc_pcm_prepare() local
701 struct snd_soc_platform *platform = rtd->platform; soc_pcm_prepare()
702 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; soc_pcm_prepare()
706 mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass); soc_pcm_prepare()
708 if (rtd->dai_link->ops && rtd->dai_link->ops->prepare) { soc_pcm_prepare()
709 ret = rtd->dai_link->ops->prepare(substream); soc_pcm_prepare()
711 dev_err(rtd->card->dev, "ASoC: machine prepare error:" soc_pcm_prepare()
726 for (i = 0; i < rtd->num_codecs; i++) { soc_pcm_prepare()
727 codec_dai = rtd->codec_dais[i]; soc_pcm_prepare()
751 rtd->pop_wait) { soc_pcm_prepare()
752 rtd->pop_wait = 0; soc_pcm_prepare()
753 cancel_delayed_work(&rtd->delayed_work); soc_pcm_prepare()
756 snd_soc_dapm_stream_event(rtd, substream->stream, soc_pcm_prepare()
759 for (i = 0; i < rtd->num_codecs; i++) soc_pcm_prepare()
760 snd_soc_dai_digital_mute(rtd->codec_dais[i], 0, soc_pcm_prepare()
765 mutex_unlock(&rtd->pcm_mutex); soc_pcm_prepare()
806 struct snd_soc_pcm_runtime *rtd = substream->private_data; soc_pcm_hw_params() local
807 struct snd_soc_platform *platform = rtd->platform; soc_pcm_hw_params()
808 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; soc_pcm_hw_params()
811 mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass); soc_pcm_hw_params()
817 if (rtd->dai_link->ops && rtd->dai_link->ops->hw_params) { soc_pcm_hw_params()
818 ret = rtd->dai_link->ops->hw_params(substream, params); soc_pcm_hw_params()
820 dev_err(rtd->card->dev, "ASoC: machine hw_params" soc_pcm_hw_params()
826 for (i = 0; i < rtd->num_codecs; i++) { soc_pcm_hw_params()
827 struct snd_soc_dai *codec_dai = rtd->codec_dais[i]; soc_pcm_hw_params()
871 mutex_unlock(&rtd->pcm_mutex); soc_pcm_hw_params()
879 i = rtd->num_codecs; soc_pcm_hw_params()
883 struct snd_soc_dai *codec_dai = rtd->codec_dais[i]; soc_pcm_hw_params()
889 if (rtd->dai_link->ops && rtd->dai_link->ops->hw_free) soc_pcm_hw_params()
890 rtd->dai_link->ops->hw_free(substream); soc_pcm_hw_params()
892 mutex_unlock(&rtd->pcm_mutex); soc_pcm_hw_params()
901 struct snd_soc_pcm_runtime *rtd = substream->private_data; soc_pcm_hw_free() local
902 struct snd_soc_platform *platform = rtd->platform; soc_pcm_hw_free()
903 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; soc_pcm_hw_free()
908 mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass); soc_pcm_hw_free()
917 for (i = 0; i < rtd->num_codecs; i++) { soc_pcm_hw_free()
918 codec_dai = rtd->codec_dais[i]; soc_pcm_hw_free()
927 for (i = 0; i < rtd->num_codecs; i++) { soc_pcm_hw_free()
928 if ((playback && rtd->codec_dais[i]->playback_active == 1) || soc_pcm_hw_free()
929 (!playback && rtd->codec_dais[i]->capture_active == 1)) soc_pcm_hw_free()
930 snd_soc_dai_digital_mute(rtd->codec_dais[i], 1, soc_pcm_hw_free()
935 if (rtd->dai_link->ops && rtd->dai_link->ops->hw_free) soc_pcm_hw_free()
936 rtd->dai_link->ops->hw_free(substream); soc_pcm_hw_free()
943 for (i = 0; i < rtd->num_codecs; i++) { soc_pcm_hw_free()
944 codec_dai = rtd->codec_dais[i]; soc_pcm_hw_free()
952 mutex_unlock(&rtd->pcm_mutex); soc_pcm_hw_free()
958 struct snd_soc_pcm_runtime *rtd = substream->private_data; soc_pcm_trigger() local
959 struct snd_soc_platform *platform = rtd->platform; soc_pcm_trigger()
960 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; soc_pcm_trigger()
964 for (i = 0; i < rtd->num_codecs; i++) { soc_pcm_trigger()
965 codec_dai = rtd->codec_dais[i]; soc_pcm_trigger()
986 if (rtd->dai_link->ops && rtd->dai_link->ops->trigger) { soc_pcm_trigger()
987 ret = rtd->dai_link->ops->trigger(substream, cmd); soc_pcm_trigger()
998 struct snd_soc_pcm_runtime *rtd = substream->private_data; soc_pcm_bespoke_trigger() local
999 struct snd_soc_platform *platform = rtd->platform; soc_pcm_bespoke_trigger()
1000 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; soc_pcm_bespoke_trigger()
1004 for (i = 0; i < rtd->num_codecs; i++) { soc_pcm_bespoke_trigger()
1005 codec_dai = rtd->codec_dais[i]; soc_pcm_bespoke_trigger()
1035 struct snd_soc_pcm_runtime *rtd = substream->private_data; soc_pcm_pointer() local
1036 struct snd_soc_platform *platform = rtd->platform; soc_pcm_pointer()
1037 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; soc_pcm_pointer()
1051 for (i = 0; i < rtd->num_codecs; i++) { soc_pcm_pointer()
1052 codec_dai = rtd->codec_dais[i]; soc_pcm_pointer()
1065 delay += platform->driver->delay(substream, rtd->codec_dais[0]); soc_pcm_pointer()
1173 be = &card->rtd[i]; dpcm_get_be()
1190 be = &card->rtd[i]; dpcm_get_be()
1315 /* is there a valid BE rtd for this widget */ dpcm_add_paths()
1504 struct snd_soc_pcm_runtime *rtd = substream->private_data; dpcm_set_fe_runtime() local
1505 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; dpcm_set_fe_runtime()
2100 struct snd_soc_pcm_runtime *rtd = substream->private_data; soc_pcm_ioctl() local
2101 struct snd_soc_platform *platform = rtd->platform; soc_pcm_ioctl()
2270 struct snd_soc_pcm_runtime *fe = &card->rtd[i]; soc_dpcm_runtime_update()
2450 int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int num) soc_new_pcm() argument
2452 struct snd_soc_platform *platform = rtd->platform; soc_new_pcm()
2454 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; soc_new_pcm()
2460 if (rtd->dai_link->dynamic || rtd->dai_link->no_pcm) { soc_new_pcm()
2461 playback = rtd->dai_link->dpcm_playback; soc_new_pcm()
2462 capture = rtd->dai_link->dpcm_capture; soc_new_pcm()
2464 for (i = 0; i < rtd->num_codecs; i++) { soc_new_pcm()
2465 codec_dai = rtd->codec_dais[i]; soc_new_pcm()
2476 if (rtd->dai_link->playback_only) { soc_new_pcm()
2481 if (rtd->dai_link->capture_only) { soc_new_pcm()
2487 if (rtd->dai_link->no_pcm) { soc_new_pcm()
2489 rtd->dai_link->stream_name); soc_new_pcm()
2491 ret = snd_pcm_new_internal(rtd->card->snd_card, new_name, num, soc_new_pcm()
2494 if (rtd->dai_link->dynamic) soc_new_pcm()
2496 rtd->dai_link->stream_name); soc_new_pcm()
2499 rtd->dai_link->stream_name, soc_new_pcm()
2500 (rtd->num_codecs > 1) ? soc_new_pcm()
2501 "multicodec" : rtd->codec_dai->name, num); soc_new_pcm()
2503 ret = snd_pcm_new(rtd->card->snd_card, new_name, num, playback, soc_new_pcm()
2507 dev_err(rtd->card->dev, "ASoC: can't create pcm for %s\n", soc_new_pcm()
2508 rtd->dai_link->name); soc_new_pcm()
2511 dev_dbg(rtd->card->dev, "ASoC: registered pcm #%d %s\n",num, new_name); soc_new_pcm()
2514 INIT_DELAYED_WORK(&rtd->delayed_work, close_delayed_work); soc_new_pcm()
2516 pcm->nonatomic = rtd->dai_link->nonatomic; soc_new_pcm()
2517 rtd->pcm = pcm; soc_new_pcm()
2518 pcm->private_data = rtd; soc_new_pcm()
2520 if (rtd->dai_link->no_pcm) { soc_new_pcm()
2522 pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->private_data = rtd; soc_new_pcm()
2524 pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->private_data = rtd; soc_new_pcm()
2529 if (rtd->dai_link->dynamic) { soc_new_pcm()
2530 rtd->ops.open = dpcm_fe_dai_open; soc_new_pcm()
2531 rtd->ops.hw_params = dpcm_fe_dai_hw_params; soc_new_pcm()
2532 rtd->ops.prepare = dpcm_fe_dai_prepare; soc_new_pcm()
2533 rtd->ops.trigger = dpcm_fe_dai_trigger; soc_new_pcm()
2534 rtd->ops.hw_free = dpcm_fe_dai_hw_free; soc_new_pcm()
2535 rtd->ops.close = dpcm_fe_dai_close; soc_new_pcm()
2536 rtd->ops.pointer = soc_pcm_pointer; soc_new_pcm()
2537 rtd->ops.ioctl = soc_pcm_ioctl; soc_new_pcm()
2539 rtd->ops.open = soc_pcm_open; soc_new_pcm()
2540 rtd->ops.hw_params = soc_pcm_hw_params; soc_new_pcm()
2541 rtd->ops.prepare = soc_pcm_prepare; soc_new_pcm()
2542 rtd->ops.trigger = soc_pcm_trigger; soc_new_pcm()
2543 rtd->ops.hw_free = soc_pcm_hw_free; soc_new_pcm()
2544 rtd->ops.close = soc_pcm_close; soc_new_pcm()
2545 rtd->ops.pointer = soc_pcm_pointer; soc_new_pcm()
2546 rtd->ops.ioctl = soc_pcm_ioctl; soc_new_pcm()
2550 rtd->ops.ack = platform->driver->ops->ack; soc_new_pcm()
2551 rtd->ops.copy = platform->driver->ops->copy; soc_new_pcm()
2552 rtd->ops.silence = platform->driver->ops->silence; soc_new_pcm()
2553 rtd->ops.page = platform->driver->ops->page; soc_new_pcm()
2554 rtd->ops.mmap = platform->driver->ops->mmap; soc_new_pcm()
2558 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &rtd->ops); soc_new_pcm()
2561 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &rtd->ops); soc_new_pcm()
2564 ret = platform->driver->pcm_new(rtd); soc_new_pcm()
2575 dev_info(rtd->card->dev, "%s <-> %s mapping ok\n", soc_new_pcm()
2576 (rtd->num_codecs > 1) ? "multicodec" : rtd->codec_dai->name, soc_new_pcm()
2808 void soc_dpcm_debugfs_add(struct snd_soc_pcm_runtime *rtd) soc_dpcm_debugfs_add() argument
2810 if (!rtd->dai_link) soc_dpcm_debugfs_add()
2813 if (!rtd->card->debugfs_card_root) soc_dpcm_debugfs_add()
2816 rtd->debugfs_dpcm_root = debugfs_create_dir(rtd->dai_link->name, soc_dpcm_debugfs_add()
2817 rtd->card->debugfs_card_root); soc_dpcm_debugfs_add()
2818 if (!rtd->debugfs_dpcm_root) { soc_dpcm_debugfs_add()
2819 dev_dbg(rtd->dev, soc_dpcm_debugfs_add()
2821 rtd->dai_link->name); soc_dpcm_debugfs_add()
2825 rtd->debugfs_dpcm_state = debugfs_create_file("state", 0444, soc_dpcm_debugfs_add()
2826 rtd->debugfs_dpcm_root, soc_dpcm_debugfs_add()
2827 rtd, &dpcm_state_fops); soc_dpcm_debugfs_add()
H A Dsoc-generic-dmaengine-pcm.c64 struct snd_soc_pcm_runtime *rtd = substream->private_data; snd_dmaengine_pcm_prepare_slave_config() local
68 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); snd_dmaengine_pcm_prepare_slave_config()
84 struct snd_soc_pcm_runtime *rtd = substream->private_data; dmaengine_pcm_hw_params() local
85 struct dmaengine_pcm *pcm = soc_platform_to_pcm(rtd->platform); dmaengine_pcm_hw_params()
115 struct snd_soc_pcm_runtime *rtd = substream->private_data; dmaengine_pcm_set_runtime_hwparams() local
116 struct dmaengine_pcm *pcm = soc_platform_to_pcm(rtd->platform); dmaengine_pcm_set_runtime_hwparams()
131 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); dmaengine_pcm_set_runtime_hwparams()
191 struct snd_soc_pcm_runtime *rtd = substream->private_data; dmaengine_pcm_open() local
192 struct dmaengine_pcm *pcm = soc_platform_to_pcm(rtd->platform); dmaengine_pcm_open()
204 struct snd_soc_pcm_runtime *rtd, dmaengine_pcm_compat_request_channel()
207 struct dmaengine_pcm *pcm = soc_platform_to_pcm(rtd->platform); dmaengine_pcm_compat_request_channel()
211 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); dmaengine_pcm_compat_request_channel()
217 return pcm->config->compat_request_channel(rtd, substream); dmaengine_pcm_compat_request_channel()
240 static int dmaengine_pcm_new(struct snd_soc_pcm_runtime *rtd) dmaengine_pcm_new() argument
242 struct dmaengine_pcm *pcm = soc_platform_to_pcm(rtd->platform); dmaengine_pcm_new()
244 struct device *dev = rtd->platform->dev; dmaengine_pcm_new()
262 substream = rtd->pcm->streams[i].substream; dmaengine_pcm_new()
266 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); dmaengine_pcm_new()
274 pcm->chan[i] = dmaengine_pcm_compat_request_channel(rtd, dmaengine_pcm_new()
279 dev_err(rtd->platform->dev, dmaengine_pcm_new()
309 struct snd_soc_pcm_runtime *rtd = substream->private_data; dmaengine_pcm_pointer() local
310 struct dmaengine_pcm *pcm = soc_platform_to_pcm(rtd->platform); dmaengine_pcm_pointer()
203 dmaengine_pcm_compat_request_channel( struct snd_soc_pcm_runtime *rtd, struct snd_pcm_substream *substream) dmaengine_pcm_compat_request_channel() argument
H A Dsoc-core.c163 struct snd_soc_pcm_runtime *rtd = dev_get_drvdata(dev); codec_reg_show() local
165 return soc_codec_reg_show(rtd->codec, buf, PAGE_SIZE, 0); codec_reg_show()
173 struct snd_soc_pcm_runtime *rtd = dev_get_drvdata(dev); pmdown_time_show() local
175 return sprintf(buf, "%ld\n", rtd->pmdown_time); pmdown_time_show()
182 struct snd_soc_pcm_runtime *rtd = dev_get_drvdata(dev); pmdown_time_set() local
185 ret = kstrtol(buf, 10, &rtd->pmdown_time); pmdown_time_set()
204 struct snd_soc_pcm_runtime *rtd = dev_get_drvdata(dev); soc_dev_attr_is_visible() local
208 return rtd->codec ? attr->mode : 0; /* enabled only with codec */ soc_dev_attr_is_visible()
551 if (card->rtd[i].dai_link->no_pcm && snd_soc_get_dai_substream()
552 !strcmp(card->rtd[i].dai_link->name, dai_link)) snd_soc_get_dai_substream()
553 return card->rtd[i].pcm->streams[stream].substream; snd_soc_get_dai_substream()
566 if (!strcmp(card->rtd[i].dai_link->name, dai_link)) snd_soc_get_pcm_runtime()
567 return &card->rtd[i]; snd_soc_get_pcm_runtime()
569 dev_dbg(card->dev, "ASoC: failed to find rtd %s\n", dai_link); snd_soc_get_pcm_runtime()
608 if (card->rtd[i].dai_link->ignore_suspend) snd_soc_suspend()
611 for (j = 0; j < card->rtd[i].num_codecs; j++) { snd_soc_suspend()
612 struct snd_soc_dai *dai = card->rtd[i].codec_dais[j]; snd_soc_suspend()
622 if (card->rtd[i].dai_link->ignore_suspend) snd_soc_suspend()
625 snd_pcm_suspend_all(card->rtd[i].pcm); snd_soc_suspend()
632 struct snd_soc_dai *cpu_dai = card->rtd[i].cpu_dai; snd_soc_suspend()
634 if (card->rtd[i].dai_link->ignore_suspend) snd_soc_suspend()
643 flush_delayed_work(&card->rtd[i].delayed_work); snd_soc_suspend()
647 if (card->rtd[i].dai_link->ignore_suspend) snd_soc_suspend()
650 snd_soc_dapm_stream_event(&card->rtd[i], snd_soc_suspend()
654 snd_soc_dapm_stream_event(&card->rtd[i], snd_soc_suspend()
700 struct snd_soc_dai *cpu_dai = card->rtd[i].cpu_dai; snd_soc_suspend()
702 if (card->rtd[i].dai_link->ignore_suspend) snd_soc_suspend()
743 struct snd_soc_dai *cpu_dai = card->rtd[i].cpu_dai; soc_resume_deferred()
745 if (card->rtd[i].dai_link->ignore_suspend) soc_resume_deferred()
775 if (card->rtd[i].dai_link->ignore_suspend) soc_resume_deferred()
778 snd_soc_dapm_stream_event(&card->rtd[i], soc_resume_deferred()
782 snd_soc_dapm_stream_event(&card->rtd[i], soc_resume_deferred()
790 if (card->rtd[i].dai_link->ignore_suspend) soc_resume_deferred()
793 for (j = 0; j < card->rtd[i].num_codecs; j++) { soc_resume_deferred()
794 struct snd_soc_dai *dai = card->rtd[i].codec_dais[j]; soc_resume_deferred()
803 struct snd_soc_dai *cpu_dai = card->rtd[i].cpu_dai; soc_resume_deferred()
805 if (card->rtd[i].dai_link->ignore_suspend) soc_resume_deferred()
838 struct snd_soc_pcm_runtime *rtd = &card->rtd[i]; snd_soc_resume() local
839 struct snd_soc_dai **codec_dais = rtd->codec_dais; snd_soc_resume()
840 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; snd_soc_resume()
846 for (j = 0; j < rtd->num_codecs; j++) { snd_soc_resume()
860 struct snd_soc_dai *cpu_dai = card->rtd[i].cpu_dai; snd_soc_resume()
930 struct snd_soc_pcm_runtime *rtd = &card->rtd[num]; soc_bind_dai_link() local
933 struct snd_soc_dai **codec_dais = rtd->codec_dais; soc_bind_dai_link()
943 rtd->cpu_dai = snd_soc_find_dai(&cpu_dai_component); soc_bind_dai_link()
944 if (!rtd->cpu_dai) { soc_bind_dai_link()
950 rtd->num_codecs = dai_link->num_codecs; soc_bind_dai_link()
953 for (i = 0; i < rtd->num_codecs; i++) { soc_bind_dai_link()
963 rtd->codec_dai = codec_dais[0]; soc_bind_dai_link()
964 rtd->codec = rtd->codec_dai->codec; soc_bind_dai_link()
982 rtd->platform = platform; soc_bind_dai_link()
984 if (!rtd->platform) { soc_bind_dai_link()
1033 struct snd_soc_pcm_runtime *rtd = &card->rtd[num]; soc_remove_link_dais() local
1036 /* unregister the rtd device */ soc_remove_link_dais()
1037 if (rtd->dev_registered) { soc_remove_link_dais()
1038 device_unregister(rtd->dev); soc_remove_link_dais()
1039 rtd->dev_registered = 0; soc_remove_link_dais()
1043 for (i = 0; i < rtd->num_codecs; i++) soc_remove_link_dais()
1044 soc_remove_dai(rtd->codec_dais[i], order); soc_remove_link_dais()
1046 soc_remove_dai(rtd->cpu_dai, order); soc_remove_link_dais()
1052 struct snd_soc_pcm_runtime *rtd = &card->rtd[num]; soc_remove_link_components() local
1053 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; soc_remove_link_components()
1054 struct snd_soc_platform *platform = rtd->platform; soc_remove_link_components()
1063 for (i = 0; i < rtd->num_codecs; i++) { soc_remove_link_components()
1064 component = rtd->codec_dais[i]->component; soc_remove_link_components()
1195 static int soc_post_component_init(struct snd_soc_pcm_runtime *rtd, soc_post_component_init() argument
1200 /* register the rtd device */ soc_post_component_init()
1201 rtd->dev = kzalloc(sizeof(struct device), GFP_KERNEL); soc_post_component_init()
1202 if (!rtd->dev) soc_post_component_init()
1204 device_initialize(rtd->dev); soc_post_component_init()
1205 rtd->dev->parent = rtd->card->dev; soc_post_component_init()
1206 rtd->dev->release = rtd_release; soc_post_component_init()
1207 rtd->dev->groups = soc_dev_attr_groups; soc_post_component_init()
1208 dev_set_name(rtd->dev, "%s", name); soc_post_component_init()
1209 dev_set_drvdata(rtd->dev, rtd); soc_post_component_init()
1210 mutex_init(&rtd->pcm_mutex); soc_post_component_init()
1211 INIT_LIST_HEAD(&rtd->dpcm[SNDRV_PCM_STREAM_PLAYBACK].be_clients); soc_post_component_init()
1212 INIT_LIST_HEAD(&rtd->dpcm[SNDRV_PCM_STREAM_CAPTURE].be_clients); soc_post_component_init()
1213 INIT_LIST_HEAD(&rtd->dpcm[SNDRV_PCM_STREAM_PLAYBACK].fe_clients); soc_post_component_init()
1214 INIT_LIST_HEAD(&rtd->dpcm[SNDRV_PCM_STREAM_CAPTURE].fe_clients); soc_post_component_init()
1215 ret = device_add(rtd->dev); soc_post_component_init()
1217 /* calling put_device() here to free the rtd->dev */ soc_post_component_init()
1218 put_device(rtd->dev); soc_post_component_init()
1219 dev_err(rtd->card->dev, soc_post_component_init()
1223 rtd->dev_registered = 1; soc_post_component_init()
1230 struct snd_soc_pcm_runtime *rtd = &card->rtd[num]; soc_probe_link_components() local
1231 struct snd_soc_platform *platform = rtd->platform; soc_probe_link_components()
1236 component = rtd->cpu_dai->component; soc_probe_link_components()
1244 for (i = 0; i < rtd->num_codecs; i++) { soc_probe_link_components()
1245 component = rtd->codec_dais[i]->component; soc_probe_link_components()
1286 struct snd_soc_pcm_runtime *rtd) soc_link_dai_widgets()
1288 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; soc_link_dai_widgets()
1289 struct snd_soc_dai *codec_dai = rtd->codec_dai; soc_link_dai_widgets()
1293 if (rtd->num_codecs > 1) soc_link_dai_widgets()
1329 struct snd_soc_pcm_runtime *rtd = &card->rtd[num]; soc_probe_link_dais() local
1330 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; soc_probe_link_dais()
1337 rtd->pmdown_time = pmdown_time; soc_probe_link_dais()
1344 for (i = 0; i < rtd->num_codecs; i++) { soc_probe_link_dais()
1345 ret = soc_probe_dai(rtd->codec_dais[i], order); soc_probe_link_dais()
1356 ret = dai_link->init(rtd); soc_probe_link_dais()
1365 snd_soc_runtime_set_dai_fmt(rtd, dai_link->dai_fmt); soc_probe_link_dais()
1367 ret = soc_post_component_init(rtd, dai_link->name); soc_probe_link_dais()
1374 soc_dpcm_debugfs_add(rtd); soc_probe_link_dais()
1379 ret = soc_new_compress(rtd, num); soc_probe_link_dais()
1389 ret = soc_new_pcm(rtd, num); soc_probe_link_dais()
1396 INIT_DELAYED_WORK(&rtd->delayed_work, soc_probe_link_dais()
1400 ret = soc_link_dai_widgets(card, dai_link, rtd); soc_probe_link_dais()
1411 struct snd_soc_pcm_runtime *rtd = &card->rtd_aux[num]; soc_bind_aux_dev() local
1415 rtd->component = soc_find_component(aux_dev->codec_of_node, name); soc_bind_aux_dev()
1416 if (!rtd->component) { soc_bind_aux_dev()
1425 * Some places still reference rtd->codec, so we have to keep that soc_bind_aux_dev()
1429 rtd->codec = rtd->component->codec; soc_bind_aux_dev()
1436 struct snd_soc_pcm_runtime *rtd = &card->rtd_aux[num]; soc_probe_aux_dev() local
1440 ret = soc_probe_component(card, rtd->component); soc_probe_aux_dev()
1446 ret = aux_dev->init(rtd->component); soc_probe_aux_dev()
1454 return soc_post_component_init(rtd, aux_dev->name); soc_probe_aux_dev()
1459 struct snd_soc_pcm_runtime *rtd = &card->rtd_aux[num]; soc_remove_aux_dev() local
1460 struct snd_soc_component *component = rtd->component; soc_remove_aux_dev()
1462 /* unregister the rtd device */ soc_remove_aux_dev()
1463 if (rtd->dev_registered) { soc_remove_aux_dev()
1464 device_unregister(rtd->dev); soc_remove_aux_dev()
1465 rtd->dev_registered = 0; soc_remove_aux_dev()
1492 * @rtd: The runtime for which the DAI link format should be changed
1503 int snd_soc_runtime_set_dai_fmt(struct snd_soc_pcm_runtime *rtd, snd_soc_runtime_set_dai_fmt() argument
1506 struct snd_soc_dai **codec_dais = rtd->codec_dais; snd_soc_runtime_set_dai_fmt()
1507 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; snd_soc_runtime_set_dai_fmt()
1511 for (i = 0; i < rtd->num_codecs; i++) { snd_soc_runtime_set_dai_fmt()
1773 struct snd_soc_pcm_runtime *rtd = &card->rtd[i]; soc_cleanup_card_resources() local
1774 flush_delayed_work(&rtd->delayed_work); soc_cleanup_card_resources()
1817 struct snd_soc_pcm_runtime *rtd = &card->rtd[i]; snd_soc_poweroff() local
1818 flush_delayed_work(&rtd->delayed_work); snd_soc_poweroff()
1825 struct snd_soc_pcm_runtime *rtd = &card->rtd[i]; snd_soc_poweroff() local
1826 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; snd_soc_poweroff()
1830 for (j = 0; j < rtd->num_codecs; j++) { snd_soc_poweroff()
1831 struct snd_soc_dai *codec_dai = rtd->codec_dais[j]; snd_soc_poweroff()
2414 card->rtd = devm_kzalloc(card->dev, snd_soc_register_card()
2418 if (card->rtd == NULL) snd_soc_register_card()
2421 card->rtd_aux = &card->rtd[card->num_links]; snd_soc_register_card()
2424 card->rtd[i].card = card; snd_soc_register_card()
2425 card->rtd[i].dai_link = &card->dai_link[i]; snd_soc_register_card()
2426 card->rtd[i].codec_dais = devm_kzalloc(card->dev, snd_soc_register_card()
2428 (card->rtd[i].dai_link->num_codecs), snd_soc_register_card()
2430 if (card->rtd[i].codec_dais == NULL) snd_soc_register_card()
2448 struct snd_soc_pcm_runtime *rtd = &card->rtd[i]; snd_soc_register_card() local
2449 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; snd_soc_register_card()
2452 for (j = 0; j < rtd->num_codecs; j++) { snd_soc_register_card()
2453 struct snd_soc_dai *codec_dai = rtd->codec_dais[j]; snd_soc_register_card()
1284 soc_link_dai_widgets(struct snd_soc_card *card, struct snd_soc_dai_link *dai_link, struct snd_soc_pcm_runtime *rtd) soc_link_dai_widgets() argument
H A Dsoc-utils.c74 struct snd_soc_pcm_runtime *rtd = substream->private_data; dummy_dma_open() local
77 if (!rtd->dai_link->no_pcm) dummy_dma_open()
H A Dsoc-dapm.c2145 struct snd_soc_pcm_runtime *rtd = dev_get_drvdata(dev); dapm_widget_show() local
2148 mutex_lock(&rtd->card->dapm_mutex); dapm_widget_show()
2150 for (i = 0; i < rtd->num_codecs; i++) { dapm_widget_show()
2151 struct snd_soc_codec *codec = rtd->codec_dais[i]->codec; dapm_widget_show()
2155 mutex_unlock(&rtd->card->dapm_mutex); dapm_widget_show()
3582 struct snd_soc_pcm_runtime *rtd) dapm_connect_dai_link_widgets()
3584 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; dapm_connect_dai_link_widgets()
3588 for (i = 0; i < rtd->num_codecs; i++) { dapm_connect_dai_link_widgets()
3589 struct snd_soc_dai *codec_dai = rtd->codec_dais[i]; dapm_connect_dai_link_widgets()
3600 dev_dbg(rtd->dev, "connected DAI link %s:%s -> %s:%s\n", dapm_connect_dai_link_widgets()
3612 dev_dbg(rtd->dev, "connected DAI link %s:%s -> %s:%s\n", dapm_connect_dai_link_widgets()
3661 struct snd_soc_pcm_runtime *rtd = card->rtd; snd_soc_dapm_connect_dai_link_widgets() local
3666 rtd = &card->rtd[i]; snd_soc_dapm_connect_dai_link_widgets()
3672 if (rtd->dai_link->dynamic || rtd->dai_link->params) snd_soc_dapm_connect_dai_link_widgets()
3675 dapm_connect_dai_link_widgets(card, rtd); snd_soc_dapm_connect_dai_link_widgets()
3679 static void soc_dapm_stream_event(struct snd_soc_pcm_runtime *rtd, int stream, soc_dapm_stream_event() argument
3684 soc_dapm_dai_stream_event(rtd->cpu_dai, stream, event); soc_dapm_stream_event()
3685 for (i = 0; i < rtd->num_codecs; i++) soc_dapm_stream_event()
3686 soc_dapm_dai_stream_event(rtd->codec_dais[i], stream, event); soc_dapm_stream_event()
3688 dapm_power_widgets(rtd->card, event); soc_dapm_stream_event()
3693 * @rtd: PCM runtime data
3702 void snd_soc_dapm_stream_event(struct snd_soc_pcm_runtime *rtd, int stream, snd_soc_dapm_stream_event() argument
3705 struct snd_soc_card *card = rtd->card; snd_soc_dapm_stream_event()
3708 soc_dapm_stream_event(rtd, stream, event); snd_soc_dapm_stream_event()
3581 dapm_connect_dai_link_widgets(struct snd_soc_card *card, struct snd_soc_pcm_runtime *rtd) dapm_connect_dai_link_widgets() argument
/linux-4.1.27/sound/soc/intel/baytrail/
H A Dsst-baytrail-pcm.c71 struct snd_soc_pcm_runtime *rtd = substream->private_data; sst_byt_pcm_hw_params() local
73 snd_soc_platform_get_drvdata(rtd->platform); sst_byt_pcm_hw_params()
80 dev_dbg(rtd->dev, "PCM: hw_params, pcm_data %p\n", pcm_data); sst_byt_pcm_hw_params()
85 dev_err(rtd->dev, "failed to set stream format %d\n", ret); sst_byt_pcm_hw_params()
92 dev_err(rtd->dev, "could not set rate %d\n", rate); sst_byt_pcm_hw_params()
99 dev_err(rtd->dev, "could not set formats %d\n", sst_byt_pcm_hw_params()
107 dev_err(rtd->dev, "could not set channels %d\n", sst_byt_pcm_hw_params()
118 dev_err(rtd->dev, "PCM: failed to set DMA buffer %d\n", ret); sst_byt_pcm_hw_params()
124 dev_err(rtd->dev, "PCM: failed stream commit %d\n", ret); sst_byt_pcm_hw_params()
133 struct snd_soc_pcm_runtime *rtd = substream->private_data; sst_byt_pcm_hw_free() local
135 dev_dbg(rtd->dev, "PCM: hw_free\n"); sst_byt_pcm_hw_free()
143 struct snd_soc_pcm_runtime *rtd = substream->private_data; sst_byt_pcm_restore_stream_context() local
145 snd_soc_platform_get_drvdata(rtd->platform); sst_byt_pcm_restore_stream_context()
153 dev_err(rtd->dev, "PCM: failed stream commit %d\n", ret); sst_byt_pcm_restore_stream_context()
159 dev_dbg(rtd->dev, "stream context restored at offset %d\n", sst_byt_pcm_restore_stream_context()
176 struct snd_soc_pcm_runtime *rtd = substream->private_data; sst_byt_pcm_trigger() local
178 snd_soc_platform_get_drvdata(rtd->platform); sst_byt_pcm_trigger()
182 dev_dbg(rtd->dev, "PCM: trigger %d\n", cmd); sst_byt_pcm_trigger()
218 struct snd_soc_pcm_runtime *rtd = substream->private_data; byt_notify_pointer() local
220 snd_soc_platform_get_drvdata(rtd->platform); byt_notify_pointer()
231 dev_dbg(rtd->dev, "PCM: App/DMA pointer %u/%u bytes\n", pos, hw_pos); byt_notify_pointer()
239 struct snd_soc_pcm_runtime *rtd = substream->private_data; sst_byt_pcm_pointer() local
242 snd_soc_platform_get_drvdata(rtd->platform); sst_byt_pcm_pointer()
245 dev_dbg(rtd->dev, "PCM: DMA pointer %u bytes\n", pcm_data->hw_ptr); sst_byt_pcm_pointer()
252 struct snd_soc_pcm_runtime *rtd = substream->private_data; sst_byt_pcm_open() local
254 snd_soc_platform_get_drvdata(rtd->platform); sst_byt_pcm_open()
258 dev_dbg(rtd->dev, "PCM: open\n"); sst_byt_pcm_open()
269 dev_err(rtd->dev, "failed to create stream\n"); sst_byt_pcm_open()
280 struct snd_soc_pcm_runtime *rtd = substream->private_data; sst_byt_pcm_close() local
282 snd_soc_platform_get_drvdata(rtd->platform); sst_byt_pcm_close()
287 dev_dbg(rtd->dev, "PCM: close\n"); sst_byt_pcm_close()
293 dev_dbg(rtd->dev, "Free stream fail\n"); sst_byt_pcm_close()
306 struct snd_soc_pcm_runtime *rtd = substream->private_data; sst_byt_pcm_mmap() local
308 dev_dbg(rtd->dev, "PCM: mmap\n"); sst_byt_pcm_mmap()
323 static int sst_byt_pcm_new(struct snd_soc_pcm_runtime *rtd) sst_byt_pcm_new() argument
325 struct snd_pcm *pcm = rtd->pcm; sst_byt_pcm_new()
327 struct snd_soc_platform *platform = rtd->platform; sst_byt_pcm_new()
339 dev_err(rtd->dev, "dma buffer allocation failed %d\n", sst_byt_pcm_new()
/linux-4.1.27/sound/arm/
H A Dpxa2xx-pcm-lib.c43 struct pxa2xx_runtime_data *rtd = runtime->private_data; __pxa2xx_pcm_hw_params() local
51 switch (rtd->params->addr_width) { __pxa2xx_pcm_hw_params()
66 switch (rtd->params->maxburst) { __pxa2xx_pcm_hw_params()
81 dma_desc = rtd->dma_desc_array; __pxa2xx_pcm_hw_params()
82 next_desc_phys = rtd->dma_desc_array_phys; __pxa2xx_pcm_hw_params()
89 dma_desc->dtadr = rtd->params->addr; __pxa2xx_pcm_hw_params()
91 dma_desc->dsadr = rtd->params->addr; __pxa2xx_pcm_hw_params()
100 dma_desc[-1].ddadr = rtd->dma_desc_array_phys; __pxa2xx_pcm_hw_params()
108 struct pxa2xx_runtime_data *rtd = substream->runtime->private_data; __pxa2xx_pcm_hw_free() local
110 if (rtd && rtd->params && rtd->params->filter_data) { __pxa2xx_pcm_hw_free()
111 unsigned long req = *(unsigned long *) rtd->params->filter_data; __pxa2xx_pcm_hw_free()
211 struct pxa2xx_runtime_data *rtd; __pxa2xx_pcm_open() local
237 rtd = kzalloc(sizeof(*rtd), GFP_KERNEL); __pxa2xx_pcm_open()
238 if (!rtd) __pxa2xx_pcm_open()
240 rtd->dma_desc_array = __pxa2xx_pcm_open()
242 &rtd->dma_desc_array_phys, GFP_KERNEL); __pxa2xx_pcm_open()
243 if (!rtd->dma_desc_array) __pxa2xx_pcm_open()
246 rtd->dma_ch = -1; __pxa2xx_pcm_open()
247 runtime->private_data = rtd; __pxa2xx_pcm_open()
251 kfree(rtd); __pxa2xx_pcm_open()
260 struct pxa2xx_runtime_data *rtd = runtime->private_data; __pxa2xx_pcm_close() local
263 rtd->dma_desc_array, rtd->dma_desc_array_phys); __pxa2xx_pcm_close()
264 kfree(rtd); __pxa2xx_pcm_close()
H A Dpxa2xx-pcm.c38 struct pxa2xx_runtime_data *rtd; pxa2xx_pcm_open() local
45 rtd = runtime->private_data; pxa2xx_pcm_open()
47 rtd->params = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? pxa2xx_pcm_open()
53 rtd->dma_ch = ret; pxa2xx_pcm_open()
59 pxa_free_dma(rtd->dma_ch); pxa2xx_pcm_open()
69 struct pxa2xx_runtime_data *rtd = substream->runtime->private_data; pxa2xx_pcm_close() local
71 pxa_free_dma(rtd->dma_ch); pxa2xx_pcm_close()
/linux-4.1.27/sound/soc/blackfin/
H A Dbf5xx-i2s-pcm.c66 struct snd_soc_pcm_runtime *rtd = substream->private_data; bf5xx_pcm_hw_params() local
70 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); bf5xx_pcm_hw_params()
87 struct snd_soc_pcm_runtime *rtd = substream->private_data; bf5xx_pcm_prepare() local
93 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); bf5xx_pcm_prepare()
143 struct snd_soc_pcm_runtime *rtd = substream->private_data; bf5xx_pcm_pointer() local
150 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); bf5xx_pcm_pointer()
176 struct snd_soc_pcm_runtime *rtd = substream->private_data; bf5xx_pcm_open() local
177 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; bf5xx_pcm_open()
184 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); bf5xx_pcm_open()
231 struct snd_soc_pcm_runtime *rtd = substream->private_data; bf5xx_pcm_copy() local
238 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); bf5xx_pcm_copy()
288 struct snd_soc_pcm_runtime *rtd = substream->private_data; bf5xx_pcm_silence() local
295 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); bf5xx_pcm_silence()
323 static int bf5xx_pcm_i2s_new(struct snd_soc_pcm_runtime *rtd) bf5xx_pcm_i2s_new() argument
325 struct snd_card *card = rtd->card->snd_card; bf5xx_pcm_i2s_new()
334 return snd_pcm_lib_preallocate_pages_for_all(rtd->pcm, bf5xx_pcm_i2s_new()
H A Dbfin-eval-adav80x.c36 struct snd_soc_pcm_runtime *rtd = substream->private_data; bfin_eval_adav80x_hw_params() local
37 struct snd_soc_dai *codec_dai = rtd->codec_dai; bfin_eval_adav80x_hw_params()
51 static int bfin_eval_adav80x_codec_init(struct snd_soc_pcm_runtime *rtd) bfin_eval_adav80x_codec_init() argument
53 struct snd_soc_dai *codec_dai = rtd->codec_dai; bfin_eval_adav80x_codec_init()
H A Dbfin-eval-adau1373.c69 struct snd_soc_pcm_runtime *rtd = substream->private_data; bfin_eval_adau1373_hw_params() local
70 struct snd_soc_dai *codec_dai = rtd->codec_dai; bfin_eval_adau1373_hw_params()
106 static int bfin_eval_adau1373_codec_init(struct snd_soc_pcm_runtime *rtd) bfin_eval_adau1373_codec_init() argument
108 struct snd_soc_dai *codec_dai = rtd->codec_dai; bfin_eval_adau1373_codec_init()
H A Dbf5xx-ac97-pcm.c244 struct snd_soc_pcm_runtime *rtd = substream->private_data; bf5xx_pcm_open() local
245 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; bf5xx_pcm_open()
318 struct snd_soc_pcm_runtime *rtd = pcm->private_data; bf5xx_pcm_preallocate_dma_buffer() local
319 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; bf5xx_pcm_preallocate_dma_buffer()
384 struct snd_soc_pcm_runtime *rtd = pcm->private_data; bf5xx_pcm_free_dma_buffers() local
385 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; bf5xx_pcm_free_dma_buffers()
417 static int bf5xx_pcm_ac97_new(struct snd_soc_pcm_runtime *rtd) bf5xx_pcm_ac97_new() argument
419 struct snd_card *card = rtd->card->snd_card; bf5xx_pcm_ac97_new()
420 struct snd_pcm *pcm = rtd->pcm; bf5xx_pcm_ac97_new()
H A Dbf5xx-ad193x.c44 static int bf5xx_ad193x_link_init(struct snd_soc_pcm_runtime *rtd) bf5xx_ad193x_link_init() argument
46 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; bf5xx_ad193x_link_init()
47 struct snd_soc_dai *codec_dai = rtd->codec_dai; bf5xx_ad193x_link_init()
H A Dbf5xx-ad1836.c35 static int bf5xx_ad1836_init(struct snd_soc_pcm_runtime *rtd) bf5xx_ad1836_init() argument
37 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; bf5xx_ad1836_init()
H A Dbfin-eval-adau1701.c39 struct snd_soc_pcm_runtime *rtd = substream->private_data; bfin_eval_adau1701_hw_params() local
40 struct snd_soc_dai *codec_dai = rtd->codec_dai; bfin_eval_adau1701_hw_params()
H A Dbfin-eval-adau1x61.c54 struct snd_soc_pcm_runtime *rtd = substream->private_data; bfin_eval_adau1x61_hw_params() local
55 struct snd_soc_dai *codec_dai = rtd->codec_dai; bfin_eval_adau1x61_hw_params()
H A Dbfin-eval-adau1x81.c42 struct snd_soc_pcm_runtime *rtd = substream->private_data; bfin_eval_adau1x81_hw_params() local
43 struct snd_soc_dai *codec_dai = rtd->codec_dai; bfin_eval_adau1x81_hw_params()
H A Dbf5xx-ssm2602.c46 static int bf5xx_ssm2602_dai_init(struct snd_soc_pcm_runtime *rtd) bf5xx_ssm2602_dai_init() argument
55 return snd_soc_dai_set_sysclk(rtd->codec_dai, SSM2602_SYSCLK, 12000000, bf5xx_ssm2602_dai_init()
/linux-4.1.27/sound/soc/sh/
H A Ddma-sh7760.c122 struct snd_soc_pcm_runtime *rtd = substream->private_data; camelot_pcm_open() local
123 struct camelot_pcm *cam = &cam_pcm_data[rtd->cpu_dai->id]; camelot_pcm_open()
136 rtd->cpu_dai->id); camelot_pcm_open()
145 rtd->cpu_dai->id); camelot_pcm_open()
155 struct snd_soc_pcm_runtime *rtd = substream->private_data; camelot_pcm_close() local
156 struct camelot_pcm *cam = &cam_pcm_data[rtd->cpu_dai->id]; camelot_pcm_close()
176 struct snd_soc_pcm_runtime *rtd = substream->private_data; camelot_hw_params() local
177 struct camelot_pcm *cam = &cam_pcm_data[rtd->cpu_dai->id]; camelot_hw_params()
204 struct snd_soc_pcm_runtime *rtd = substream->private_data; camelot_prepare() local
205 struct camelot_pcm *cam = &cam_pcm_data[rtd->cpu_dai->id]; camelot_prepare()
251 struct snd_soc_pcm_runtime *rtd = substream->private_data; camelot_trigger() local
252 struct camelot_pcm *cam = &cam_pcm_data[rtd->cpu_dai->id]; camelot_trigger()
278 struct snd_soc_pcm_runtime *rtd = substream->private_data; camelot_pos() local
279 struct camelot_pcm *cam = &cam_pcm_data[rtd->cpu_dai->id]; camelot_pos()
308 static int camelot_pcm_new(struct snd_soc_pcm_runtime *rtd) camelot_pcm_new() argument
310 struct snd_pcm *pcm = rtd->pcm; camelot_pcm_new()
H A Dmigor.c52 struct snd_soc_pcm_runtime *rtd = substream->private_data; migor_hw_params() local
53 struct snd_soc_dai *codec_dai = rtd->codec_dai; migor_hw_params()
74 ret = snd_soc_dai_set_sysclk(rtd->cpu_dai, SIU_CLKB_EXT, migor_hw_params()
85 struct snd_soc_pcm_runtime *rtd = substream->private_data; migor_hw_free() local
86 struct snd_soc_dai *codec_dai = rtd->codec_dai; migor_hw_free()
H A Dsiu_pcm.c342 struct snd_soc_pcm_runtime *rtd = ss->private_data; siu_pcm_open() local
343 struct siu_platform *pdata = rtd->platform->dev->platform_data; siu_pcm_open()
526 static int siu_pcm_new(struct snd_soc_pcm_runtime *rtd) siu_pcm_new() argument
529 struct snd_card *card = rtd->card->snd_card; siu_pcm_new()
530 struct snd_pcm *pcm = rtd->pcm; siu_pcm_new()
H A Dfsi.c408 struct snd_soc_pcm_runtime *rtd = substream->private_data; fsi_get_dai() local
410 return rtd->cpu_dai; fsi_get_dai()
1771 static int fsi_pcm_new(struct snd_soc_pcm_runtime *rtd) fsi_pcm_new() argument
1774 rtd->pcm, fsi_pcm_new()
1776 rtd->card->snd_card->dev, fsi_pcm_new()
/linux-4.1.27/sound/soc/omap/
H A Domap-pcm.c79 struct snd_soc_pcm_runtime *rtd = substream->private_data; omap_pcm_hw_params() local
85 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); omap_pcm_hw_params()
105 snd_soc_dai_get_dma_data(rtd->cpu_dai, substream), omap_pcm_hw_params()
131 struct snd_soc_pcm_runtime *rtd = substream->private_data; omap_pcm_open() local
137 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); omap_pcm_open()
140 if (rtd->cpu_dai->dev->of_node) { omap_pcm_open()
143 chan = dma_request_slave_channel(rtd->cpu_dai->dev, omap_pcm_open()
216 static int omap_pcm_new(struct snd_soc_pcm_runtime *rtd) omap_pcm_new() argument
218 struct snd_card *card = rtd->card->snd_card; omap_pcm_new()
219 struct snd_pcm *pcm = rtd->pcm; omap_pcm_new()
H A Domap-abe-twl6040.c48 struct snd_soc_pcm_runtime *rtd = substream->private_data; omap_abe_hw_params() local
49 struct snd_soc_dai *codec_dai = rtd->codec_dai; omap_abe_hw_params()
50 struct snd_soc_card *card = rtd->card; omap_abe_hw_params()
55 clk_id = twl6040_get_clk_id(rtd->codec); omap_abe_hw_params()
80 struct snd_soc_pcm_runtime *rtd = substream->private_data; omap_abe_dmic_hw_params() local
81 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; omap_abe_dmic_hw_params()
167 static int omap_abe_twl6040_init(struct snd_soc_pcm_runtime *rtd) omap_abe_twl6040_init() argument
169 struct snd_soc_codec *codec = rtd->codec; omap_abe_twl6040_init()
170 struct snd_soc_card *card = rtd->card; omap_abe_twl6040_init()
180 omap_mcpdm_configure_dn_offsets(rtd, TWL6040_HSF_TRIM_LEFT(hs_trim), omap_abe_twl6040_init()
185 ret = snd_soc_card_jack_new(rtd->card, "Headset Jack", omap_abe_twl6040_init()
203 static int omap_abe_dmic_init(struct snd_soc_pcm_runtime *rtd) omap_abe_dmic_init() argument
205 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; omap_abe_dmic_init()
H A Domap3pandora.c48 struct snd_soc_pcm_runtime *rtd = substream->private_data; omap3pandora_hw_params() local
49 struct snd_soc_dai *codec_dai = rtd->codec_dai; omap3pandora_hw_params()
50 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; omap3pandora_hw_params()
155 static int omap3pandora_out_init(struct snd_soc_pcm_runtime *rtd) omap3pandora_out_init() argument
157 struct snd_soc_codec *codec = rtd->codec; omap3pandora_out_init()
175 static int omap3pandora_in_init(struct snd_soc_pcm_runtime *rtd) omap3pandora_in_init() argument
177 struct snd_soc_codec *codec = rtd->codec; omap3pandora_in_init()
H A Drx51.c107 struct snd_soc_pcm_runtime *rtd = substream->private_data; rx51_startup() local
108 struct snd_soc_card *card = rtd->card; rx51_startup()
120 struct snd_soc_pcm_runtime *rtd = substream->private_data; rx51_hw_params() local
121 struct snd_soc_dai *codec_dai = rtd->codec_dai; rx51_hw_params()
286 static int rx51_aic34_init(struct snd_soc_pcm_runtime *rtd) rx51_aic34_init() argument
288 struct snd_soc_codec *codec = rtd->codec; rx51_aic34_init()
289 struct snd_soc_card *card = rtd->card; rx51_aic34_init()
307 err = omap_mcbsp_st_add_controls(rtd, 2); rx51_aic34_init()
314 err = snd_soc_card_jack_new(rtd->card, "AV Jack", rx51_aic34_init()
H A Domap-twl4030.c55 struct snd_soc_pcm_runtime *rtd = substream->private_data; omap_twl4030_hw_params() local
73 return snd_soc_runtime_set_dai_fmt(rtd, fmt); omap_twl4030_hw_params()
160 static int omap_twl4030_init(struct snd_soc_pcm_runtime *rtd) omap_twl4030_init() argument
162 struct snd_soc_codec *codec = rtd->codec; omap_twl4030_init()
163 struct snd_soc_card *card = rtd->card; omap_twl4030_init()
173 ret = snd_soc_card_jack_new(rtd->card, "Headset Jack", omap_twl4030_init()
H A Dam3517evm.c39 struct snd_soc_pcm_runtime *rtd = substream->private_data; am3517evm_hw_params() local
40 struct snd_soc_dai *codec_dai = rtd->codec_dai; am3517evm_hw_params()
H A Dn810.c100 struct snd_soc_pcm_runtime *rtd = substream->private_data; n810_startup() local
105 n810_ext_control(&rtd->card->dapm); n810_startup()
117 struct snd_soc_pcm_runtime *rtd = substream->private_data; n810_hw_params() local
118 struct snd_soc_dai *codec_dai = rtd->codec_dai; n810_hw_params()
H A Domap-mcbsp.h42 int omap_mcbsp_st_add_controls(struct snd_soc_pcm_runtime *rtd, int port_id);
H A Dosk5912.c55 struct snd_soc_pcm_runtime *rtd = substream->private_data; osk_hw_params() local
56 struct snd_soc_dai *codec_dai = rtd->codec_dai; osk_hw_params()
H A Domap-mcpdm.h104 void omap_mcpdm_configure_dn_offsets(struct snd_soc_pcm_runtime *rtd,
H A Domap-mcbsp.c69 struct snd_soc_pcm_runtime *rtd = substream->private_data; omap_mcbsp_set_threshold() local
70 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; omap_mcbsp_set_threshold()
198 struct snd_soc_pcm_runtime *rtd = substream->private_data; omap_mcbsp_dai_delay() local
199 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; omap_mcbsp_dai_delay()
707 int omap_mcbsp_st_add_controls(struct snd_soc_pcm_runtime *rtd, int port_id) omap_mcbsp_st_add_controls() argument
709 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; omap_mcbsp_st_add_controls()
H A Dams-delta.c461 static int ams_delta_cx20442_init(struct snd_soc_pcm_runtime *rtd) ams_delta_cx20442_init() argument
463 struct snd_soc_dai *codec_dai = rtd->codec_dai; ams_delta_cx20442_init()
464 struct snd_soc_card *card = rtd->card; ams_delta_cx20442_init()
470 cx20442_codec = rtd->codec; ams_delta_cx20442_init()
H A Domap-hdmi-audio.c52 struct snd_soc_pcm_runtime *rtd = ss->private_data; card_drvdata_substream() local
54 return snd_soc_card_get_drvdata(rtd->card); card_drvdata_substream()
H A Domap-mcpdm.c453 void omap_mcpdm_configure_dn_offsets(struct snd_soc_pcm_runtime *rtd, omap_mcpdm_configure_dn_offsets() argument
456 struct omap_mcpdm *mcpdm = snd_soc_dai_get_drvdata(rtd->cpu_dai); omap_mcpdm_configure_dn_offsets()
/linux-4.1.27/sound/soc/sh/rcar/
H A Drsrc-card.c76 struct snd_soc_pcm_runtime *rtd = substream->private_data; rsrc_card_startup() local
77 struct rsrc_card_priv *priv = snd_soc_card_get_drvdata(rtd->card); rsrc_card_startup()
79 &priv->dai_props[rtd - rtd->card->rtd]; rsrc_card_startup()
95 struct snd_soc_pcm_runtime *rtd = substream->private_data; rsrc_card_shutdown() local
96 struct rsrc_card_priv *priv = snd_soc_card_get_drvdata(rtd->card); rsrc_card_shutdown()
98 &priv->dai_props[rtd - rtd->card->rtd]; rsrc_card_shutdown()
137 static int rsrc_card_dai_init(struct snd_soc_pcm_runtime *rtd) rsrc_card_dai_init() argument
139 struct rsrc_card_priv *priv = snd_soc_card_get_drvdata(rtd->card); rsrc_card_dai_init()
140 struct snd_soc_dai *codec = rtd->codec_dai; rsrc_card_dai_init()
141 struct snd_soc_dai *cpu = rtd->cpu_dai; rsrc_card_dai_init()
145 num = rtd - rtd->card->rtd; rsrc_card_dai_init()
158 static int rsrc_card_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, rsrc_card_be_hw_params_fixup() argument
161 struct rsrc_card_priv *priv = snd_soc_card_get_drvdata(rtd->card); rsrc_card_be_hw_params_fixup()
H A Dcore.c336 struct snd_soc_pcm_runtime *rtd = substream->private_data; rsnd_substream_to_dai() local
338 return rtd->cpu_dai; rsnd_substream_to_dai()
831 struct snd_soc_pcm_runtime *rtd, __rsnd_kctrl_new()
836 struct snd_card *card = rtd->card->snd_card; __rsnd_kctrl_new()
871 struct snd_soc_pcm_runtime *rtd, rsnd_kctrl_new_m()
880 return __rsnd_kctrl_new(mod, rtd, name, &_cfg->cfg, update); rsnd_kctrl_new_m()
884 struct snd_soc_pcm_runtime *rtd, rsnd_kctrl_new_s()
893 return __rsnd_kctrl_new(mod, rtd, name, &_cfg->cfg, update); rsnd_kctrl_new_s()
897 struct snd_soc_pcm_runtime *rtd, rsnd_kctrl_new_e()
908 return __rsnd_kctrl_new(mod, rtd, name, &_cfg->cfg, update); rsnd_kctrl_new_e()
918 static int rsnd_pcm_new(struct snd_soc_pcm_runtime *rtd) rsnd_pcm_new() argument
920 struct snd_soc_dai *dai = rtd->cpu_dai; rsnd_pcm_new()
924 ret = rsnd_dai_call(pcm_new, &rdai->playback, rtd); rsnd_pcm_new()
928 ret = rsnd_dai_call(pcm_new, &rdai->capture, rtd); rsnd_pcm_new()
933 rtd->pcm, rsnd_pcm_new()
935 rtd->card->snd_card->dev, rsnd_pcm_new()
830 __rsnd_kctrl_new(struct rsnd_mod *mod, struct snd_soc_pcm_runtime *rtd, const unsigned char *name, struct rsnd_kctrl_cfg *cfg, void (*update)(struct rsnd_mod *mod)) __rsnd_kctrl_new() argument
870 rsnd_kctrl_new_m(struct rsnd_mod *mod, struct snd_soc_pcm_runtime *rtd, const unsigned char *name, void (*update)(struct rsnd_mod *mod), struct rsnd_kctrl_cfg_m *_cfg, u32 max) rsnd_kctrl_new_m() argument
883 rsnd_kctrl_new_s(struct rsnd_mod *mod, struct snd_soc_pcm_runtime *rtd, const unsigned char *name, void (*update)(struct rsnd_mod *mod), struct rsnd_kctrl_cfg_s *_cfg, u32 max) rsnd_kctrl_new_s() argument
896 rsnd_kctrl_new_e(struct rsnd_mod *mod, struct snd_soc_pcm_runtime *rtd, const unsigned char *name, struct rsnd_kctrl_cfg_s *_cfg, void (*update)(struct rsnd_mod *mod), const char * const *texts, u32 max) rsnd_kctrl_new_e() argument
H A Ddvc.c208 struct snd_soc_pcm_runtime *rtd) rsnd_dvc_pcm_new()
216 ret = rsnd_kctrl_new_m(mod, rtd, rsnd_dvc_pcm_new()
225 ret = rsnd_kctrl_new_m(mod, rtd, rsnd_dvc_pcm_new()
234 ret = rsnd_kctrl_new_s(mod, rtd, rsnd_dvc_pcm_new()
242 ret = rsnd_kctrl_new_e(mod, rtd, rsnd_dvc_pcm_new()
251 ret = rsnd_kctrl_new_e(mod, rtd, rsnd_dvc_pcm_new()
207 rsnd_dvc_pcm_new(struct rsnd_mod *mod, struct snd_soc_pcm_runtime *rtd) rsnd_dvc_pcm_new() argument
H A Drsnd.h241 struct snd_soc_pcm_runtime *rtd);
483 struct snd_soc_pcm_runtime *rtd,
489 struct snd_soc_pcm_runtime *rtd,
495 struct snd_soc_pcm_runtime *rtd,
H A Dsrc.c876 struct snd_soc_pcm_runtime *rtd) rsnd_src_pcm_new()
910 ret = rsnd_kctrl_new_s(mod, rtd, rsnd_src_pcm_new()
919 ret = rsnd_kctrl_new_s(mod, rtd, rsnd_src_pcm_new()
875 rsnd_src_pcm_new(struct rsnd_mod *mod, struct snd_soc_pcm_runtime *rtd) rsnd_src_pcm_new() argument
/linux-4.1.27/sound/soc/pxa/
H A Draumfeld.c69 struct snd_soc_pcm_runtime *rtd = substream->private_data; raumfeld_cs4270_startup() local
70 struct snd_soc_dai *codec_dai = rtd->codec_dai; raumfeld_cs4270_startup()
78 struct snd_soc_pcm_runtime *rtd = substream->private_data; raumfeld_cs4270_shutdown() local
79 struct snd_soc_dai *codec_dai = rtd->codec_dai; raumfeld_cs4270_shutdown()
88 struct snd_soc_pcm_runtime *rtd = substream->private_data; raumfeld_cs4270_hw_params() local
89 struct snd_soc_dai *codec_dai = rtd->codec_dai; raumfeld_cs4270_hw_params()
90 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; raumfeld_cs4270_hw_params()
158 struct snd_soc_pcm_runtime *rtd = substream->private_data; raumfeld_ak4104_hw_params() local
159 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; raumfeld_ak4104_hw_params()
H A Dimote2.c13 struct snd_soc_pcm_runtime *rtd = substream->private_data; imote2_asoc_hw_params() local
14 struct snd_soc_dai *codec_dai = rtd->codec_dai; imote2_asoc_hw_params()
15 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; imote2_asoc_hw_params()
H A Dbrownstone.c48 static int brownstone_wm8994_init(struct snd_soc_pcm_runtime *rtd) brownstone_wm8994_init() argument
50 struct snd_soc_codec *codec = rtd->codec; brownstone_wm8994_init()
74 struct snd_soc_pcm_runtime *rtd = substream->private_data; brownstone_wm8994_hw_params() local
75 struct snd_soc_dai *codec_dai = rtd->codec_dai; brownstone_wm8994_hw_params()
76 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; brownstone_wm8994_hw_params()
H A Dpxa2xx-pcm.c32 struct snd_soc_pcm_runtime *rtd = substream->private_data; pxa2xx_pcm_hw_params() local
36 dma = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); pxa2xx_pcm_hw_params()
92 static int pxa2xx_soc_pcm_new(struct snd_soc_pcm_runtime *rtd) pxa2xx_soc_pcm_new() argument
94 struct snd_card *card = rtd->card->snd_card; pxa2xx_soc_pcm_new()
95 struct snd_pcm *pcm = rtd->pcm; pxa2xx_soc_pcm_new()
H A Dz2.c39 struct snd_soc_pcm_runtime *rtd = substream->private_data; z2_hw_params() local
40 struct snd_soc_dai *codec_dai = rtd->codec_dai; z2_hw_params()
41 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; z2_hw_params()
133 static int z2_wm8750_init(struct snd_soc_pcm_runtime *rtd) z2_wm8750_init() argument
135 struct snd_soc_codec *codec = rtd->codec; z2_wm8750_init()
146 ret = snd_soc_card_jack_new(rtd->card, "Headset Jack", SND_JACK_HEADSET, z2_wm8750_init()
H A Dhx4700.c63 struct snd_soc_pcm_runtime *rtd = substream->private_data; hx4700_hw_params() local
64 struct snd_soc_dai *codec_dai = rtd->codec_dai; hx4700_hw_params()
65 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; hx4700_hw_params()
127 static int hx4700_ak4641_init(struct snd_soc_pcm_runtime *rtd) hx4700_ak4641_init() argument
132 err = snd_soc_card_jack_new(rtd->card, "Headphone Jack", hx4700_ak4641_init()
H A Dmmp-pcm.c102 struct snd_soc_pcm_runtime *rtd = substream->private_data; mmp_pcm_open() local
103 struct platform_device *pdev = to_platform_device(rtd->platform->dev); mmp_pcm_open()
104 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; mmp_pcm_open()
194 static int mmp_pcm_new(struct snd_soc_pcm_runtime *rtd) mmp_pcm_new() argument
197 struct snd_pcm *pcm = rtd->pcm; mmp_pcm_new()
H A Dpoodle.c76 struct snd_soc_pcm_runtime *rtd = substream->private_data; poodle_startup() local
79 poodle_ext_control(&rtd->card->dapm); poodle_startup()
97 struct snd_soc_pcm_runtime *rtd = substream->private_data; poodle_hw_params() local
98 struct snd_soc_dai *codec_dai = rtd->codec_dai; poodle_hw_params()
99 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; poodle_hw_params()
226 static int poodle_wm8731_init(struct snd_soc_pcm_runtime *rtd) poodle_wm8731_init() argument
228 struct snd_soc_codec *codec = rtd->codec; poodle_wm8731_init()
H A Dttc-dkb.c76 static int ttc_pm860x_init(struct snd_soc_pcm_runtime *rtd) ttc_pm860x_init() argument
78 struct snd_soc_codec *codec = rtd->codec; ttc_pm860x_init()
81 snd_soc_card_jack_new(rtd->card, "Headphone Jack", SND_JACK_HEADPHONE | ttc_pm860x_init()
84 snd_soc_card_jack_new(rtd->card, "Microphone Jack", SND_JACK_MICROPHONE, ttc_pm860x_init()
H A Dmagician.c76 struct snd_soc_pcm_runtime *rtd = substream->private_data; magician_startup() local
79 magician_ext_control(&rtd->card->dapm); magician_startup()
90 struct snd_soc_pcm_runtime *rtd = substream->private_data; magician_playback_hw_params() local
91 struct snd_soc_dai *codec_dai = rtd->codec_dai; magician_playback_hw_params()
92 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; magician_playback_hw_params()
230 struct snd_soc_pcm_runtime *rtd = substream->private_data; magician_capture_hw_params() local
231 struct snd_soc_dai *codec_dai = rtd->codec_dai; magician_capture_hw_params()
232 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; magician_capture_hw_params()
H A Dcorgi.c103 struct snd_soc_pcm_runtime *rtd = substream->private_data; corgi_startup() local
106 corgi_ext_control(&rtd->card->dapm); corgi_startup()
122 struct snd_soc_pcm_runtime *rtd = substream->private_data; corgi_hw_params() local
123 struct snd_soc_dai *codec_dai = rtd->codec_dai; corgi_hw_params()
124 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; corgi_hw_params()
H A Dspitz.c113 struct snd_soc_pcm_runtime *rtd = substream->private_data; spitz_startup() local
116 spitz_ext_control(&rtd->card->dapm); spitz_startup()
124 struct snd_soc_pcm_runtime *rtd = substream->private_data; spitz_hw_params() local
125 struct snd_soc_dai *codec_dai = rtd->codec_dai; spitz_hw_params()
126 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; spitz_hw_params()
H A Dzylonite.c72 static int zylonite_wm9713_init(struct snd_soc_pcm_runtime *rtd) zylonite_wm9713_init() argument
75 snd_soc_dai_set_pll(rtd->codec_dai, 0, 0, zylonite_wm9713_init()
84 struct snd_soc_pcm_runtime *rtd = substream->private_data; zylonite_voice_hw_params() local
85 struct snd_soc_dai *codec_dai = rtd->codec_dai; zylonite_voice_hw_params()
86 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; zylonite_voice_hw_params()
H A Dmioa701_wm9713.c84 struct snd_soc_codec *codec = widget->dapm->card->rtd[0].codec; rear_amp_event()
127 static int mioa701_wm9713_init(struct snd_soc_pcm_runtime *rtd) mioa701_wm9713_init() argument
129 struct snd_soc_codec *codec = rtd->codec; mioa701_wm9713_init()
H A Dpalm27x.c76 static int palm27x_ac97_init(struct snd_soc_pcm_runtime *rtd) palm27x_ac97_init() argument
81 err = snd_soc_card_jack_new(rtd->card, "Headphone Jack", palm27x_ac97_init()
H A Dtosa.c83 struct snd_soc_pcm_runtime *rtd = substream->private_data; tosa_startup() local
86 tosa_ext_control(&rtd->card->dapm); tosa_startup()
188 static int tosa_ac97_init(struct snd_soc_pcm_runtime *rtd) tosa_ac97_init() argument
190 struct snd_soc_codec *codec = rtd->codec; tosa_ac97_init()
H A Dpxa2xx-i2s.c104 struct snd_soc_pcm_runtime *rtd = substream->private_data; pxa2xx_i2s_startup() local
105 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; pxa2xx_i2s_startup()
H A Dmmp-sspa.c268 struct snd_soc_pcm_runtime *rtd = substream->private_data; mmp_sspa_hw_params() local
269 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; mmp_sspa_hw_params()
/linux-4.1.27/sound/soc/intel/haswell/
H A Dsst-haswell-pcm.c440 struct hsw_priv_data *pdata, struct snd_soc_pcm_runtime *rtd, create_adsp_page_table()
448 dev_dbg(rtd->dev, "generating page table for %p size 0x%zu pages %d\n", create_adsp_page_table()
456 dev_dbg(rtd->dev, "pfn i %i idx %d pfn %x\n", i, idx, pfn); create_adsp_page_table()
473 struct snd_soc_pcm_runtime *rtd = substream->private_data; hsw_pcm_hw_params() local
476 snd_soc_platform_get_drvdata(rtd->platform); hsw_pcm_hw_params()
488 dai = mod_map[rtd->cpu_dai->id].dai_id; hsw_pcm_hw_params()
495 dev_dbg(rtd->dev, "error: reset stream failed %d\n", hsw_pcm_hw_params()
500 dev_dbg(rtd->dev, "error: free stream failed %d\n", hsw_pcm_hw_params()
506 pcm_data->stream = sst_hsw_stream_new(hsw, rtd->cpu_dai->id, hsw_pcm_hw_params()
509 dev_err(rtd->dev, "error: failed to create stream\n"); hsw_pcm_hw_params()
521 switch (rtd->cpu_dai->id) { hsw_pcm_hw_params()
544 dev_err(rtd->dev, "error: invalid DAI ID %d\n", hsw_pcm_hw_params()
545 rtd->cpu_dai->id); hsw_pcm_hw_params()
552 dev_err(rtd->dev, "error: failed to set format %d\n", ret); hsw_pcm_hw_params()
559 dev_err(rtd->dev, "error: could not set rate %d\n", rate); hsw_pcm_hw_params()
581 dev_err(rtd->dev, "error: invalid format %d\n", hsw_pcm_hw_params()
588 dev_err(rtd->dev, "error: could not set bits %d\n", bits); hsw_pcm_hw_params()
599 dev_err(rtd->dev, "error: could not set channels %d\n", hsw_pcm_hw_params()
606 dev_err(rtd->dev, "error: could not allocate %d bytes for PCM %d\n", hsw_pcm_hw_params()
613 ret = create_adsp_page_table(substream, pdata, rtd, runtime->dma_area, hsw_pcm_hw_params()
614 runtime->dma_bytes, rtd->cpu_dai->id); hsw_pcm_hw_params()
627 pdata->dmab[rtd->cpu_dai->id][substream->stream].addr, hsw_pcm_hw_params()
631 dev_err(rtd->dev, "error: failed to set DMA buffer %d\n", ret); hsw_pcm_hw_params()
639 dev_err(rtd->dev, "error: failed to get module config\n"); hsw_pcm_hw_params()
648 dev_err(rtd->dev, "error: failed to commit stream %d\n", ret); hsw_pcm_hw_params()
663 dev_err(rtd->dev, "error: failed to pause %d\n", ret); hsw_pcm_hw_params()
676 struct snd_soc_pcm_runtime *rtd = substream->private_data; hsw_pcm_trigger() local
678 snd_soc_platform_get_drvdata(rtd->platform); hsw_pcm_trigger()
686 dai = mod_map[rtd->cpu_dai->id].dai_id; hsw_pcm_trigger()
720 struct snd_soc_pcm_runtime *rtd = substream->private_data; hsw_notify_pointer() local
722 snd_soc_platform_get_drvdata(rtd->platform); hsw_notify_pointer()
736 dev_vdbg(rtd->dev, "PCM: App pointer %d bytes\n", pos); hsw_notify_pointer()
757 dev_err(rtd->dev, "PCM: position is wrong\n"); hsw_notify_pointer()
767 dev_err(rtd->dev, "PCM: dma_bytes is wrong\n"); hsw_notify_pointer()
773 dev_err(rtd->dev, "PCM: position is wrong\n"); hsw_notify_pointer()
784 struct snd_soc_pcm_runtime *rtd = substream->private_data; hsw_pcm_pointer() local
787 snd_soc_platform_get_drvdata(rtd->platform); hsw_pcm_pointer()
795 dai = mod_map[rtd->cpu_dai->id].dai_id; hsw_pcm_pointer()
802 dev_vdbg(rtd->dev, "PCM: DMA pointer %du bytes, pos %llu\n", hsw_pcm_pointer()
809 struct snd_soc_pcm_runtime *rtd = substream->private_data; hsw_pcm_open() local
811 snd_soc_platform_get_drvdata(rtd->platform); hsw_pcm_open()
816 dai = mod_map[rtd->cpu_dai->id].dai_id; hsw_pcm_open()
822 snd_soc_pcm_set_drvdata(rtd, pcm_data); hsw_pcm_open()
827 pcm_data->stream = sst_hsw_stream_new(hsw, rtd->cpu_dai->id, hsw_pcm_open()
830 dev_err(rtd->dev, "error: failed to create stream\n"); hsw_pcm_open()
843 struct snd_soc_pcm_runtime *rtd = substream->private_data; hsw_pcm_close() local
845 snd_soc_platform_get_drvdata(rtd->platform); hsw_pcm_close()
850 dai = mod_map[rtd->cpu_dai->id].dai_id; hsw_pcm_close()
856 dev_dbg(rtd->dev, "error: reset stream failed %d\n", ret); hsw_pcm_close()
862 dev_dbg(rtd->dev, "error: free stream failed %d\n", ret); hsw_pcm_close()
938 static int hsw_pcm_new(struct snd_soc_pcm_runtime *rtd) hsw_pcm_new() argument
940 struct snd_pcm *pcm = rtd->pcm; hsw_pcm_new()
941 struct snd_soc_platform *platform = rtd->platform; hsw_pcm_new()
955 dev_err(rtd->dev, "dma buffer allocation failed %d\n", hsw_pcm_new()
961 priv_data->pcm[rtd->cpu_dai->id][SNDRV_PCM_STREAM_PLAYBACK].hsw_pcm = pcm; hsw_pcm_new()
963 priv_data->pcm[rtd->cpu_dai->id][SNDRV_PCM_STREAM_CAPTURE].hsw_pcm = pcm; hsw_pcm_new()
439 create_adsp_page_table(struct snd_pcm_substream *substream, struct hsw_priv_data *pdata, struct snd_soc_pcm_runtime *rtd, unsigned char *dma_area, size_t size, int pcm) create_adsp_page_table() argument
/linux-4.1.27/sound/soc/ux500/
H A Dux500_pcm.c49 static struct dma_chan *ux500_pcm_request_chan(struct snd_soc_pcm_runtime *rtd, ux500_pcm_request_chan() argument
52 struct snd_soc_dai *dai = rtd->cpu_dai; ux500_pcm_request_chan()
91 struct snd_soc_pcm_runtime *rtd = substream->private_data; ux500_pcm_prepare_slave_config() local
92 struct msp_i2s_platform_data *pdata = rtd->cpu_dai->dev->platform_data; ux500_pcm_prepare_slave_config()
100 snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); ux500_pcm_prepare_slave_config()
104 snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); ux500_pcm_prepare_slave_config()
H A Dmop500_ab8500.c196 struct snd_soc_pcm_runtime *rtd = substream->private_data; mop500_ab8500_startup() local
199 return mop500_ab8500_set_mclk(rtd->card->dev, mop500_ab8500_startup()
200 snd_soc_card_get_drvdata(rtd->card)); mop500_ab8500_startup()
205 struct snd_soc_pcm_runtime *rtd = substream->private_data; mop500_ab8500_shutdown() local
206 struct device *dev = rtd->card->dev; mop500_ab8500_shutdown()
220 struct snd_soc_pcm_runtime *rtd = substream->private_data; mop500_ab8500_hw_params() local
221 struct snd_soc_dai *codec_dai = rtd->codec_dai; mop500_ab8500_hw_params()
222 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; mop500_ab8500_hw_params()
223 struct device *dev = rtd->card->dev; mop500_ab8500_hw_params()
293 ret = snd_soc_runtime_set_dai_fmt(rtd, fmt); mop500_ab8500_hw_params()
344 struct snd_soc_pcm_runtime *rtd = substream->private_data; mop500_ab8500_hw_free() local
345 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; mop500_ab8500_hw_free()
363 int mop500_ab8500_machine_init(struct snd_soc_pcm_runtime *rtd) mop500_ab8500_machine_init() argument
365 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; mop500_ab8500_machine_init()
366 struct device *dev = rtd->card->dev; mop500_ab8500_machine_init()
375 snd_soc_card_set_drvdata(rtd->card, drvdata); mop500_ab8500_machine_init()
402 ret = snd_soc_add_card_controls(rtd->card, mop500_ab8500_ctrls, mop500_ab8500_machine_init()
/linux-4.1.27/sound/soc/intel/boards/
H A Dhaswell.c46 static int haswell_ssp0_fixup(struct snd_soc_pcm_runtime *rtd, haswell_ssp0_fixup() argument
66 struct snd_soc_pcm_runtime *rtd = substream->private_data; haswell_rt5640_hw_params() local
67 struct snd_soc_dai *codec_dai = rtd->codec_dai; haswell_rt5640_hw_params()
74 dev_err(rtd->dev, "can't set codec sysclk configuration\n"); haswell_rt5640_hw_params()
79 snd_soc_update_bits(rtd->codec, 0x83, 0xffff, 0x8000); haswell_rt5640_hw_params()
88 static int haswell_rtd_init(struct snd_soc_pcm_runtime *rtd) haswell_rtd_init() argument
90 struct sst_pdata *pdata = dev_get_platdata(rtd->platform->dev); haswell_rtd_init()
99 dev_err(rtd->dev, "failed to set device config\n"); haswell_rtd_init()
H A Dbroadwell.c79 static int broadwell_rt286_codec_init(struct snd_soc_pcm_runtime *rtd) broadwell_rt286_codec_init() argument
81 struct snd_soc_codec *codec = rtd->codec; broadwell_rt286_codec_init()
83 ret = snd_soc_card_jack_new(rtd->card, "Headset", broadwell_rt286_codec_init()
94 static int broadwell_ssp0_fixup(struct snd_soc_pcm_runtime *rtd, broadwell_ssp0_fixup() argument
114 struct snd_soc_pcm_runtime *rtd = substream->private_data; broadwell_rt286_hw_params() local
115 struct snd_soc_dai *codec_dai = rtd->codec_dai; broadwell_rt286_hw_params()
122 dev_err(rtd->dev, "can't set codec sysclk configuration\n"); broadwell_rt286_hw_params()
133 static int broadwell_rtd_init(struct snd_soc_pcm_runtime *rtd) broadwell_rtd_init() argument
135 struct sst_pdata *pdata = dev_get_platdata(rtd->platform->dev); broadwell_rtd_init()
144 dev_err(rtd->dev, "error: failed to set device config\n"); broadwell_rtd_init()
H A Dcht_bsw_rt5645.c46 struct snd_soc_pcm_runtime *rtd; cht_get_codec_dai() local
48 rtd = card->rtd + i; cht_get_codec_dai()
49 if (!strncmp(rtd->codec_dai->name, CHT_CODEC_DAI, cht_get_codec_dai()
51 return rtd->codec_dai; cht_get_codec_dai()
128 struct snd_soc_pcm_runtime *rtd = substream->private_data; cht_aif1_hw_params() local
129 struct snd_soc_dai *codec_dai = rtd->codec_dai; cht_aif1_hw_params()
136 dev_err(rtd->dev, "can't set codec pll: %d\n", ret); cht_aif1_hw_params()
143 dev_err(rtd->dev, "can't set codec sysclk: %d\n", ret); cht_aif1_hw_params()
193 static int cht_codec_fixup(struct snd_soc_pcm_runtime *rtd, cht_codec_fixup() argument
H A Dcht_bsw_rt5672.c52 struct snd_soc_pcm_runtime *rtd; cht_get_codec_dai() local
54 rtd = card->rtd + i; cht_get_codec_dai()
55 if (!strncmp(rtd->codec_dai->name, CHT_CODEC_DAI, cht_get_codec_dai()
57 return rtd->codec_dai; cht_get_codec_dai()
147 struct snd_soc_pcm_runtime *rtd = substream->private_data; cht_aif1_hw_params() local
148 struct snd_soc_dai *codec_dai = rtd->codec_dai; cht_aif1_hw_params()
155 dev_err(rtd->dev, "can't set codec pll: %d\n", ret); cht_aif1_hw_params()
164 dev_err(rtd->dev, "can't set codec sysclk: %d\n", ret); cht_aif1_hw_params()
208 static int cht_codec_fixup(struct snd_soc_pcm_runtime *rtd, cht_codec_fixup() argument
H A Dbytcr_rt5640.c70 struct snd_soc_pcm_runtime *rtd = substream->private_data; byt_aif1_hw_params() local
71 struct snd_soc_dai *codec_dai = rtd->codec_dai; byt_aif1_hw_params()
80 dev_err(rtd->dev, "can't set codec clock %d\n", ret); byt_aif1_hw_params()
88 dev_err(rtd->dev, "can't set codec pll: %d\n", ret); byt_aif1_hw_params()
103 static int byt_codec_fixup(struct snd_soc_pcm_runtime *rtd, byt_codec_fixup() argument
H A Dbyt-rt5640.c83 struct snd_soc_pcm_runtime *rtd = substream->private_data; byt_rt5640_hw_params() local
84 struct snd_soc_dai *codec_dai = rtd->codec_dai; byt_rt5640_hw_params()
/linux-4.1.27/sound/soc/generic/
H A Dsimple-card.c44 struct snd_soc_pcm_runtime *rtd = substream->private_data; asoc_simple_card_startup() local
45 struct simple_card_data *priv = snd_soc_card_get_drvdata(rtd->card); asoc_simple_card_startup()
47 &priv->dai_props[rtd - rtd->card->rtd]; asoc_simple_card_startup()
63 struct snd_soc_pcm_runtime *rtd = substream->private_data; asoc_simple_card_shutdown() local
64 struct simple_card_data *priv = snd_soc_card_get_drvdata(rtd->card); asoc_simple_card_shutdown()
66 &priv->dai_props[rtd - rtd->card->rtd]; asoc_simple_card_shutdown()
76 struct snd_soc_pcm_runtime *rtd = substream->private_data; asoc_simple_card_hw_params() local
77 struct snd_soc_dai *codec_dai = rtd->codec_dai; asoc_simple_card_hw_params()
78 struct simple_card_data *priv = snd_soc_card_get_drvdata(rtd->card); asoc_simple_card_hw_params()
152 static int asoc_simple_card_dai_init(struct snd_soc_pcm_runtime *rtd) asoc_simple_card_dai_init() argument
154 struct simple_card_data *priv = snd_soc_card_get_drvdata(rtd->card); asoc_simple_card_dai_init()
155 struct snd_soc_dai *codec = rtd->codec_dai; asoc_simple_card_dai_init()
156 struct snd_soc_dai *cpu = rtd->cpu_dai; asoc_simple_card_dai_init()
160 num = rtd - rtd->card->rtd; asoc_simple_card_dai_init()
171 snd_soc_card_jack_new(rtd->card, "Headphones", asoc_simple_card_dai_init()
184 snd_soc_card_jack_new(rtd->card, "Mic Jack", asoc_simple_card_dai_init()
/linux-4.1.27/sound/soc/samsung/
H A Ds3c24xx_simtec.h10 extern void simtec_audio_init(struct snd_soc_pcm_runtime *rtd);
H A Dlowland.c38 static int lowland_wm5100_init(struct snd_soc_pcm_runtime *rtd) lowland_wm5100_init() argument
40 struct snd_soc_codec *codec = rtd->codec; lowland_wm5100_init()
59 ret = snd_soc_card_jack_new(rtd->card, "Headset", SND_JACK_LINEOUT | lowland_wm5100_init()
71 static int lowland_wm9081_init(struct snd_soc_pcm_runtime *rtd) lowland_wm9081_init() argument
73 struct snd_soc_codec *codec = rtd->codec; lowland_wm9081_init()
H A Dneo1973_wm8753.c33 struct snd_soc_pcm_runtime *rtd = substream->private_data; neo1973_hifi_hw_params() local
34 struct snd_soc_dai *codec_dai = rtd->codec_dai; neo1973_hifi_hw_params()
35 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; neo1973_hifi_hw_params()
107 struct snd_soc_pcm_runtime *rtd = substream->private_data; neo1973_hifi_hw_free() local
108 struct snd_soc_dai *codec_dai = rtd->codec_dai; neo1973_hifi_hw_free()
125 struct snd_soc_pcm_runtime *rtd = substream->private_data; neo1973_voice_hw_params() local
126 struct snd_soc_dai *codec_dai = rtd->codec_dai; neo1973_voice_hw_params()
162 struct snd_soc_pcm_runtime *rtd = substream->private_data; neo1973_voice_hw_free() local
163 struct snd_soc_dai *codec_dai = rtd->codec_dai; neo1973_voice_hw_free()
251 static int neo1973_wm8753_init(struct snd_soc_pcm_runtime *rtd) neo1973_wm8753_init() argument
253 struct snd_soc_card *card = rtd->card; neo1973_wm8753_init()
H A Dsmartq_wm8987.c37 struct snd_soc_pcm_runtime *rtd = substream->private_data; smartq_hifi_hw_params() local
38 struct snd_soc_dai *codec_dai = rtd->codec_dai; smartq_hifi_hw_params()
39 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; smartq_hifi_hw_params()
138 static int smartq_wm8987_init(struct snd_soc_pcm_runtime *rtd) smartq_wm8987_init() argument
140 struct snd_soc_codec *codec = rtd->codec; smartq_wm8987_init()
154 err = snd_soc_card_jack_new(rtd->card, "Headphone Jack", smartq_wm8987_init()
H A Darndale_rt5631.c28 struct snd_soc_pcm_runtime *rtd = substream->private_data; arndale_hw_params() local
29 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; arndale_hw_params()
30 struct snd_soc_dai *codec_dai = rtd->codec_dai; arndale_hw_params()
H A Djive_wm8750.c40 struct snd_soc_pcm_runtime *rtd = substream->private_data; jive_hw_params() local
41 struct snd_soc_dai *codec_dai = rtd->codec_dai; jive_hw_params()
42 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; jive_hw_params()
H A Dbells.c61 struct snd_soc_dai *codec_dai = card->rtd[DAI_DSP_CODEC].codec_dai; bells_set_bias_level()
102 struct snd_soc_dai *codec_dai = card->rtd[DAI_DSP_CODEC].codec_dai; bells_set_bias_level_post()
140 struct snd_soc_codec *wm0010 = card->rtd[DAI_AP_DSP].codec; bells_late_probe()
141 struct snd_soc_codec *codec = card->rtd[DAI_DSP_CODEC].codec; bells_late_probe()
142 struct snd_soc_dai *aif1_dai = card->rtd[DAI_DSP_CODEC].codec_dai; bells_late_probe()
184 aif2_dai = card->rtd[DAI_CODEC_CP].cpu_dai; bells_late_probe()
195 aif3_dai = card->rtd[DAI_CODEC_SUB].cpu_dai; bells_late_probe()
196 wm9081_dai = card->rtd[DAI_CODEC_SUB].codec_dai; bells_late_probe()
H A Dlittlemill.c26 struct snd_soc_dai *aif1_dai = card->rtd[0].codec_dai; littlemill_set_bias_level()
69 struct snd_soc_dai *aif1_dai = card->rtd[0].codec_dai; littlemill_set_bias_level_post()
104 struct snd_soc_pcm_runtime *rtd = substream->private_data; littlemill_hw_params() local
105 struct snd_soc_dai *codec_dai = rtd->codec_dai; littlemill_hw_params()
171 struct snd_soc_dai *aif2_dai = card->rtd[1].cpu_dai; bbclk_ev()
248 struct snd_soc_codec *codec = card->rtd[0].codec; littlemill_late_probe()
249 struct snd_soc_dai *aif1_dai = card->rtd[0].codec_dai; littlemill_late_probe()
250 struct snd_soc_dai *aif2_dai = card->rtd[1].cpu_dai; littlemill_late_probe()
H A Dspeyside.c28 struct snd_soc_dai *codec_dai = card->rtd[1].codec_dai; speyside_set_bias_level()
60 struct snd_soc_dai *codec_dai = card->rtd[1].codec_dai; speyside_set_bias_level_post()
129 static int speyside_wm0010_init(struct snd_soc_pcm_runtime *rtd) speyside_wm0010_init() argument
131 struct snd_soc_dai *dai = rtd->codec_dai; speyside_wm0010_init()
141 static int speyside_wm8996_init(struct snd_soc_pcm_runtime *rtd) speyside_wm8996_init() argument
143 struct snd_soc_dai *dai = rtd->codec_dai; speyside_wm8996_init()
144 struct snd_soc_codec *codec = rtd->codec; speyside_wm8996_init()
156 ret = snd_soc_card_jack_new(rtd->card, "Headset", SND_JACK_LINEOUT | speyside_wm8996_init()
H A Dh1940_uda1380.c77 struct snd_soc_pcm_runtime *rtd = substream->private_data; h1940_hw_params() local
78 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; h1940_hw_params()
92 dev_err(rtd->dev, "%s: rate %d is not supported\n", h1940_hw_params()
163 static int h1940_uda1380_init(struct snd_soc_pcm_runtime *rtd) h1940_uda1380_init() argument
165 snd_soc_card_jack_new(rtd->card, "Headphone Jack", SND_JACK_HEADPHONE, h1940_uda1380_init()
H A Drx1950_uda1380.c33 static int rx1950_uda1380_init(struct snd_soc_pcm_runtime *rtd);
157 struct snd_soc_pcm_runtime *rtd = substream->private_data; rx1950_hw_params() local
158 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; rx1950_hw_params()
212 static int rx1950_uda1380_init(struct snd_soc_pcm_runtime *rtd) rx1950_uda1380_init() argument
214 snd_soc_card_jack_new(rtd->card, "Headphone Jack", SND_JACK_HEADPHONE, rx1950_uda1380_init()
H A Dsmdk_wm8580pcm.c49 struct snd_soc_pcm_runtime *rtd = substream->private_data; smdk_wm8580_pcm_hw_params() local
50 struct snd_soc_dai *codec_dai = rtd->codec_dai; smdk_wm8580_pcm_hw_params()
51 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; smdk_wm8580_pcm_hw_params()
H A Dsmdk_wm8994pcm.c53 struct snd_soc_pcm_runtime *rtd = substream->private_data; smdk_wm8994_pcm_hw_params() local
54 struct snd_soc_dai *codec_dai = rtd->codec_dai; smdk_wm8994_pcm_hw_params()
55 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; smdk_wm8994_pcm_hw_params()
H A Dsmdk_wm8580.c34 struct snd_soc_pcm_runtime *rtd = substream->private_data; smdk_hw_params() local
35 struct snd_soc_dai *codec_dai = rtd->codec_dai; smdk_hw_params()
137 static int smdk_wm8580_init_paiftx(struct snd_soc_pcm_runtime *rtd) smdk_wm8580_init_paiftx() argument
142 snd_soc_dapm_disable_pin(&rtd->card->dapm, "MicIn"); smdk_wm8580_init_paiftx()
H A Dsmdk_wm8994.c54 struct snd_soc_pcm_runtime *rtd = substream->private_data; smdk_hw_params() local
55 struct snd_soc_dai *codec_dai = rtd->codec_dai; smdk_hw_params()
87 static int smdk_wm8994_init_paiftx(struct snd_soc_pcm_runtime *rtd) smdk_wm8994_init_paiftx() argument
89 struct snd_soc_codec *codec = rtd->codec; smdk_wm8994_init_paiftx()
H A Dtobermory.c26 struct snd_soc_dai *codec_dai = card->rtd[0].codec_dai; tobermory_set_bias_level()
65 struct snd_soc_dai *codec_dai = card->rtd[0].codec_dai; tobermory_set_bias_level_post()
173 struct snd_soc_codec *codec = card->rtd[0].codec; tobermory_late_probe()
174 struct snd_soc_dai *codec_dai = card->rtd[0].codec_dai; tobermory_late_probe()
H A Ds3c24xx_simtec_hermes.c64 static int simtec_hermes_init(struct snd_soc_pcm_runtime *rtd) simtec_hermes_init() argument
66 simtec_audio_init(rtd); simtec_hermes_init()
H A Ds3c24xx_simtec_tlv320aic23.c53 static int simtec_tlv320aic23_init(struct snd_soc_pcm_runtime *rtd) simtec_tlv320aic23_init() argument
55 simtec_audio_init(rtd); simtec_tlv320aic23_init()
H A Dsnow.c38 struct snd_soc_dai *codec_dai = card->rtd[0].codec_dai; snow_late_probe()
39 struct snd_soc_dai *cpu_dai = card->rtd[0].cpu_dai; snow_late_probe()
H A Dspdif.c143 struct snd_soc_pcm_runtime *rtd = substream->private_data; spdif_trigger() local
144 struct samsung_spdif_info *spdif = to_info(rtd->cpu_dai); spdif_trigger()
179 struct snd_soc_pcm_runtime *rtd = substream->private_data; spdif_hw_params() local
180 struct samsung_spdif_info *spdif = to_info(rtd->cpu_dai); spdif_hw_params()
196 snd_soc_dai_set_dma_data(rtd->cpu_dai, substream, dma_data); spdif_hw_params()
281 struct snd_soc_pcm_runtime *rtd = substream->private_data; spdif_shutdown() local
282 struct samsung_spdif_info *spdif = to_info(rtd->cpu_dai); spdif_shutdown()
H A Ds3c24xx_simtec.c135 void simtec_audio_init(struct snd_soc_pcm_runtime *rtd) simtec_audio_init() argument
137 struct snd_soc_card *card = rtd->card; simtec_audio_init()
167 struct snd_soc_pcm_runtime *rtd = substream->private_data; simtec_hw_params() local
168 struct snd_soc_dai *codec_dai = rtd->codec_dai; simtec_hw_params()
169 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; simtec_hw_params()
H A Dodroidx2_max98090.c28 struct snd_soc_dai *codec_dai = card->rtd[0].codec_dai; odroidx2_late_probe()
29 struct snd_soc_dai *cpu_dai = card->rtd[0].cpu_dai; odroidx2_late_probe()
H A Dsmdk_spdif.c109 struct snd_soc_pcm_runtime *rtd = substream->private_data; smdk_hw_params() local
110 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; smdk_hw_params()
H A Didma.c377 static int idma_new(struct snd_soc_pcm_runtime *rtd) idma_new() argument
379 struct snd_card *card = rtd->card->snd_card; idma_new()
380 struct snd_pcm *pcm = rtd->pcm; idma_new()
H A Ds3c24xx_uda134x.c128 struct snd_soc_pcm_runtime *rtd = substream->private_data; s3c24xx_uda134x_hw_params() local
129 struct snd_soc_dai *codec_dai = rtd->codec_dai; s3c24xx_uda134x_hw_params()
130 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; s3c24xx_uda134x_hw_params()
H A Dpcm.c219 struct snd_soc_pcm_runtime *rtd = substream->private_data; s3c_pcm_trigger() local
220 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(rtd->cpu_dai); s3c_pcm_trigger()
263 struct snd_soc_pcm_runtime *rtd = substream->private_data; s3c_pcm_hw_params() local
264 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(rtd->cpu_dai); s3c_pcm_hw_params()
H A Ds3c-i2s-v2.c388 struct snd_soc_pcm_runtime *rtd = substream->private_data; s3c2412_i2s_trigger() local
389 struct s3c_i2sv2_info *i2s = to_info(rtd->cpu_dai); s3c2412_i2s_trigger()
H A Di2s.c873 struct snd_soc_pcm_runtime *rtd = substream->private_data; i2s_trigger() local
874 struct i2s_dai *i2s = to_info(rtd->cpu_dai); i2s_trigger()
/linux-4.1.27/sound/soc/tegra/
H A Dtegra_wm8903.c61 struct snd_soc_pcm_runtime *rtd = substream->private_data; tegra_wm8903_hw_params() local
62 struct snd_soc_dai *codec_dai = rtd->codec_dai; tegra_wm8903_hw_params()
63 struct snd_soc_card *card = rtd->card; tegra_wm8903_hw_params()
170 static int tegra_wm8903_init(struct snd_soc_pcm_runtime *rtd) tegra_wm8903_init() argument
172 struct snd_soc_dai *codec_dai = rtd->codec_dai; tegra_wm8903_init()
174 struct snd_soc_card *card = rtd->card; tegra_wm8903_init()
179 snd_soc_card_jack_new(rtd->card, "Headphone Jack", tegra_wm8903_init()
188 snd_soc_card_jack_new(rtd->card, "Mic Jack", SND_JACK_MICROPHONE, tegra_wm8903_init()
202 struct snd_soc_pcm_runtime *rtd = &(card->rtd[0]); tegra_wm8903_remove() local
203 struct snd_soc_dai *codec_dai = rtd->codec_dai; tegra_wm8903_remove()
H A Dtegra_alc5632.c42 struct snd_soc_pcm_runtime *rtd = substream->private_data; tegra_alc5632_asoc_hw_params() local
43 struct snd_soc_dai *codec_dai = rtd->codec_dai; tegra_alc5632_asoc_hw_params()
44 struct snd_soc_card *card = rtd->card; tegra_alc5632_asoc_hw_params()
102 static int tegra_alc5632_asoc_init(struct snd_soc_pcm_runtime *rtd) tegra_alc5632_asoc_init() argument
104 struct tegra_alc5632 *machine = snd_soc_card_get_drvdata(rtd->card); tegra_alc5632_asoc_init()
106 snd_soc_card_jack_new(rtd->card, "Headset Jack", SND_JACK_HEADSET, tegra_alc5632_asoc_init()
118 snd_soc_dapm_force_enable_pin(&rtd->card->dapm, "MICBIAS1"); tegra_alc5632_asoc_init()
H A Dtegra_rt5640.c53 struct snd_soc_pcm_runtime *rtd = substream->private_data; tegra_rt5640_asoc_hw_params() local
54 struct snd_soc_dai *codec_dai = rtd->codec_dai; tegra_rt5640_asoc_hw_params()
55 struct snd_soc_card *card = rtd->card; tegra_rt5640_asoc_hw_params()
109 static int tegra_rt5640_asoc_init(struct snd_soc_pcm_runtime *rtd) tegra_rt5640_asoc_init() argument
111 struct tegra_rt5640 *machine = snd_soc_card_get_drvdata(rtd->card); tegra_rt5640_asoc_init()
113 snd_soc_card_jack_new(rtd->card, "Headphones", SND_JACK_HEADPHONE, tegra_rt5640_asoc_init()
H A Dtegra_rt5677.c55 struct snd_soc_pcm_runtime *rtd = substream->private_data; tegra_rt5677_asoc_hw_params() local
56 struct snd_soc_dai *codec_dai = rtd->codec_dai; tegra_rt5677_asoc_hw_params()
57 struct snd_soc_card *card = rtd->card; tegra_rt5677_asoc_hw_params()
142 static int tegra_rt5677_asoc_init(struct snd_soc_pcm_runtime *rtd) tegra_rt5677_asoc_init() argument
144 struct tegra_rt5677 *machine = snd_soc_card_get_drvdata(rtd->card); tegra_rt5677_asoc_init()
146 snd_soc_card_jack_new(rtd->card, "Headphone Jack", SND_JACK_HEADPHONE, tegra_rt5677_asoc_init()
157 snd_soc_card_jack_new(rtd->card, "Mic Jack", SND_JACK_MICROPHONE, tegra_rt5677_asoc_init()
167 snd_soc_dapm_force_enable_pin(&rtd->card->dapm, "MICBIAS1"); tegra_rt5677_asoc_init()
H A Dtegra_max98090.c51 struct snd_soc_pcm_runtime *rtd = substream->private_data; tegra_max98090_asoc_hw_params() local
52 struct snd_soc_dai *codec_dai = rtd->codec_dai; tegra_max98090_asoc_hw_params()
53 struct snd_soc_card *card = rtd->card; tegra_max98090_asoc_hw_params()
146 static int tegra_max98090_asoc_init(struct snd_soc_pcm_runtime *rtd) tegra_max98090_asoc_init() argument
148 struct tegra_max98090 *machine = snd_soc_card_get_drvdata(rtd->card); tegra_max98090_asoc_init()
151 snd_soc_card_jack_new(rtd->card, "Headphones", tegra_max98090_asoc_init()
164 snd_soc_card_jack_new(rtd->card, "Mic Jack", tegra_max98090_asoc_init()
H A Dtegra_wm8753.c56 struct snd_soc_pcm_runtime *rtd = substream->private_data; tegra_wm8753_hw_params() local
57 struct snd_soc_dai *codec_dai = rtd->codec_dai; tegra_wm8753_hw_params()
58 struct snd_soc_card *card = rtd->card; tegra_wm8753_hw_params()
H A Dtrimslice.c51 struct snd_soc_pcm_runtime *rtd = substream->private_data; trimslice_asoc_hw_params() local
52 struct snd_soc_dai *codec_dai = rtd->codec_dai; trimslice_asoc_hw_params()
53 struct snd_soc_card *card = rtd->card; trimslice_asoc_hw_params()
H A Dtegra_wm9712.c47 static int tegra_wm9712_init(struct snd_soc_pcm_runtime *rtd) tegra_wm9712_init() argument
49 return snd_soc_dapm_force_enable_pin(&rtd->card->dapm, "Mic Bias"); tegra_wm9712_init()
/linux-4.1.27/sound/soc/cirrus/
H A Dsnappercl15.c30 struct snd_soc_pcm_runtime *rtd = substream->private_data; snappercl15_hw_params() local
31 struct snd_soc_dai *codec_dai = rtd->codec_dai; snappercl15_hw_params()
32 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; snappercl15_hw_params()
H A Dedb93xx.c34 struct snd_soc_pcm_runtime *rtd = substream->private_data; edb93xx_hw_params() local
35 struct snd_soc_dai *codec_dai = rtd->codec_dai; edb93xx_hw_params()
36 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; edb93xx_hw_params()
/linux-4.1.27/sound/soc/fsl/
H A Dfsl_asrc_dma.c64 struct snd_soc_pcm_runtime *rtd = substream->private_data; fsl_asrc_dma_prepare_and_submit() local
67 struct device *dev = rtd->platform->dev; fsl_asrc_dma_prepare_and_submit()
136 struct snd_soc_pcm_runtime *rtd = substream->private_data; fsl_asrc_dma_hw_params() local
145 struct device *dev = rtd->platform->dev; fsl_asrc_dma_hw_params()
156 list_for_each_entry(dpcm, &rtd->dpcm[stream].be_clients, list_be) { fsl_asrc_dma_hw_params()
161 if (dpcm->fe != rtd) fsl_asrc_dma_hw_params()
176 dma_params_fe = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); fsl_asrc_dma_hw_params()
275 struct snd_soc_pcm_runtime *rtd = substream->private_data; fsl_asrc_dma_startup() local
277 struct device *dev = rtd->platform->dev; fsl_asrc_dma_startup()
335 static int fsl_asrc_dma_pcm_new(struct snd_soc_pcm_runtime *rtd) fsl_asrc_dma_pcm_new() argument
337 struct snd_card *card = rtd->card->snd_card; fsl_asrc_dma_pcm_new()
339 struct snd_pcm *pcm = rtd->pcm; fsl_asrc_dma_pcm_new()
H A Dmpc5200_dma.c113 struct snd_soc_pcm_runtime *rtd = substream->private_data; psc_dma_trigger() local
114 struct psc_dma *psc_dma = snd_soc_dai_get_drvdata(rtd->cpu_dai); psc_dma_trigger()
214 struct snd_soc_pcm_runtime *rtd = substream->private_data; psc_dma_open() local
215 struct psc_dma *psc_dma = snd_soc_dai_get_drvdata(rtd->cpu_dai); psc_dma_open()
241 struct snd_soc_pcm_runtime *rtd = substream->private_data; psc_dma_close() local
242 struct psc_dma *psc_dma = snd_soc_dai_get_drvdata(rtd->cpu_dai); psc_dma_close()
266 struct snd_soc_pcm_runtime *rtd = substream->private_data; psc_dma_pointer() local
267 struct psc_dma *psc_dma = snd_soc_dai_get_drvdata(rtd->cpu_dai); psc_dma_pointer()
300 static int psc_dma_new(struct snd_soc_pcm_runtime *rtd) psc_dma_new() argument
302 struct snd_card *card = rtd->card->snd_card; psc_dma_new()
303 struct snd_soc_dai *dai = rtd->cpu_dai; psc_dma_new()
304 struct snd_pcm *pcm = rtd->pcm; psc_dma_new()
305 struct psc_dma *psc_dma = snd_soc_dai_get_drvdata(rtd->cpu_dai); psc_dma_new()
309 dev_dbg(rtd->platform->dev, "psc_dma_new(card=%p, dai=%p, pcm=%p)\n", psc_dma_new()
344 struct snd_soc_pcm_runtime *rtd = pcm->private_data; psc_dma_free() local
348 dev_dbg(rtd->platform->dev, "psc_dma_free(pcm=%p)\n", pcm); psc_dma_free()
H A Dwm1133-ev1.c83 struct snd_soc_pcm_runtime *rtd = substream->private_data; wm1133_ev1_hw_params() local
84 struct snd_soc_dai *codec_dai = rtd->codec_dai; wm1133_ev1_hw_params()
85 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; wm1133_ev1_hw_params()
202 static int wm1133_ev1_init(struct snd_soc_pcm_runtime *rtd) wm1133_ev1_init() argument
204 struct snd_soc_codec *codec = rtd->codec; wm1133_ev1_init()
207 snd_soc_card_jack_new(rtd->card, "Headphone", SND_JACK_HEADPHONE, wm1133_ev1_init()
212 snd_soc_card_jack_new(rtd->card, "Microphone", wm1133_ev1_init()
218 snd_soc_dapm_force_enable_pin(&rtd->card->dapm, "Mic Bias"); wm1133_ev1_init()
H A Dimx-mc13783.c35 struct snd_soc_pcm_runtime *rtd = substream->private_data; imx_mc13783_hifi_hw_params() local
36 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; imx_mc13783_hifi_hw_params()
37 struct snd_soc_dai *codec_dai = rtd->codec_dai; imx_mc13783_hifi_hw_params()
H A Dimx-sgtl5000.c34 static int imx_sgtl5000_dai_init(struct snd_soc_pcm_runtime *rtd) imx_sgtl5000_dai_init() argument
36 struct imx_sgtl5000_data *data = snd_soc_card_get_drvdata(rtd->card); imx_sgtl5000_dai_init()
37 struct device *dev = rtd->card->dev; imx_sgtl5000_dai_init()
40 ret = snd_soc_dai_set_sysclk(rtd->codec_dai, SGTL5000_SYSCLK, imx_sgtl5000_dai_init()
H A Dimx-pcm-fiq.c259 static int imx_pcm_new(struct snd_soc_pcm_runtime *rtd) imx_pcm_new() argument
261 struct snd_card *card = rtd->card->snd_card; imx_pcm_new()
262 struct snd_pcm *pcm = rtd->pcm; imx_pcm_new()
288 static int imx_pcm_fiq_new(struct snd_soc_pcm_runtime *rtd) imx_pcm_fiq_new() argument
290 struct snd_pcm *pcm = rtd->pcm; imx_pcm_fiq_new()
294 ret = imx_pcm_new(rtd); imx_pcm_fiq_new()
H A Dfsl-asoc-card.c120 struct snd_soc_pcm_runtime *rtd = substream->private_data; fsl_asoc_card_hw_params() local
121 struct fsl_asoc_card_priv *priv = snd_soc_card_get_drvdata(rtd->card); fsl_asoc_card_hw_params()
124 struct device *dev = rtd->card->dev; fsl_asoc_card_hw_params()
139 ret = snd_soc_dai_set_sysclk(rtd->cpu_dai, cpu_priv->sysclk_id[tx], fsl_asoc_card_hw_params()
148 ret = snd_soc_dai_set_tdm_slot(rtd->cpu_dai, 0x3, 0x3, 2, fsl_asoc_card_hw_params()
163 static int be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, be_hw_params_fixup() argument
166 struct fsl_asoc_card_priv *priv = snd_soc_card_get_drvdata(rtd->card); be_hw_params_fixup()
214 struct snd_soc_dai *codec_dai = card->rtd[0].codec_dai; fsl_asoc_card_set_bias_level()
386 struct snd_soc_dai *codec_dai = card->rtd[0].codec_dai; fsl_asoc_card_late_probe()
H A Deukrea-tlv320.c40 struct snd_soc_pcm_runtime *rtd = substream->private_data; eukrea_tlv320_hw_params() local
41 struct snd_soc_dai *codec_dai = rtd->codec_dai; eukrea_tlv320_hw_params()
42 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; eukrea_tlv320_hw_params()
H A Dimx-es8328.c48 static int imx_es8328_dai_init(struct snd_soc_pcm_runtime *rtd) imx_es8328_dai_init() argument
50 struct imx_es8328_data *data = container_of(rtd->card, imx_es8328_dai_init()
56 ret = snd_soc_card_jack_new(rtd->card, "Headphone", imx_es8328_dai_init()
H A Dmx27vis-aic32x4.c54 struct snd_soc_pcm_runtime *rtd = substream->private_data; mx27vis_aic32x4_hw_params() local
55 struct snd_soc_dai *codec_dai = rtd->codec_dai; mx27vis_aic32x4_hw_params()
56 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; mx27vis_aic32x4_hw_params()
H A Dmpc8610_hpcd.c105 struct snd_soc_pcm_runtime *rtd = substream->private_data; mpc8610_hpcd_startup() local
107 container_of(rtd->card, struct mpc8610_hpcd_data, card); mpc8610_hpcd_startup()
108 struct device *dev = rtd->card->dev; mpc8610_hpcd_startup()
112 ret = snd_soc_dai_set_fmt(rtd->codec_dai, machine_data->dai_format); mpc8610_hpcd_startup()
122 ret = snd_soc_dai_set_sysclk(rtd->codec_dai, 0, mpc8610_hpcd_startup()
H A Dp1022_rdk.c134 struct snd_soc_pcm_runtime *rtd = substream->private_data; p1022_rdk_startup() local
136 container_of(rtd->card, struct machine_data, card); p1022_rdk_startup()
137 struct device *dev = rtd->card->dev; p1022_rdk_startup()
141 ret = snd_soc_dai_set_fmt(rtd->codec_dai, mdata->dai_format); p1022_rdk_startup()
148 ret = snd_soc_dai_set_pll(rtd->codec_dai, 0, 0, mdata->clk_frequency, p1022_rdk_startup()
H A Dfsl_dma.c206 struct snd_soc_pcm_runtime *rtd = substream->private_data; fsl_dma_isr() local
207 struct device *dev = rtd->platform->dev; fsl_dma_isr()
285 static int fsl_dma_new(struct snd_soc_pcm_runtime *rtd) fsl_dma_new() argument
287 struct snd_card *card = rtd->card->snd_card; fsl_dma_new()
288 struct snd_pcm *pcm = rtd->pcm; fsl_dma_new()
388 struct snd_soc_pcm_runtime *rtd = substream->private_data; fsl_dma_open() local
389 struct device *dev = rtd->platform->dev; fsl_dma_open()
391 container_of(rtd->platform->driver, struct dma_object, dai); fsl_dma_open()
542 struct snd_soc_pcm_runtime *rtd = substream->private_data; fsl_dma_hw_params() local
543 struct device *dev = rtd->platform->dev; fsl_dma_hw_params()
705 struct snd_soc_pcm_runtime *rtd = substream->private_data; fsl_dma_pointer() local
706 struct device *dev = rtd->platform->dev; fsl_dma_pointer()
802 struct snd_soc_pcm_runtime *rtd = substream->private_data; fsl_dma_close() local
803 struct device *dev = rtd->platform->dev; fsl_dma_close()
805 container_of(rtd->platform->driver, struct dma_object, dai); fsl_dma_close()
H A Dp1022_ds.c128 struct snd_soc_pcm_runtime *rtd = substream->private_data; p1022_ds_startup() local
130 container_of(rtd->card, struct machine_data, card); p1022_ds_startup()
131 struct device *dev = rtd->card->dev; p1022_ds_startup()
135 ret = snd_soc_dai_set_fmt(rtd->codec_dai, mdata->dai_format); p1022_ds_startup()
145 ret = snd_soc_dai_set_sysclk(rtd->codec_dai, 0, mdata->clk_frequency, p1022_ds_startup()
H A Dfsl_spdif.c366 struct snd_soc_pcm_runtime *rtd = substream->private_data; spdif_set_sample_rate() local
367 struct fsl_spdif_priv *spdif_priv = snd_soc_dai_get_drvdata(rtd->cpu_dai); spdif_set_sample_rate()
455 struct snd_soc_pcm_runtime *rtd = substream->private_data; fsl_spdif_startup() local
456 struct fsl_spdif_priv *spdif_priv = snd_soc_dai_get_drvdata(rtd->cpu_dai); fsl_spdif_startup()
511 struct snd_soc_pcm_runtime *rtd = substream->private_data; fsl_spdif_shutdown() local
512 struct fsl_spdif_priv *spdif_priv = snd_soc_dai_get_drvdata(rtd->cpu_dai); fsl_spdif_shutdown()
544 struct snd_soc_pcm_runtime *rtd = substream->private_data; fsl_spdif_hw_params() local
545 struct fsl_spdif_priv *spdif_priv = snd_soc_dai_get_drvdata(rtd->cpu_dai); fsl_spdif_hw_params()
572 struct snd_soc_pcm_runtime *rtd = substream->private_data; fsl_spdif_trigger() local
573 struct fsl_spdif_priv *spdif_priv = snd_soc_dai_get_drvdata(rtd->cpu_dai); fsl_spdif_trigger()
H A Dimx-wm8962.c72 struct snd_soc_dai *codec_dai = card->rtd[0].codec_dai; imx_wm8962_set_bias_level()
138 struct snd_soc_dai *codec_dai = card->rtd[0].codec_dai; imx_wm8962_late_probe()
H A Dmpc5200_psc_i2s.c41 struct snd_soc_pcm_runtime *rtd = substream->private_data; psc_i2s_hw_params() local
42 struct psc_dma *psc_dma = snd_soc_dai_get_drvdata(rtd->cpu_dai); psc_i2s_hw_params()
H A Dfsl_ssi.c529 struct snd_soc_pcm_runtime *rtd = substream->private_data; fsl_ssi_startup() local
531 snd_soc_dai_get_drvdata(rtd->cpu_dai); fsl_ssi_startup()
557 struct snd_soc_pcm_runtime *rtd = substream->private_data; fsl_ssi_shutdown() local
559 snd_soc_dai_get_drvdata(rtd->cpu_dai); fsl_ssi_shutdown()
777 struct snd_soc_pcm_runtime *rtd = substream->private_data; fsl_ssi_hw_free() local
779 snd_soc_dai_get_drvdata(rtd->cpu_dai); fsl_ssi_hw_free()
1018 struct snd_soc_pcm_runtime *rtd = substream->private_data; fsl_ssi_trigger() local
1019 struct fsl_ssi_private *ssi_private = snd_soc_dai_get_drvdata(rtd->cpu_dai); fsl_ssi_trigger()
/linux-4.1.27/sound/soc/atmel/
H A Datmel-pcm-dma.c69 struct snd_soc_pcm_runtime *rtd = substream->private_data; atmel_pcm_dma_irq() local
72 prtd = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); atmel_pcm_dma_irq()
94 struct snd_soc_pcm_runtime *rtd = substream->private_data; atmel_pcm_configure_dma() local
99 prtd = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); atmel_pcm_configure_dma()
H A Datmel-pcm-pdc.c80 static int atmel_pcm_new(struct snd_soc_pcm_runtime *rtd) atmel_pcm_new() argument
82 struct snd_card *card = rtd->card->snd_card; atmel_pcm_new()
83 struct snd_pcm *pcm = rtd->pcm; atmel_pcm_new()
217 struct snd_soc_pcm_runtime *rtd = substream->private_data; atmel_pcm_hw_params() local
225 prtd->params = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); atmel_pcm_hw_params()
270 struct snd_pcm_runtime *rtd = substream->runtime; atmel_pcm_trigger() local
271 struct atmel_runtime_data *prtd = rtd->private_data; atmel_pcm_trigger()
277 rtd->buffer_size, rtd->dma_area, rtd->dma_bytes); atmel_pcm_trigger()
H A Dsam9x5_wm8731.c46 static int sam9x5_wm8731_init(struct snd_soc_pcm_runtime *rtd) sam9x5_wm8731_init() argument
48 struct snd_soc_dai *codec_dai = rtd->codec_dai; sam9x5_wm8731_init()
49 struct device *dev = rtd->dev; sam9x5_wm8731_init()
H A Dsam9g20_wm8731.c109 static int at91sam9g20ek_wm8731_init(struct snd_soc_pcm_runtime *rtd) at91sam9g20ek_wm8731_init() argument
111 struct snd_soc_codec *codec = rtd->codec; at91sam9g20ek_wm8731_init()
112 struct snd_soc_dai *codec_dai = rtd->codec_dai; at91sam9g20ek_wm8731_init()
132 snd_soc_dapm_nc_pin(&rtd->card->dapm, "Int Mic"); at91sam9g20ek_wm8731_init()
H A Datmel_wm8904.c30 struct snd_soc_pcm_runtime *rtd = substream->private_data; atmel_asoc_wm8904_hw_params() local
31 struct snd_soc_dai *codec_dai = rtd->codec_dai; atmel_asoc_wm8904_hw_params()
/linux-4.1.27/sound/soc/davinci/
H A Ddavinci-evm.c34 struct snd_soc_pcm_runtime *rtd = substream->private_data; evm_startup() local
35 struct snd_soc_card *soc_card = rtd->card; evm_startup()
47 struct snd_soc_pcm_runtime *rtd = substream->private_data; evm_shutdown() local
48 struct snd_soc_card *soc_card = rtd->card; evm_shutdown()
59 struct snd_soc_pcm_runtime *rtd = substream->private_data; evm_hw_params() local
60 struct snd_soc_dai *codec_dai = rtd->codec_dai; evm_hw_params()
61 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; evm_hw_params()
62 struct snd_soc_card *soc_card = rtd->card; evm_hw_params()
117 static int evm_aic3x_init(struct snd_soc_pcm_runtime *rtd) evm_aic3x_init() argument
119 struct snd_soc_card *card = rtd->card; evm_aic3x_init()
H A Ddavinci-vcif.c57 struct snd_soc_pcm_runtime *rtd = substream->private_data; davinci_vcif_start() local
59 snd_soc_dai_get_drvdata(rtd->cpu_dai); davinci_vcif_start()
76 struct snd_soc_pcm_runtime *rtd = substream->private_data; davinci_vcif_stop() local
78 snd_soc_dai_get_drvdata(rtd->cpu_dai); davinci_vcif_stop()
H A Ddavinci-i2s.c186 struct snd_soc_pcm_runtime *rtd = substream->private_data; davinci_mcbsp_start() local
187 struct snd_soc_platform *platform = rtd->platform; davinci_mcbsp_start()
/linux-4.1.27/sound/soc/au1x/
H A Ddbdma2.c189 struct snd_soc_pcm_runtime *rtd = ss->private_data; to_dmadata() local
191 snd_soc_platform_get_drvdata(rtd->platform); to_dmadata()
288 struct snd_soc_pcm_runtime *rtd = substream->private_data; au1xpsc_pcm_open() local
291 dmaids = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); au1xpsc_pcm_open()
318 static int au1xpsc_pcm_new(struct snd_soc_pcm_runtime *rtd) au1xpsc_pcm_new() argument
320 struct snd_card *card = rtd->card->snd_card; au1xpsc_pcm_new()
321 struct snd_pcm *pcm = rtd->pcm; au1xpsc_pcm_new()
H A Ddma.c176 struct snd_soc_pcm_runtime *rtd = ss->private_data; ss_to_ctx() local
177 return snd_soc_platform_get_drvdata(rtd->platform); ss_to_ctx()
189 struct snd_soc_pcm_runtime *rtd = substream->private_data; alchemy_pcm_open() local
193 dmaids = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); alchemy_pcm_open()
290 static int alchemy_pcm_new(struct snd_soc_pcm_runtime *rtd) alchemy_pcm_new() argument
292 struct snd_pcm *pcm = rtd->pcm; alchemy_pcm_new()
H A Ddb1200.c92 struct snd_soc_pcm_runtime *rtd = substream->private_data; db1200_i2s_startup() local
93 struct snd_soc_dai *codec_dai = rtd->codec_dai; db1200_i2s_startup()
H A Dpsc-ac97.c65 return snd_soc_dai_get_drvdata(c->rtd->cpu_dai);
/linux-4.1.27/sound/soc/intel/atom/
H A Dsst-mfld-platform-pcm.c285 struct snd_soc_pcm_runtime *rtd = substream->private_data; sst_platform_init_stream() local
288 dev_dbg(rtd->dev, "setting buffer ptr param\n"); sst_platform_init_stream()
296 dev_err(rtd->dev, "control_set ret error %d\n", ret_val); sst_platform_init_stream()
577 struct snd_soc_pcm_runtime *rtd = substream->private_data; sst_platform_pcm_trigger() local
579 dev_dbg(rtd->dev, "sst_platform_pcm_trigger called\n"); sst_platform_pcm_trigger()
586 dev_dbg(rtd->dev, "sst: Trigger Start\n"); sst_platform_pcm_trigger()
592 dev_dbg(rtd->dev, "sst: in stop\n"); sst_platform_pcm_trigger()
598 dev_dbg(rtd->dev, "sst: in pause\n"); sst_platform_pcm_trigger()
604 dev_dbg(rtd->dev, "sst: in pause release\n"); sst_platform_pcm_trigger()
625 struct snd_soc_pcm_runtime *rtd = substream->private_data; sst_platform_pcm_pointer() local
634 dev_err(rtd->dev, "sst: error code = %d\n", ret_val); sst_platform_pcm_pointer()
648 static int sst_pcm_new(struct snd_soc_pcm_runtime *rtd) sst_pcm_new() argument
650 struct snd_soc_dai *dai = rtd->cpu_dai; sst_pcm_new()
651 struct snd_pcm *pcm = rtd->pcm; sst_pcm_new()
661 dev_err(rtd->dev, "dma buffer allocationf fail\n"); sst_pcm_new()
748 struct snd_soc_dai *dai = drv->soc_card->rtd[i].cpu_dai; sst_soc_prepare()
766 struct snd_soc_dai *dai = drv->soc_card->rtd[i].cpu_dai; sst_soc_complete()
H A Dsst-mfld-platform-compress.c109 struct snd_soc_pcm_runtime *rtd = cstream->private_data; sst_platform_compr_set_params() local
110 struct snd_soc_platform *platform = rtd->platform; sst_platform_compr_set_params()
/linux-4.1.27/sound/soc/txx9/
H A Dtxx9aclc.c54 struct snd_soc_pcm_runtime *rtd = snd_pcm_substream_chip(substream); txx9aclc_pcm_hw_params() local
63 dev_dbg(rtd->platform->dev, txx9aclc_pcm_hw_params()
69 dev_dbg(rtd->platform->dev, txx9aclc_pcm_hw_params()
285 static int txx9aclc_pcm_new(struct snd_soc_pcm_runtime *rtd) txx9aclc_pcm_new() argument
287 struct snd_card *card = rtd->card->snd_card; txx9aclc_pcm_new()
288 struct snd_soc_dai *dai = rtd->cpu_dai; txx9aclc_pcm_new()
289 struct snd_pcm *pcm = rtd->pcm; txx9aclc_pcm_new()
290 struct platform_device *pdev = to_platform_device(rtd->platform->dev); txx9aclc_pcm_new()
/linux-4.1.27/sound/soc/mxs/
H A Dmxs-sgtl5000.c35 struct snd_soc_pcm_runtime *rtd = substream->private_data; mxs_sgtl5000_hw_params() local
36 struct snd_soc_dai *codec_dai = rtd->codec_dai; mxs_sgtl5000_hw_params()
37 struct snd_soc_dai *cpu_dai = rtd->cpu_dai; mxs_sgtl5000_hw_params()
/linux-4.1.27/sound/soc/kirkwood/
H A Darmada-370-db.c25 struct snd_soc_pcm_runtime *rtd = substream->private_data; a370db_hw_params() local
26 struct snd_soc_dai *codec_dai = rtd->codec_dai; a370db_hw_params()
H A Dkirkwood-dma.c270 static int kirkwood_dma_new(struct snd_soc_pcm_runtime *rtd) kirkwood_dma_new() argument
272 struct snd_card *card = rtd->card->snd_card; kirkwood_dma_new()
273 struct snd_pcm *pcm = rtd->pcm; kirkwood_dma_new()
/linux-4.1.27/sound/soc/nuc900/
H A Dnuc900-pcm.c288 static int nuc900_dma_new(struct snd_soc_pcm_runtime *rtd) nuc900_dma_new() argument
290 struct snd_card *card = rtd->card->snd_card; nuc900_dma_new()
291 struct snd_pcm *pcm = rtd->pcm; nuc900_dma_new()
/linux-4.1.27/sound/soc/xtensa/
H A Dxtfpga-i2s.c374 struct snd_soc_pcm_runtime *rtd = substream->private_data; xtfpga_pcm_open() local
378 p = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); xtfpga_pcm_open()
467 static int xtfpga_pcm_new(struct snd_soc_pcm_runtime *rtd) xtfpga_pcm_new() argument
469 struct snd_card *card = rtd->card->snd_card; xtfpga_pcm_new()
472 return snd_pcm_lib_preallocate_pages_for_all(rtd->pcm, xtfpga_pcm_new()
/linux-4.1.27/include/sound/
H A Dsoc.h432 int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int num);
433 int soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num);
440 bool snd_soc_runtime_ignore_pmdown_time(struct snd_soc_pcm_runtime *rtd);
441 void snd_soc_runtime_activate(struct snd_soc_pcm_runtime *rtd, int stream);
442 void snd_soc_runtime_deactivate(struct snd_soc_pcm_runtime *rtd, int stream);
444 int snd_soc_runtime_set_dai_fmt(struct snd_soc_pcm_runtime *rtd,
991 int (*init)(struct snd_soc_pcm_runtime *rtd);
994 int (*be_hw_params_fixup)(struct snd_soc_pcm_runtime *rtd,
1073 struct snd_soc_pcm_runtime *rtd; member in struct:snd_soc_card
1413 static inline void snd_soc_pcm_set_drvdata(struct snd_soc_pcm_runtime *rtd, snd_soc_pcm_set_drvdata() argument
1416 dev_set_drvdata(rtd->dev, data); snd_soc_pcm_set_drvdata()
1419 static inline void *snd_soc_pcm_get_drvdata(struct snd_soc_pcm_runtime *rtd) snd_soc_pcm_get_drvdata() argument
1421 return dev_get_drvdata(rtd->dev); snd_soc_pcm_get_drvdata()
H A Ddmaengine_pcm.h134 struct snd_soc_pcm_runtime *rtd,
H A Dsoc-dpcm.h138 void soc_dpcm_debugfs_add(struct snd_soc_pcm_runtime *rtd);
H A Dsoc-dapm.h396 void snd_soc_dapm_stream_event(struct snd_soc_pcm_runtime *rtd, int stream,
/linux-4.1.27/drivers/net/wireless/p54/
H A Dfwio.c566 u8 rtd; p54_set_edcf() local
587 rtd = 3 * priv->coverage_class; p54_set_edcf()
588 edcf->slottime += rtd; p54_set_edcf()
589 edcf->round_trip_delay = cpu_to_le16(rtd); p54_set_edcf()
/linux-4.1.27/arch/m68k/ifpsp060/src/
H A Disp.S102 rtd &0x4
110 rtd &0x4
118 rtd &0x4
126 rtd &0x4
134 rtd &0x4
144 rtd &0x4
152 rtd &0x4
160 rtd &0x4
168 rtd &0x4
178 rtd &0x4
186 rtd &0x4
194 rtd &0x4
202 rtd &0x4
210 rtd &0x4
218 rtd &0x4
226 rtd &0x4
234 rtd &0x4
242 rtd &0x4
250 rtd &0x4
258 rtd &0x4
H A Dftest.S1447 rtd &0x4
1454 rtd &0x4
H A Dpfpsp.S101 rtd &0x4
109 rtd &0x4
117 rtd &0x4
125 rtd &0x4
133 rtd &0x4
141 rtd &0x4
149 rtd &0x4
157 rtd &0x4
165 rtd &0x4
173 rtd &0x4
181 rtd &0x4
189 rtd &0x4
197 rtd &0x4
207 rtd &0x4
215 rtd &0x4
223 rtd &0x4
231 rtd &0x4
239 rtd &0x4
247 rtd &0x4
255 rtd &0x4
263 rtd &0x4
271 rtd &0x4
279 rtd &0x4
287 rtd &0x4
H A Dfpsp.S102 rtd &0x4
110 rtd &0x4
118 rtd &0x4
126 rtd &0x4
134 rtd &0x4
142 rtd &0x4
150 rtd &0x4
158 rtd &0x4
166 rtd &0x4
174 rtd &0x4
182 rtd &0x4
190 rtd &0x4
198 rtd &0x4
208 rtd &0x4
216 rtd &0x4
224 rtd &0x4
232 rtd &0x4
240 rtd &0x4
248 rtd &0x4
256 rtd &0x4
264 rtd &0x4
272 rtd &0x4
280 rtd &0x4
288 rtd &0x4
H A Ditest.S6377 rtd &0x4
6384 rtd &0x4
/linux-4.1.27/drivers/video/fbdev/msm/
H A Dmddi.c450 printk(KERN_INFO "mddi cmd send rtd: int %x, stat %x, " mddi_get_client_caps()
451 "rtd val %x\n", mddi_readl(INT), stat, mddi_get_client_caps()
608 "MDDI_CMD_SEND_RTD: int %x, stat %x, rtd val %x " mddi_remote_read()

Completed in 1625 milliseconds