• Home
  • Raw
  • Download

Lines Matching refs:ops

477 	if (cpu_dai->driver->ops && cpu_dai->driver->ops->startup) {  in soc_pcm_open()
478 ret = cpu_dai->driver->ops->startup(substream, cpu_dai); in soc_pcm_open()
486 if (platform->driver->ops && platform->driver->ops->open) { in soc_pcm_open()
487 ret = platform->driver->ops->open(substream); in soc_pcm_open()
497 if (codec_dai->driver->ops && codec_dai->driver->ops->startup) { in soc_pcm_open()
498 ret = codec_dai->driver->ops->startup(substream, in soc_pcm_open()
514 if (rtd->dai_link->ops && rtd->dai_link->ops->startup) { in soc_pcm_open()
515 ret = rtd->dai_link->ops->startup(substream); in soc_pcm_open()
588 if (rtd->dai_link->ops && rtd->dai_link->ops->shutdown) in soc_pcm_open()
589 rtd->dai_link->ops->shutdown(substream); in soc_pcm_open()
597 if (codec_dai->driver->ops->shutdown) in soc_pcm_open()
598 codec_dai->driver->ops->shutdown(substream, codec_dai); in soc_pcm_open()
601 if (platform->driver->ops && platform->driver->ops->close) in soc_pcm_open()
602 platform->driver->ops->close(substream); in soc_pcm_open()
605 if (cpu_dai->driver->ops->shutdown) in soc_pcm_open()
606 cpu_dai->driver->ops->shutdown(substream, cpu_dai); in soc_pcm_open()
686 if (cpu_dai->driver->ops->shutdown) in soc_pcm_close()
687 cpu_dai->driver->ops->shutdown(substream, cpu_dai); in soc_pcm_close()
691 if (codec_dai->driver->ops->shutdown) in soc_pcm_close()
692 codec_dai->driver->ops->shutdown(substream, codec_dai); in soc_pcm_close()
695 if (rtd->dai_link->ops && rtd->dai_link->ops->shutdown) in soc_pcm_close()
696 rtd->dai_link->ops->shutdown(substream); in soc_pcm_close()
698 if (platform->driver->ops && platform->driver->ops->close) in soc_pcm_close()
699 platform->driver->ops->close(substream); in soc_pcm_close()
754 if (rtd->dai_link->ops && rtd->dai_link->ops->prepare) { in soc_pcm_prepare()
755 ret = rtd->dai_link->ops->prepare(substream); in soc_pcm_prepare()
763 if (platform->driver->ops && platform->driver->ops->prepare) { in soc_pcm_prepare()
764 ret = platform->driver->ops->prepare(substream); in soc_pcm_prepare()
774 if (codec_dai->driver->ops && codec_dai->driver->ops->prepare) { in soc_pcm_prepare()
775 ret = codec_dai->driver->ops->prepare(substream, in soc_pcm_prepare()
786 if (cpu_dai->driver->ops && cpu_dai->driver->ops->prepare) { in soc_pcm_prepare()
787 ret = cpu_dai->driver->ops->prepare(substream, cpu_dai); in soc_pcm_prepare()
832 if (dai->driver->ops && dai->driver->ops->hw_params) { in soc_dai_hw_params()
833 ret = dai->driver->ops->hw_params(substream, params, dai); in soc_dai_hw_params()
863 if (rtd->dai_link->ops && rtd->dai_link->ops->hw_params) { in soc_pcm_hw_params()
864 ret = rtd->dai_link->ops->hw_params(substream, params); in soc_pcm_hw_params()
921 if (platform->driver->ops && platform->driver->ops->hw_params) { in soc_pcm_hw_params()
922 ret = platform->driver->ops->hw_params(substream, params); in soc_pcm_hw_params()
941 if (cpu_dai->driver->ops && cpu_dai->driver->ops->hw_free) in soc_pcm_hw_params()
942 cpu_dai->driver->ops->hw_free(substream, cpu_dai); in soc_pcm_hw_params()
950 if (codec_dai->driver->ops && codec_dai->driver->ops->hw_free) in soc_pcm_hw_params()
951 codec_dai->driver->ops->hw_free(substream, codec_dai); in soc_pcm_hw_params()
955 if (rtd->dai_link->ops && rtd->dai_link->ops->hw_free) in soc_pcm_hw_params()
956 rtd->dai_link->ops->hw_free(substream); in soc_pcm_hw_params()
1001 if (rtd->dai_link->ops && rtd->dai_link->ops->hw_free) in soc_pcm_hw_free()
1002 rtd->dai_link->ops->hw_free(substream); in soc_pcm_hw_free()
1005 if (platform->driver->ops && platform->driver->ops->hw_free) in soc_pcm_hw_free()
1006 platform->driver->ops->hw_free(substream); in soc_pcm_hw_free()
1011 if (codec_dai->driver->ops && codec_dai->driver->ops->hw_free) in soc_pcm_hw_free()
1012 codec_dai->driver->ops->hw_free(substream, codec_dai); in soc_pcm_hw_free()
1015 if (cpu_dai->driver->ops && cpu_dai->driver->ops->hw_free) in soc_pcm_hw_free()
1016 cpu_dai->driver->ops->hw_free(substream, cpu_dai); in soc_pcm_hw_free()
1032 if (codec_dai->driver->ops && codec_dai->driver->ops->trigger) { in soc_pcm_trigger()
1033 ret = codec_dai->driver->ops->trigger(substream, in soc_pcm_trigger()
1040 if (platform->driver->ops && platform->driver->ops->trigger) { in soc_pcm_trigger()
1041 ret = platform->driver->ops->trigger(substream, cmd); in soc_pcm_trigger()
1046 if (cpu_dai->driver->ops && cpu_dai->driver->ops->trigger) { in soc_pcm_trigger()
1047 ret = cpu_dai->driver->ops->trigger(substream, cmd, cpu_dai); in soc_pcm_trigger()
1052 if (rtd->dai_link->ops && rtd->dai_link->ops->trigger) { in soc_pcm_trigger()
1053 ret = rtd->dai_link->ops->trigger(substream, cmd); in soc_pcm_trigger()
1071 if (codec_dai->driver->ops && in soc_pcm_bespoke_trigger()
1072 codec_dai->driver->ops->bespoke_trigger) { in soc_pcm_bespoke_trigger()
1073 ret = codec_dai->driver->ops->bespoke_trigger(substream, in soc_pcm_bespoke_trigger()
1080 if (cpu_dai->driver->ops && cpu_dai->driver->ops->bespoke_trigger) { in soc_pcm_bespoke_trigger()
1081 ret = cpu_dai->driver->ops->bespoke_trigger(substream, cmd, cpu_dai); in soc_pcm_bespoke_trigger()
1104 if (platform->driver->ops && platform->driver->ops->pointer) in soc_pcm_pointer()
1105 offset = platform->driver->ops->pointer(substream); in soc_pcm_pointer()
1107 if (cpu_dai->driver->ops && cpu_dai->driver->ops->delay) in soc_pcm_pointer()
1108 delay += cpu_dai->driver->ops->delay(substream, cpu_dai); in soc_pcm_pointer()
1112 if (codec_dai->driver->ops && codec_dai->driver->ops->delay) in soc_pcm_pointer()
1114 codec_dai->driver->ops->delay(substream, in soc_pcm_pointer()
2344 if (platform->driver->ops && platform->driver->ops->ioctl) in soc_pcm_ioctl()
2345 return platform->driver->ops->ioctl(substream, cmd, arg); in soc_pcm_ioctl()
2622 if (drv->ops && drv->ops->digital_mute && in soc_dpcm_be_digital_mute()
2624 drv->ops->digital_mute(dai, mute); in soc_dpcm_be_digital_mute()
2771 rtd->ops.open = dpcm_fe_dai_open; in soc_new_pcm()
2772 rtd->ops.hw_params = dpcm_fe_dai_hw_params; in soc_new_pcm()
2773 rtd->ops.prepare = dpcm_fe_dai_prepare; in soc_new_pcm()
2774 rtd->ops.trigger = dpcm_fe_dai_trigger; in soc_new_pcm()
2775 rtd->ops.hw_free = dpcm_fe_dai_hw_free; in soc_new_pcm()
2776 rtd->ops.close = dpcm_fe_dai_close; in soc_new_pcm()
2777 rtd->ops.pointer = soc_pcm_pointer; in soc_new_pcm()
2778 rtd->ops.ioctl = soc_pcm_ioctl; in soc_new_pcm()
2780 rtd->ops.open = soc_pcm_open; in soc_new_pcm()
2781 rtd->ops.hw_params = soc_pcm_hw_params; in soc_new_pcm()
2782 rtd->ops.prepare = soc_pcm_prepare; in soc_new_pcm()
2783 rtd->ops.trigger = soc_pcm_trigger; in soc_new_pcm()
2784 rtd->ops.hw_free = soc_pcm_hw_free; in soc_new_pcm()
2785 rtd->ops.close = soc_pcm_close; in soc_new_pcm()
2786 rtd->ops.pointer = soc_pcm_pointer; in soc_new_pcm()
2787 rtd->ops.ioctl = soc_pcm_ioctl; in soc_new_pcm()
2790 if (platform->driver->ops) { in soc_new_pcm()
2791 rtd->ops.ack = platform->driver->ops->ack; in soc_new_pcm()
2792 rtd->ops.copy_user = platform->driver->ops->copy_user; in soc_new_pcm()
2793 rtd->ops.copy_kernel = platform->driver->ops->copy_kernel; in soc_new_pcm()
2794 rtd->ops.fill_silence = platform->driver->ops->fill_silence; in soc_new_pcm()
2795 rtd->ops.page = platform->driver->ops->page; in soc_new_pcm()
2796 rtd->ops.mmap = platform->driver->ops->mmap; in soc_new_pcm()
2800 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &rtd->ops); in soc_new_pcm()
2803 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &rtd->ops); in soc_new_pcm()