mirror of https://github.com/thesofproject/sof.git
Host: Reduce trace verbosity for a non-warn type of event
This patch prevents the host component from flooding the trace when audio playback or capture rate is other than 48 kHz. It only means that the host sink buffer still has samples unconsumed by the downstream component. This is not a warning so it's better to change it to tracev_host(). Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
parent
a2e6f82ef8
commit
c6ff3fd5d1
|
@ -678,14 +678,14 @@ static int host_copy_int(struct comp_dev *dev, bool preload_run)
|
||||||
if (dev->params.direction == SOF_IPC_STREAM_PLAYBACK) {
|
if (dev->params.direction == SOF_IPC_STREAM_PLAYBACK) {
|
||||||
if (hd->dma_buffer->free < local_elem->size) {
|
if (hd->dma_buffer->free < local_elem->size) {
|
||||||
/* buffer is enough avail, just return. */
|
/* buffer is enough avail, just return. */
|
||||||
trace_host("host_copy_int(), buffer is enough avail");
|
tracev_host("host_copy_int(), buffer is enough avail");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (hd->dma_buffer->avail < local_elem->size) {
|
if (hd->dma_buffer->avail < local_elem->size) {
|
||||||
/* buffer is enough empty, just return. */
|
/* buffer is enough empty, just return. */
|
||||||
trace_host("host_copy_int(), buffer is enough empty");
|
tracev_host("host_copy_int(), buffer is enough empty");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue