Lines Matching refs:sink

57 	void (*mix_func)(struct comp_dev *dev, struct audio_stream *sink,
64 static void mix_n_s16(struct comp_dev *dev, struct audio_stream *sink, in mix_n_s16() argument
77 for (channel = 0; channel < sink->channels; channel++) { in mix_n_s16()
86 dest = audio_stream_write_frag_s16(sink, frag); in mix_n_s16()
99 static void mix_n_s32(struct comp_dev *dev, struct audio_stream *sink, in mix_n_s32() argument
112 for (channel = 0; channel < sink->channels; channel++) { in mix_n_s32()
121 dest = audio_stream_write_frag_s32(sink, frag); in mix_n_s32()
273 struct comp_buffer *sink; in mixer_copy() local
287 sink = list_first_item(&dev->bsink_list, struct comp_buffer, in mixer_copy()
311 buffer_lock(sink, &sink_flags); in mixer_copy()
312 free_frames = audio_stream_get_free_frames(&sink->stream); in mixer_copy()
314 sink_bytes = frames * audio_stream_frame_bytes(&sink->stream); in mixer_copy()
315 buffer_unlock(sink, sink_flags); in mixer_copy()
317 if (!audio_stream_set_zero(&sink->stream, sink_bytes)) { in mixer_copy()
318 buffer_writeback(sink, sink_bytes); in mixer_copy()
319 comp_update_buffer_produce(sink, sink_bytes); in mixer_copy()
325 buffer_lock(sink, &sink_flags); in mixer_copy()
332 &sink->stream); in mixer_copy()
337 buffer_unlock(sink, sink_flags); in mixer_copy()
343 sink_bytes = frames * audio_stream_frame_bytes(&sink->stream); in mixer_copy()
351 md->mix_func(dev, &sink->stream, sources_stream, num_mix_sources, in mixer_copy()
353 buffer_writeback(sink, sink_bytes); in mixer_copy()
360 comp_update_buffer_produce(sink, sink_bytes); in mixer_copy()
401 struct comp_buffer *sink; in mixer_prepare() local
407 sink = list_first_item(&dev->bsink_list, struct comp_buffer, in mixer_prepare()
413 switch (sink->stream.frame_fmt) { in mixer_prepare()
548 struct comp_dev *sink; in mixin_bind() local
559 sink = ipc4_get_comp_dev(sink_id); in mixin_bind()
560 list_for_item(blist, &sink->bsource_list) { in mixin_bind()
563 pipeline_disconnect(sink, source_buf, PPL_CONN_DIR_BUFFER_TO_COMP); in mixin_bind()
572 pipeline_connect(sink, source_buf, PPL_CONN_DIR_BUFFER_TO_COMP); in mixin_bind()