From 3ac8fc2bff19127c54f1ee02bbd8a5de605e371a Mon Sep 17 00:00:00 2001 From: Aditya Bavanari Date: Fri, 31 Jan 2020 17:34:54 +0530 Subject: [PATCH] dsp: Make error as debug log when CPU buffer not available When CPU buffer is not available, continuous error log prints leads to excessive logging. Make the error as debug log to avoid this. Change-Id: Ic26006b4975fbe3d5467203d145a517c0067c296 Signed-off-by: Aditya Bavanari --- dsp/q6asm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsp/q6asm.c b/dsp/q6asm.c index 11b307a18439..08efe1acd9fc 100644 --- a/dsp/q6asm.c +++ b/dsp/q6asm.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2012-2019, The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved. * Author: Brian Swetland * * This software is licensed under the terms of the GNU General Public @@ -2552,7 +2552,7 @@ void *q6asm_is_cpu_buf_avail(int dir, struct audio_client *ac, uint32_t *size, /* To make it more robust, we could loop and get the * next avail buf, its risky though */ - pr_err("%s: Next buf idx[0x%x] not available, dir[%d]\n", + pr_debug("%s: Next buf idx[0x%x] not available, dir[%d]\n", __func__, idx, dir); mutex_unlock(&port->lock); return NULL;