Lines Matching refs:cstream

49 static inline struct hdac_ext_stream *avs_compr_get_host_stream(struct snd_compr_stream *cstream)  in avs_compr_get_host_stream()  argument
51 return cstream->runtime->private_data; in avs_compr_get_host_stream()
54 static int avs_probe_compr_open(struct snd_compr_stream *cstream, struct snd_soc_dai *dai) in avs_probe_compr_open() argument
65 host_stream = snd_hdac_ext_cstream_assign(bus, cstream); in avs_probe_compr_open()
73 cstream->runtime->private_data = host_stream; in avs_probe_compr_open()
78 static int avs_probe_compr_free(struct snd_compr_stream *cstream, struct snd_soc_dai *dai) in avs_probe_compr_free() argument
80 struct hdac_ext_stream *host_stream = avs_compr_get_host_stream(cstream); in avs_probe_compr_free()
114 snd_compr_free_pages(cstream); in avs_probe_compr_free()
120 static int avs_probe_compr_set_params(struct snd_compr_stream *cstream, in avs_probe_compr_set_params() argument
123 struct hdac_ext_stream *host_stream = avs_compr_get_host_stream(cstream); in avs_probe_compr_set_params()
124 struct snd_compr_runtime *rtd = cstream->runtime; in avs_probe_compr_set_params()
134 cstream->dma_buffer.dev.type = SNDRV_DMA_TYPE_DEV_SG; in avs_probe_compr_set_params()
135 cstream->dma_buffer.dev.dev = adev->dev; in avs_probe_compr_set_params()
137 ret = snd_compr_malloc_pages(cstream, rtd->buffer_size); in avs_probe_compr_set_params()
177 static int avs_probe_compr_trigger(struct snd_compr_stream *cstream, int cmd, in avs_probe_compr_trigger() argument
180 struct hdac_ext_stream *host_stream = avs_compr_get_host_stream(cstream); in avs_probe_compr_trigger()
212 static int avs_probe_compr_pointer(struct snd_compr_stream *cstream, in avs_probe_compr_pointer() argument
215 struct hdac_ext_stream *host_stream = avs_compr_get_host_stream(cstream); in avs_probe_compr_pointer()
225 static int avs_probe_compr_copy(struct snd_soc_component *comp, struct snd_compr_stream *cstream, in avs_probe_compr_copy() argument
228 struct snd_compr_runtime *rtd = cstream->runtime; in avs_probe_compr_copy()