Lines Matching refs:driver

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