codecs: reduce error log rate

Huge volume of log prints out at error. Reduce the redundant log.

Change-Id: I761d5953614d039b7a725926c38adee1beeeec41
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
This commit is contained in:
Xiaojun Sang
2019-01-21 14:31:03 +08:00
parent 914aaa0a41
commit 72cea1a23c
14 changed files with 170 additions and 31 deletions

View File

@@ -1,7 +1,17 @@
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (C) 2008 Google, Inc.
* Copyright (C) 2008 HTC Corporation
* Copyright (c) 2009-2018, The Linux Foundation. All rights reserved.
* Copyright (c) 2009-2019, The Linux Foundation. All rights reserved.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#include <linux/module.h>
@@ -1335,7 +1345,7 @@ int audio_aio_open(struct q6audio_aio *audio, struct file *file)
audio->drv_ops.in_flush = audio_aio_async_in_flush;
q6asm_set_io_mode(audio->ac, ASYNC_IO_MODE);
} else {
pr_err("%s[%pK]:SIO interface not supported\n",
pr_err_ratelimited("%s[%pK]:SIO interface not supported\n",
__func__, audio);
rc = -EACCES;
goto fail;
@@ -1548,7 +1558,7 @@ static long audio_aio_shared_ioctl(struct file *file, unsigned int cmd,
break;
}
default:
pr_err("%s: Unknown ioctl cmd = %d", __func__, cmd);
pr_err_ratelimited("%s: Unknown ioctl cmd = %d", __func__, cmd);
rc = -EINVAL;
}
return rc;