From c6ff3fd5d1a2de3c86f5012a0264c95b5f93decb Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Fri, 14 Dec 2018 16:54:51 +0200 Subject: [PATCH] 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 --- src/audio/host.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/audio/host.c b/src/audio/host.c index e65ccdb35..d44ad96d1 100644 --- a/src/audio/host.c +++ b/src/audio/host.c @@ -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 (hd->dma_buffer->free < local_elem->size) { /* 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; } } else { if (hd->dma_buffer->avail < local_elem->size) { /* 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; } }