Home
last modified time | relevance | path

Searched refs:sink (Results 1 – 25 of 166) sorted by relevance

1234567

/sof-2.7.6/test/cmocka/src/audio/pcm_converter/
Dpcm_float.c77 struct comp_buffer *sink; in _test_pcm_convert() local
85 sink = create_test_sink(NULL, 0, frm_out, 1, outbytes); in _test_pcm_convert()
92 memset(sink->stream.w_ptr, fillval, outbytes); in _test_pcm_convert()
97 fun(&source->stream, 0, &sink->stream, 0, samples); in _test_pcm_convert()
100 assert_int_equal(((uint8_t *)sink->stream.w_ptr)[outbytes - 1], fillval); in _test_pcm_convert()
104 return sink; in _test_pcm_convert()
137 struct comp_buffer *sink; in test_pcm_convert_s16_to_f() local
145 sink = _test_pcm_convert(SOF_IPC_FRAME_S16_LE, SOF_IPC_FRAME_FLOAT, in test_pcm_convert_s16_to_f()
150 read_val = audio_stream_read_frag(&sink->stream, i, sizeof(Tout)); in test_pcm_convert_s16_to_f()
158 free_test_sink(sink); in test_pcm_convert_s16_to_f()
[all …]
/sof-2.7.6/src/include/sof/audio/eq_fir/
Deq_fir.h28 struct audio_stream *sink, int frames, int nch);
31 struct audio_stream *sink, int frames, int nch);
36 struct audio_stream *sink, int frames, int nch);
39 struct audio_stream *sink, int frames, int nch);
44 struct audio_stream *sink, int frames, int nch);
47 struct audio_stream *sink, int frames, int nch);
/sof-2.7.6/src/audio/pcm_converter/
Dpcm_converter.c18 struct audio_stream *sink, uint32_t ooffset, in pcm_convert_as_linear() argument
22 const int s_size_out = audio_stream_sample_bytes(sink); in pcm_convert_as_linear()
27 char *w_ptr = audio_stream_get_frag(sink, sink->w_ptr, ooffset, in pcm_convert_as_linear()
36 if (audio_stream_get_free_samples(sink) < samples + ooffset) in pcm_convert_as_linear()
44 N2 = audio_stream_bytes_without_wrap(sink, w_ptr) >> in pcm_convert_as_linear()
54 w_ptr = audio_stream_wrap(sink, w_ptr + chunk * s_size_out); in pcm_convert_as_linear()
Dpcm_converter_hifi3.c49 uint32_t ioffset, struct audio_stream *sink, in pcm_convert_s16_to_s24() argument
53 ae_int32 *out = audio_stream_write_frag(sink, ooffset, sizeof(int32_t)); in pcm_convert_s16_to_s24()
73 pcm_converter_setup_circular(sink); in pcm_convert_s16_to_s24()
95 pcm_converter_setup_circular(sink); in pcm_convert_s16_to_s24()
120 pcm_converter_setup_circular(sink); in pcm_convert_s16_to_s24()
154 uint32_t ioffset, struct audio_stream *sink, in pcm_convert_s24_to_s16() argument
159 ae_int16x4 *out = audio_stream_write_frag(sink, ooffset, in pcm_convert_s24_to_s16()
185 pcm_converter_setup_circular(sink); in pcm_convert_s24_to_s16()
204 pcm_converter_setup_circular(sink); in pcm_convert_s24_to_s16()
234 pcm_converter_setup_circular(sink); in pcm_convert_s24_to_s16()
[all …]
Dpcm_converter_generic.c31 uint32_t ioffset, struct audio_stream *sink, in pcm_convert_s16_to_s24() argument
41 dst = audio_stream_write_frag_s32(sink, buff_frag + ooffset); in pcm_convert_s16_to_s24()
50 uint32_t ioffset, struct audio_stream *sink, in pcm_convert_s24_to_s16() argument
60 dst = audio_stream_write_frag_s16(sink, buff_frag + ooffset); in pcm_convert_s24_to_s16()
73 uint32_t ioffset, struct audio_stream *sink, in pcm_convert_s16_to_s32() argument
83 dst = audio_stream_write_frag_s32(sink, buff_frag + ooffset); in pcm_convert_s16_to_s32()
92 uint32_t ioffset, struct audio_stream *sink, in pcm_convert_s32_to_s16() argument
102 dst = audio_stream_write_frag_s16(sink, buff_frag + ooffset); in pcm_convert_s32_to_s16()
115 uint32_t ioffset, struct audio_stream *sink, in pcm_convert_s24_to_s32() argument
125 dst = audio_stream_write_frag_s32(sink, buff_frag + ooffset); in pcm_convert_s24_to_s32()
[all …]
/sof-2.7.6/src/audio/mux/
Dmux_generic.c19 static void mux_check_for_wrap(struct audio_stream *sink, in mux_check_for_wrap() argument
30 audio_stream_wrap(sink, lookup->copy_elem[elem].dest); in mux_check_for_wrap()
36 static void demux_check_for_wrap(struct audio_stream *sink, in demux_check_for_wrap() argument
45 audio_stream_wrap(sink, lookup->copy_elem[elem].dest); in demux_check_for_wrap()
54 struct audio_stream *sink, in demux_calc_frames_without_wrap_s16() argument
69 min_frames = audio_stream_frames_without_wrap(sink, ptr); in demux_calc_frames_without_wrap_s16()
81 struct audio_stream *sink, in mux_calc_frames_without_wrap_s16() argument
98 min_frames = audio_stream_frames_without_wrap(sink, ptr); in mux_calc_frames_without_wrap_s16()
114 struct audio_stream *sink, in mux_init_look_up_pointers_s16() argument
129 lookup->copy_elem[elem].dest = (int16_t *)sink->w_ptr + in mux_init_look_up_pointers_s16()
[all …]
/sof-2.7.6/src/audio/eq_fir/
Deq_fir_hifi3.c25 struct audio_stream *sink, int frames, int nch) in eq_fir_2x_s32() argument
31 ae_int32 *snk = (ae_int32 *)sink->w_ptr; in eq_fir_2x_s32()
58 fir_comp_setup_circular(sink); in eq_fir_2x_s32()
75 fir_comp_setup_circular(sink); in eq_fir_2x_s32()
84 struct audio_stream *sink, int frames, int nch) in eq_fir_s32() argument
92 ae_int32 *snk = (ae_int32 *)sink->w_ptr; in eq_fir_s32()
118 fir_comp_setup_circular(sink); in eq_fir_s32()
132 fir_comp_setup_circular(sink); in eq_fir_s32()
141 struct audio_stream *sink, int frames, int nch) in eq_fir_2x_s24() argument
149 ae_int32 *snk = (ae_int32 *)sink->w_ptr; in eq_fir_2x_s24()
[all …]
Deq_fir_generic.c21 struct audio_stream *sink, int frames, int nch) in eq_fir_s16() argument
36 y = audio_stream_write_frag_s16(sink, idx); in eq_fir_s16()
47 struct audio_stream *sink, int frames, int nch) in eq_fir_s24() argument
62 y = audio_stream_write_frag_s32(sink, idx); in eq_fir_s24()
73 struct audio_stream *sink, int frames, int nch) in eq_fir_s32() argument
87 y = audio_stream_write_frag_s32(sink, idx); in eq_fir_s32()
Deq_fir_hifi2ep.c26 struct audio_stream *sink, int frames, int nch) in eq_fir_2x_s32() argument
30 int32_t *snk = (int32_t *)sink->w_ptr; in eq_fir_2x_s32()
66 struct audio_stream *sink, int frames, int nch) in eq_fir_s32() argument
70 int32_t *snk = (int32_t *)sink->w_ptr; in eq_fir_s32()
101 struct audio_stream *sink, int frames, int nch) in eq_fir_2x_s24() argument
105 int32_t *snk = (int32_t *)sink->w_ptr; in eq_fir_2x_s24()
145 struct audio_stream *sink, int frames, int nch) in eq_fir_s24() argument
149 int32_t *snk = (int32_t *)sink->w_ptr; in eq_fir_s24()
182 struct audio_stream *sink, int frames, int nch) in eq_fir_2x_s16() argument
186 int16_t *snk = (int16_t *)sink->w_ptr; in eq_fir_2x_s16()
[all …]
/sof-2.7.6/src/audio/volume/
Dvolume_generic.c54 static void vol_s24_to_s24(struct comp_dev *dev, struct audio_stream *sink, in vol_s24_to_s24() argument
66 for (channel = 0; channel < sink->channels; channel++) { in vol_s24_to_s24()
68 dest = audio_stream_write_frag_s32(sink, buff_frag); in vol_s24_to_s24()
89 static void vol_s32_to_s32(struct comp_dev *dev, struct audio_stream *sink, in vol_s32_to_s32() argument
101 for (channel = 0; channel < sink->channels; channel++) { in vol_s32_to_s32()
103 dest = audio_stream_write_frag_s32(sink, buff_frag); in vol_s32_to_s32()
126 static void vol_s16_to_s16(struct comp_dev *dev, struct audio_stream *sink, in vol_s16_to_s16() argument
138 for (channel = 0; channel < sink->channels; channel++) { in vol_s16_to_s16()
140 dest = audio_stream_write_frag_s16(sink, buff_frag); in vol_s16_to_s16()
Dvolume_hifi3.c43 static void vol_s24_to_s24_s32(struct comp_dev *dev, struct audio_stream *sink, in vol_s24_to_s24_s32() argument
56 ae_int32 *out = (ae_int32 *)sink->w_ptr; in vol_s24_to_s24_s32()
61 for (channel = 0; channel < sink->channels; channel++) { in vol_s24_to_s24_s32()
87 vol_setup_circular(sink); in vol_s24_to_s24_s32()
104 static void vol_s32_to_s24_s32(struct comp_dev *dev, struct audio_stream *sink, in vol_s32_to_s24_s32() argument
117 ae_int32 *out = (ae_int32 *)sink->w_ptr; in vol_s32_to_s24_s32()
122 for (channel = 0; channel < sink->channels; channel++) { in vol_s32_to_s24_s32()
148 vol_setup_circular(sink); in vol_s32_to_s24_s32()
165 static void vol_s16_to_s16(struct comp_dev *dev, struct audio_stream *sink, in vol_s16_to_s16() argument
176 ae_int16 *out = (ae_int16 *)sink->w_ptr; in vol_s16_to_s16()
[all …]
/sof-2.7.6/src/audio/
Dmixer.c57 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()
[all …]
Dkpb.c96 static void kpb_copy_samples(struct comp_buffer *sink,
99 static void kpb_drain_samples(void *source, struct audio_stream *sink,
102 uint32_t start, void *sink, size_t size,
442 struct comp_buffer *sink; in kpb_prepare() local
518 sink = container_of(blist, struct comp_buffer, source_list); in kpb_prepare()
520 if (!sink->sink) { in kpb_prepare()
524 if (dev_comp_type(sink->sink) == SOF_COMP_SELECTOR) { in kpb_prepare()
526 kpb->sel_sink = sink; in kpb_prepare()
527 } else if (dev_comp_type(sink->sink) == SOF_COMP_HOST) { in kpb_prepare()
529 kpb->host_sink = sink; in kpb_prepare()
[all …]
/sof-2.7.6/tools/topology/topology2/include/pipelines/
Dvolume-demux-playback.conf82 sink buffer..1
87 sink pga..1
92 sink buffer..2
97 sink muxdemux..1
102 sink buffer..3
Deq-iir-volume-capture.conf84 sink host..capture
89 sink buffer..1
94 sink pga..1
99 sink buffer..2
104 sink eqiir..1
Dvolume-playback.conf76 sink "buffer..1"
81 sink "pga..1"
86 sink "buffer..2"
/sof-2.7.6/test/cmocka/src/audio/volume/
Dvolume_process.c34 struct comp_buffer *sink; member
36 void (*verify)(struct comp_dev *dev, struct comp_buffer *sink, struct comp_buffer *source);
46 void (*verify)(struct comp_dev *dev, struct comp_buffer *sink, struct comp_buffer *source);
82 vol_state->sink = create_test_sink(vol_state->dev, 0, parameters->sink_format, in setup()
113 free_test_sink(vol_state->sink); in teardown()
136 static void verify_s16_to_s16(struct comp_dev *dev, struct comp_buffer *sink, in verify_s16_to_s16() argument
141 const int16_t *dst = (int16_t *)sink->stream.w_ptr; in verify_s16_to_s16()
143 int channels = sink->stream.channels; in verify_s16_to_s16()
149 for (i = 0; i < sink->stream.size / sizeof(uint16_t); i += channels) { in verify_s16_to_s16()
186 struct comp_buffer *sink, in verify_s24_to_s24_s32() argument
[all …]
/sof-2.7.6/test/cmocka/src/audio/selector/
Dselector_test.c20 struct comp_buffer *sink; member
22 void (*verify)(struct comp_dev *dev, struct audio_stream *sink,
34 void (*verify)(struct comp_dev *dev, struct audio_stream *sink,
72 sel_state->sink = create_test_sink(sel_state->dev, 0, parameters->sink_format, in setup()
99 free_test_sink(sel_state->sink); in teardown()
122 struct audio_stream *sink, in verify_s16le_Xch_to_1ch() argument
127 const uint16_t *dst = (uint16_t *)sink->w_ptr; in verify_s16le_Xch_to_1ch()
147 struct audio_stream *sink, in verify_s16le_2ch_to_2ch() argument
151 const uint16_t *dst = (uint16_t *)sink->w_ptr; in verify_s16le_2ch_to_2ch()
157 for (i = 0; i < sink->size / sizeof(uint16_t); i += channels) { in verify_s16le_2ch_to_2ch()
[all …]
/sof-2.7.6/src/include/sof/audio/
Dpcm_converter.h46 uint32_t ioffset, struct audio_stream *sink,
61 enum sof_ipc_frame sink; /**< sink frame format */ member
85 if (out != pcm_func_map[i].sink) in pcm_get_conversion_function()
98 enum sof_ipc_frame sink; /**< sink frame container format */ member
129 if (out_bits != pcm_func_vc_map[i].sink) in pcm_get_conversion_vc_function()
152 struct audio_stream *sink, uint32_t ooffset,
/sof-2.7.6/test/cmocka/src/audio/mux/
Dmux_get_processing_function.c23 struct comp_buffer *sink; member
57 td->sink = create_test_sink(td->dev, 0, 0, 0, 4); in setup_test_case()
68 free_test_sink(td->sink); in teardown_test_case()
82 td->sink->stream.frame_fmt = SOF_IPC_FRAME_FLOAT; in test_mux_get_processing_function_invalid_float()
96 td->sink->stream.frame_fmt = SOF_IPC_FRAME_S16_LE; in test_mux_get_processing_function_valid_s16le()
110 td->sink->stream.frame_fmt = SOF_IPC_FRAME_S24_4LE; in test_mux_get_processing_function_valid_s24_4le()
124 td->sink->stream.frame_fmt = SOF_IPC_FRAME_S32_LE; in test_mux_get_processing_function_valid_s32le()
/sof-2.7.6/src/audio/selector/
Dselector_generic.c29 static void sel_s16le_1ch(struct comp_dev *dev, struct audio_stream *sink, in sel_s16le_1ch() argument
41 dest = audio_stream_write_frag_s16(sink, j++); in sel_s16le_1ch()
53 static void sel_s16le_nch(struct comp_dev *dev, struct audio_stream *sink, in sel_s16le_nch() argument
67 dest = audio_stream_write_frag_s16(sink, j); in sel_s16le_nch()
83 static void sel_s32le_1ch(struct comp_dev *dev, struct audio_stream *sink, in sel_s32le_1ch() argument
95 dest = audio_stream_write_frag_s32(sink, j++); in sel_s32le_1ch()
107 static void sel_s32le_nch(struct comp_dev *dev, struct audio_stream *sink, in sel_s32le_nch() argument
121 dest = audio_stream_write_frag_s32(sink, j); in sel_s32le_nch()
/sof-2.7.6/src/audio/smart_amp/
Dsmart_amp_generic.c28 const struct audio_stream *sink, in smart_amp_s16_ff_default() argument
44 y = audio_stream_read_frag_s16(sink, idx); in smart_amp_s16_ff_default()
56 const struct audio_stream *sink, in smart_amp_s24_ff_default() argument
72 y = audio_stream_read_frag_s32(sink, idx); in smart_amp_s24_ff_default()
84 const struct audio_stream *sink, in smart_amp_s32_ff_default() argument
99 y = audio_stream_read_frag_s32(sink, idx); in smart_amp_s32_ff_default()
110 const struct audio_stream *sink, in smart_amp_s16_fb_default() argument
134 const struct audio_stream *sink, in smart_amp_s24_fb_default() argument
158 const struct audio_stream *sink, in smart_amp_s32_fb_default() argument
/sof-2.7.6/src/audio/tdfb/
Dtdfb_hifi3.c21 struct audio_stream *sink, int frames) in tdfb_fir_s16() argument
29 ae_int16 *y = (ae_int16 *)sink->w_ptr; in tdfb_fir_s16()
38 int out_nch = sink->channels; in tdfb_fir_s16()
81 fir_comp_setup_circular(sink); in tdfb_fir_s16()
93 struct audio_stream *sink, int frames) in tdfb_fir_s24() argument
101 ae_int32 *y = (ae_int32 *)sink->w_ptr; in tdfb_fir_s24()
110 int out_nch = sink->channels; in tdfb_fir_s24()
151 fir_comp_setup_circular(sink); in tdfb_fir_s24()
164 struct audio_stream *sink, int frames) in tdfb_fir_s32() argument
172 ae_int32 *y = (ae_int32 *)sink->w_ptr; in tdfb_fir_s32()
[all …]
/sof-2.7.6/tools/topology/topology2/
Dcavs-gain-hda.conf324 sink 'gain.1.1'
328 sink 'copier.HDA.1.0'
332 sink 'gain.2.1'
336 sink 'copier.host.2.1'
340 sink 'gain.3.1'
344 sink 'copier.HDA.3.0'
348 sink 'gain.4.1'
352 sink 'copier.host.3.1'
356 sink 'gain.5.1'
360 sink 'copier.HDA.5.0'
[all …]
/sof-2.7.6/src/include/sof/audio/tdfb/
Dtdfb_comp.h78 struct audio_stream *sink,
85 struct audio_stream *sink, int frames);
91 struct audio_stream *sink, int frames);
97 struct audio_stream *sink, int frames);

1234567