mirror of https://github.com/thesofproject/sof.git
src: return number of frames produced in copy
Return the number of frames we produce in the copy() function. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
parent
186806d11e
commit
e0f65a2b82
|
@ -535,9 +535,12 @@ static int src_copy(struct comp_dev *dev)
|
|||
if (consumed > 0)
|
||||
comp_update_buffer_consume(source, consumed);
|
||||
|
||||
if (produced > 0)
|
||||
if (produced > 0) {
|
||||
comp_update_buffer_produce(sink, produced);
|
||||
return cd->param.blk_out;
|
||||
}
|
||||
|
||||
/* produced no data */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue