Lines Matching refs:host_stream

30 	struct hdac_ext_stream *host_stream;  member
460 struct hdac_ext_stream *host_stream; in avs_dai_fe_startup() local
469 host_stream = snd_hdac_ext_stream_assign(bus, substream, HDAC_EXT_STREAM_TYPE_HOST); in avs_dai_fe_startup()
470 if (!host_stream) { in avs_dai_fe_startup()
475 data->host_stream = host_stream; in avs_dai_fe_startup()
492 __func__, hdac_stream(host_stream)->stream_tag, substream); in avs_dai_fe_startup()
513 snd_hdac_ext_stream_release(data->host_stream, HDAC_EXT_STREAM_TYPE_HOST); in avs_dai_fe_shutdown()
524 struct hdac_ext_stream *host_stream; in avs_dai_fe_hw_params() local
531 host_stream = data->host_stream; in avs_dai_fe_hw_params()
533 hdac_stream(host_stream)->bufsize = 0; in avs_dai_fe_hw_params()
534 hdac_stream(host_stream)->period_bytes = 0; in avs_dai_fe_hw_params()
535 hdac_stream(host_stream)->format_val = 0; in avs_dai_fe_hw_params()
544 hdac_stream(host_stream)->stream_tag - 1); in avs_dai_fe_hw_params()
567 struct hdac_ext_stream *host_stream; in __avs_dai_fe_hw_free() local
577 host_stream = data->host_stream; in __avs_dai_fe_hw_free()
585 snd_hdac_stream_cleanup(hdac_stream(host_stream)); in __avs_dai_fe_hw_free()
586 hdac_stream(host_stream)->prepared = false; in __avs_dai_fe_hw_free()
606 struct hdac_ext_stream *host_stream; in avs_dai_fe_prepare() local
612 host_stream = data->host_stream; in avs_dai_fe_prepare()
614 if (hdac_stream(host_stream)->prepared) in avs_dai_fe_prepare()
617 bus = hdac_stream(host_stream)->bus; in avs_dai_fe_prepare()
618 snd_hdac_ext_stream_decouple(bus, data->host_stream, true); in avs_dai_fe_prepare()
619 snd_hdac_stream_reset(hdac_stream(host_stream)); in avs_dai_fe_prepare()
624 ret = snd_hdac_stream_set_params(hdac_stream(host_stream), format_val); in avs_dai_fe_prepare()
628 ret = snd_hdac_stream_setup(hdac_stream(host_stream)); in avs_dai_fe_prepare()
636 hdac_stream(host_stream)->prepared = true; in avs_dai_fe_prepare()
644 struct hdac_ext_stream *host_stream; in avs_dai_fe_trigger() local
650 host_stream = data->host_stream; in avs_dai_fe_trigger()
651 bus = hdac_stream(host_stream)->bus; in avs_dai_fe_trigger()
661 snd_hdac_stream_start(hdac_stream(host_stream)); in avs_dai_fe_trigger()
666 snd_hdac_stream_wait_drsm(hdac_stream(host_stream)); in avs_dai_fe_trigger()
691 snd_hdac_stream_stop(hdac_stream(host_stream)); in avs_dai_fe_trigger()
883 struct hdac_ext_stream *host_stream; in avs_dai_resume_fe_prepare() local
888 host_stream = data->host_stream; in avs_dai_resume_fe_prepare()
889 hstream = hdac_stream(host_stream); in avs_dai_resume_fe_prepare()
890 bus = hdac_stream(host_stream)->bus; in avs_dai_resume_fe_prepare()
901 writel(host_stream->pphcllpl, host_stream->pphc_addr + AZX_REG_PPHCLLPL); in avs_dai_resume_fe_prepare()
902 writel(host_stream->pphcllpu, host_stream->pphc_addr + AZX_REG_PPHCLLPU); in avs_dai_resume_fe_prepare()
903 writel(host_stream->pphcldpl, host_stream->pphc_addr + AZX_REG_PPHCLDPL); in avs_dai_resume_fe_prepare()
904 writel(host_stream->pphcldpu, host_stream->pphc_addr + AZX_REG_PPHCLDPU); in avs_dai_resume_fe_prepare()
926 struct hdac_ext_stream *host_stream; in avs_dai_suspend_fe_hw_free() local
929 host_stream = data->host_stream; in avs_dai_suspend_fe_hw_free()
932 hdac_stream(host_stream)->lpib = snd_hdac_stream_get_pos_lpib(hdac_stream(host_stream)); in avs_dai_suspend_fe_hw_free()
933 host_stream->pphcllpl = readl(host_stream->pphc_addr + AZX_REG_PPHCLLPL); in avs_dai_suspend_fe_hw_free()
934 host_stream->pphcllpu = readl(host_stream->pphc_addr + AZX_REG_PPHCLLPU); in avs_dai_suspend_fe_hw_free()
935 host_stream->pphcldpl = readl(host_stream->pphc_addr + AZX_REG_PPHCLDPL); in avs_dai_suspend_fe_hw_free()
936 host_stream->pphcldpu = readl(host_stream->pphc_addr + AZX_REG_PPHCLDPU); in avs_dai_suspend_fe_hw_free()
1104 struct hdac_ext_stream *host_stream; in avs_component_pointer() local
1108 if (!data->host_stream) in avs_component_pointer()
1111 host_stream = data->host_stream; in avs_component_pointer()
1112 pos = avs_hda_stream_dpib_read(host_stream); in avs_component_pointer()
1114 if (pos >= hdac_stream(host_stream)->bufsize) in avs_component_pointer()