smart_amp_maxim_dsm: change logging level for xrun

When overrun happens for maxim_dsm_ff_proc() or maxim_dsm_fb_proc(), it
is not fatal, change the logging level to warning to avoid flooding the
memory windows.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
This commit is contained in:
Keyon Jie 2021-01-21 17:03:01 +08:00 committed by Liam Girdwood
parent 7fb6d5f0f3
commit 385cf89c76
1 changed files with 5 additions and 5 deletions

View File

@ -322,9 +322,9 @@ static void maxim_dsm_ff_proc(struct smart_amp_mod_struct_t *hspk,
in, nsamples * szsample);
*w_ptr += nsamples;
} else {
comp_err(dev,
"[DSM] Feed Forward buffer overflow. (w_ptr : %d + %d > %d)",
*w_ptr, nsamples, DSM_FF_BUF_DB_SZ);
comp_warn(dev,
"[DSM] Feed Forward buffer overflow. (w_ptr : %d + %d > %d)",
*w_ptr, nsamples, DSM_FF_BUF_DB_SZ);
return;
}
@ -442,8 +442,8 @@ static void maxim_dsm_fb_proc(struct smart_amp_mod_struct_t *hspk,
in, nsamples * szsample);
*w_ptr += nsamples;
} else {
comp_err(dev, "[DSM] Feedback buffer overflow. w_ptr : %d",
*w_ptr);
comp_warn(dev, "[DSM] Feedback buffer overflow. w_ptr : %d",
*w_ptr);
return;
}
/* Run DSM Feedback process if the buffer is ready */