Skip to content

Commit cfc2d45

Browse files
committed
audio: comp_buffer: notify probes on sink commit
Use comp_update_buffer_produce() when committing data through the sink API instead of producing directly on the audio stream. This restores the probe produce callback for buffers written via sink_commit_buffer(). Without it, probe extraction points attached to buffers filled by modules converted to the sink/source API received no data. Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
1 parent 29bef05 commit cfc2d45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/audio/buffers/comp_buffer.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static int comp_buffer_commit_buffer(struct sof_sink *sink, size_t commit_size)
9494

9595
if (commit_size) {
9696
buffer_stream_writeback(buffer, commit_size);
97-
audio_stream_produce(&buffer->stream, commit_size);
97+
comp_update_buffer_produce(buffer, commit_size);
9898
}
9999

100100
return 0;

0 commit comments

Comments
 (0)