Lines Matching refs:driver

57 	if (dai->driver->ops &&  in snd_soc_dai_set_sysclk()
58 dai->driver->ops->set_sysclk) in snd_soc_dai_set_sysclk()
59 ret = dai->driver->ops->set_sysclk(dai, clk_id, freq, dir); in snd_soc_dai_set_sysclk()
83 if (dai->driver->ops && in snd_soc_dai_set_clkdiv()
84 dai->driver->ops->set_clkdiv) in snd_soc_dai_set_clkdiv()
85 ret = dai->driver->ops->set_clkdiv(dai, div_id, div); in snd_soc_dai_set_clkdiv()
106 if (dai->driver->ops && in snd_soc_dai_set_pll()
107 dai->driver->ops->set_pll) in snd_soc_dai_set_pll()
108 ret = dai->driver->ops->set_pll(dai, pll_id, source, in snd_soc_dai_set_pll()
129 if (dai->driver->ops && in snd_soc_dai_set_bclk_ratio()
130 dai->driver->ops->set_bclk_ratio) in snd_soc_dai_set_bclk_ratio()
131 ret = dai->driver->ops->set_bclk_ratio(dai, ratio); in snd_soc_dai_set_bclk_ratio()
146 if (dai->driver->ops && in snd_soc_dai_get_fmt_max_priority()
147 dai->driver->ops->num_auto_selectable_formats) in snd_soc_dai_get_fmt_max_priority()
148 max = max(max, dai->driver->ops->num_auto_selectable_formats); in snd_soc_dai_get_fmt_max_priority()
171 const struct snd_soc_dai_ops *ops = dai->driver->ops; in snd_soc_dai_get_fmt()
211 if (dai->driver->ops && dai->driver->ops->set_fmt) in snd_soc_dai_set_fmt()
212 ret = dai->driver->ops->set_fmt(dai, fmt); in snd_soc_dai_set_fmt()
276 if (dai->driver->ops && in snd_soc_dai_set_tdm_slot()
277 dai->driver->ops->xlate_tdm_slot_mask) in snd_soc_dai_set_tdm_slot()
278 dai->driver->ops->xlate_tdm_slot_mask(slots, in snd_soc_dai_set_tdm_slot()
286 if (dai->driver->ops && in snd_soc_dai_set_tdm_slot()
287 dai->driver->ops->set_tdm_slot) in snd_soc_dai_set_tdm_slot()
288 ret = dai->driver->ops->set_tdm_slot(dai, tx_mask, rx_mask, in snd_soc_dai_set_tdm_slot()
312 if (dai->driver->ops && in snd_soc_dai_set_channel_map()
313 dai->driver->ops->set_channel_map) in snd_soc_dai_set_channel_map()
314 ret = dai->driver->ops->set_channel_map(dai, tx_num, tx_slot, in snd_soc_dai_set_channel_map()
336 if (dai->driver->ops && in snd_soc_dai_get_channel_map()
337 dai->driver->ops->get_channel_map) in snd_soc_dai_get_channel_map()
338 ret = dai->driver->ops->get_channel_map(dai, tx_num, tx_slot, in snd_soc_dai_get_channel_map()
355 if (dai->driver->ops && in snd_soc_dai_set_tristate()
356 dai->driver->ops->set_tristate) in snd_soc_dai_set_tristate()
357 ret = dai->driver->ops->set_tristate(dai, tristate); in snd_soc_dai_set_tristate()
380 if (dai->driver->ops && in snd_soc_dai_digital_mute()
381 dai->driver->ops->mute_stream && in snd_soc_dai_digital_mute()
383 !dai->driver->ops->no_capture_mute)) in snd_soc_dai_digital_mute()
384 ret = dai->driver->ops->mute_stream(dai, mute, direction); in snd_soc_dai_digital_mute()
396 if (dai->driver->ops && in snd_soc_dai_hw_params()
397 dai->driver->ops->hw_params) in snd_soc_dai_hw_params()
398 ret = dai->driver->ops->hw_params(substream, params, dai); in snd_soc_dai_hw_params()
414 if (dai->driver->ops && in snd_soc_dai_hw_free()
415 dai->driver->ops->hw_free) in snd_soc_dai_hw_free()
416 dai->driver->ops->hw_free(substream, dai); in snd_soc_dai_hw_free()
430 if (dai->driver->ops && in snd_soc_dai_startup()
431 dai->driver->ops->startup) in snd_soc_dai_startup()
432 ret = dai->driver->ops->startup(substream, dai); in snd_soc_dai_startup()
451 if (dai->driver->ops && in snd_soc_dai_shutdown()
452 dai->driver->ops->shutdown) in snd_soc_dai_shutdown()
453 dai->driver->ops->shutdown(substream, dai); in snd_soc_dai_shutdown()
463 if (dai->driver->ops && in snd_soc_dai_compress_new()
464 dai->driver->ops->compress_new) in snd_soc_dai_compress_new()
465 ret = dai->driver->ops->compress_new(rtd, num); in snd_soc_dai_compress_new()
552 if (dai->driver->ops) { in snd_soc_pcm_dai_probe()
553 if (dai->driver->ops->probe_order != order) in snd_soc_pcm_dai_probe()
556 if (dai->driver->ops->probe) { in snd_soc_pcm_dai_probe()
557 int ret = dai->driver->ops->probe(dai); in snd_soc_pcm_dai_probe()
578 if (dai->driver->ops) { in snd_soc_pcm_dai_remove()
579 if (dai->driver->ops->remove_order != order) in snd_soc_pcm_dai_remove()
582 if (dai->driver->ops->remove) { in snd_soc_pcm_dai_remove()
583 r = dai->driver->ops->remove(dai); in snd_soc_pcm_dai_remove()
600 if (dai->driver->ops && in snd_soc_pcm_dai_new()
601 dai->driver->ops->pcm_new) { in snd_soc_pcm_dai_new()
602 int ret = dai->driver->ops->pcm_new(rtd, dai); in snd_soc_pcm_dai_new()
620 if (dai->driver->ops && in snd_soc_pcm_dai_prepare()
621 dai->driver->ops->prepare) { in snd_soc_pcm_dai_prepare()
622 ret = dai->driver->ops->prepare(substream, dai); in snd_soc_pcm_dai_prepare()
639 if (dai->driver->ops && in soc_dai_trigger()
640 dai->driver->ops->trigger) in soc_dai_trigger()
641 ret = dai->driver->ops->trigger(substream, cmd, dai); in soc_dai_trigger()
662 if (dai->driver->ops && dai->driver->ops->mute_unmute_on_trigger) in snd_soc_pcm_dai_trigger()
675 if (dai->driver->ops && dai->driver->ops->mute_unmute_on_trigger) in snd_soc_pcm_dai_trigger()
696 if (dai->driver->ops && in snd_soc_pcm_dai_bespoke_trigger()
697 dai->driver->ops->bespoke_trigger) { in snd_soc_pcm_dai_bespoke_trigger()
698 ret = dai->driver->ops->bespoke_trigger(substream, in snd_soc_pcm_dai_bespoke_trigger()
725 if (dai->driver->ops && in snd_soc_pcm_dai_delay()
726 dai->driver->ops->delay) in snd_soc_pcm_dai_delay()
727 *cpu_delay = max(*cpu_delay, dai->driver->ops->delay(substream, dai)); in snd_soc_pcm_dai_delay()
731 if (dai->driver->ops && in snd_soc_pcm_dai_delay()
732 dai->driver->ops->delay) in snd_soc_pcm_dai_delay()
733 *codec_delay = max(*codec_delay, dai->driver->ops->delay(substream, dai)); in snd_soc_pcm_dai_delay()
741 if (dai->driver->cops && in snd_soc_dai_compr_startup()
742 dai->driver->cops->startup) in snd_soc_dai_compr_startup()
743 ret = dai->driver->cops->startup(cstream, dai); in snd_soc_dai_compr_startup()
760 if (dai->driver->cops && in snd_soc_dai_compr_shutdown()
761 dai->driver->cops->shutdown) in snd_soc_dai_compr_shutdown()
762 dai->driver->cops->shutdown(cstream, dai); in snd_soc_dai_compr_shutdown()
774 if (dai->driver->cops && in snd_soc_dai_compr_trigger()
775 dai->driver->cops->trigger) in snd_soc_dai_compr_trigger()
776 ret = dai->driver->cops->trigger(cstream, cmd, dai); in snd_soc_dai_compr_trigger()
788 if (dai->driver->cops && in snd_soc_dai_compr_set_params()
789 dai->driver->cops->set_params) in snd_soc_dai_compr_set_params()
790 ret = dai->driver->cops->set_params(cstream, params, dai); in snd_soc_dai_compr_set_params()
802 if (dai->driver->cops && in snd_soc_dai_compr_get_params()
803 dai->driver->cops->get_params) in snd_soc_dai_compr_get_params()
804 ret = dai->driver->cops->get_params(cstream, params, dai); in snd_soc_dai_compr_get_params()
816 if (dai->driver->cops && in snd_soc_dai_compr_ack()
817 dai->driver->cops->ack) in snd_soc_dai_compr_ack()
818 ret = dai->driver->cops->ack(cstream, bytes, dai); in snd_soc_dai_compr_ack()
830 if (dai->driver->cops && in snd_soc_dai_compr_pointer()
831 dai->driver->cops->pointer) in snd_soc_dai_compr_pointer()
832 ret = dai->driver->cops->pointer(cstream, tstamp, dai); in snd_soc_dai_compr_pointer()
844 if (dai->driver->cops && in snd_soc_dai_compr_set_metadata()
845 dai->driver->cops->set_metadata) in snd_soc_dai_compr_set_metadata()
846 ret = dai->driver->cops->set_metadata(cstream, metadata, dai); in snd_soc_dai_compr_set_metadata()
858 if (dai->driver->cops && in snd_soc_dai_compr_get_metadata()
859 dai->driver->cops->get_metadata) in snd_soc_dai_compr_get_metadata()
860 ret = dai->driver->cops->get_metadata(cstream, metadata, dai); in snd_soc_dai_compr_get_metadata()