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:
@@ -3,7 +3,17 @@
|
|||||||
*
|
*
|
||||||
* Copyright (C) 2008 Google, Inc.
|
* Copyright (C) 2008 Google, Inc.
|
||||||
* Copyright (C) 2008 HTC Corporation
|
* Copyright (C) 2008 HTC Corporation
|
||||||
* Copyright (c) 2010-2018, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2010-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/msm_audio_aac.h>
|
#include <linux/msm_audio_aac.h>
|
||||||
@@ -383,7 +393,7 @@ static int audio_open(struct inode *inode, struct file *file)
|
|||||||
}
|
}
|
||||||
rc = audio_aio_open(audio, file);
|
rc = audio_aio_open(audio, file);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
pr_err("%s: audio_aio_open rc=%d\n",
|
pr_err_ratelimited("%s: audio_aio_open rc=%d\n",
|
||||||
__func__, rc);
|
__func__, rc);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,15 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
/*
|
/* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
|
||||||
* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License version 2 and
|
||||||
|
* only version 2 as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* 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/types.h>
|
#include <linux/types.h>
|
||||||
@@ -290,7 +299,7 @@ static int audio_open(struct inode *inode, struct file *file)
|
|||||||
}
|
}
|
||||||
rc = audio_aio_open(audio, file);
|
rc = audio_aio_open(audio, file);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
pr_err("%s: audio_aio_open rc=%d\n",
|
pr_err_ratelimited("%s: audio_aio_open rc=%d\n",
|
||||||
__func__, rc);
|
__func__, rc);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
@@ -3,7 +3,17 @@
|
|||||||
*
|
*
|
||||||
* Copyright (C) 2008 Google, Inc.
|
* Copyright (C) 2008 Google, Inc.
|
||||||
* Copyright (C) 2008 HTC Corporation
|
* Copyright (C) 2008 HTC Corporation
|
||||||
* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2011-2017, 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/types.h>
|
#include <linux/types.h>
|
||||||
@@ -137,7 +147,7 @@ static int audio_open(struct inode *inode, struct file *file)
|
|||||||
}
|
}
|
||||||
rc = audio_aio_open(audio, file);
|
rc = audio_aio_open(audio, file);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
pr_err("%s: audio_aio_open rc=%d\n",
|
pr_err_ratelimited("%s: audio_aio_open rc=%d\n",
|
||||||
__func__, rc);
|
__func__, rc);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
@@ -178,7 +188,7 @@ static int audio_open(struct inode *inode, struct file *file)
|
|||||||
if (IS_ERR(audio->dentry))
|
if (IS_ERR(audio->dentry))
|
||||||
pr_debug("debugfs_create_file failed\n");
|
pr_debug("debugfs_create_file failed\n");
|
||||||
#endif
|
#endif
|
||||||
pr_info("%s:amrnb decoder open success, session_id = %d\n", __func__,
|
pr_info_ratelimited("%s:amrnb decoder open success, session_id = %d\n", __func__,
|
||||||
audio->ac->session);
|
audio->ac->session);
|
||||||
return rc;
|
return rc;
|
||||||
fail:
|
fail:
|
||||||
|
@@ -3,7 +3,17 @@
|
|||||||
*
|
*
|
||||||
* Copyright (C) 2008 Google, Inc.
|
* Copyright (C) 2008 Google, Inc.
|
||||||
* Copyright (C) 2008 HTC Corporation
|
* Copyright (C) 2008 HTC Corporation
|
||||||
* Copyright (c) 2010-2017, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2010-2017, 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/msm_audio_amrwbplus.h>
|
#include <linux/msm_audio_amrwbplus.h>
|
||||||
#include <linux/compat.h>
|
#include <linux/compat.h>
|
||||||
@@ -313,7 +323,7 @@ static int audio_open(struct inode *inode, struct file *file)
|
|||||||
}
|
}
|
||||||
rc = audio_aio_open(audio, file);
|
rc = audio_aio_open(audio, file);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
pr_err("%s: audio_aio_open rc=%d\n",
|
pr_err_ratelimited("%s: audio_aio_open rc=%d\n",
|
||||||
__func__, rc);
|
__func__, rc);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,15 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
/* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
|
/* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License version 2 and
|
||||||
|
* only version 2 as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* 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/types.h>
|
#include <linux/types.h>
|
||||||
@@ -271,7 +281,7 @@ static int audio_open(struct inode *inode, struct file *file)
|
|||||||
}
|
}
|
||||||
rc = audio_aio_open(audio, file);
|
rc = audio_aio_open(audio, file);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
pr_err("%s: audio_aio_open rc=%d\n",
|
pr_err_ratelimited("%s: audio_aio_open rc=%d\n",
|
||||||
__func__, rc);
|
__func__, rc);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
@@ -3,7 +3,17 @@
|
|||||||
*
|
*
|
||||||
* Copyright (C) 2008 Google, Inc.
|
* Copyright (C) 2008 Google, Inc.
|
||||||
* Copyright (C) 2008 HTC Corporation
|
* Copyright (C) 2008 HTC Corporation
|
||||||
* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2011-2017, 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 "audio_utils_aio.h"
|
#include "audio_utils_aio.h"
|
||||||
@@ -94,7 +104,7 @@ static int audio_open(struct inode *inode, struct file *file)
|
|||||||
}
|
}
|
||||||
rc = audio_aio_open(audio, file);
|
rc = audio_aio_open(audio, file);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
pr_err("%s: audio_aio_open rc=%d\n",
|
pr_err_ratelimited("%s: audio_aio_open rc=%d\n",
|
||||||
__func__, rc);
|
__func__, rc);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,15 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
|
/* Copyright (c) 2016-2017, 2019 The Linux Foundation. All rights reserved.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License version 2 and
|
||||||
|
* only version 2 as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* 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/types.h>
|
#include <linux/types.h>
|
||||||
@@ -245,7 +255,7 @@ static int audio_open(struct inode *inode, struct file *file)
|
|||||||
}
|
}
|
||||||
rc = audio_aio_open(audio, file);
|
rc = audio_aio_open(audio, file);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
pr_err("%s: audio_aio_open rc=%d\n",
|
pr_err_ratelimited("%s: audio_aio_open rc=%d\n",
|
||||||
__func__, rc);
|
__func__, rc);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,15 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
|
/* Copyright (c) 2016-2017, 2019 The Linux Foundation. All rights reserved.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License version 2 and
|
||||||
|
* only version 2 as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* 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/types.h>
|
#include <linux/types.h>
|
||||||
@@ -244,7 +254,7 @@ static int audio_open(struct inode *inode, struct file *file)
|
|||||||
}
|
}
|
||||||
rc = audio_aio_open(audio, file);
|
rc = audio_aio_open(audio, file);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
pr_err("%s: audio_aio_open rc=%d\n",
|
pr_err_ratelimited("%s: audio_aio_open rc=%d\n",
|
||||||
__func__, rc);
|
__func__, rc);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
@@ -3,7 +3,17 @@
|
|||||||
*
|
*
|
||||||
* Copyright (C) 2008 Google, Inc.
|
* Copyright (C) 2008 Google, Inc.
|
||||||
* Copyright (C) 2008 HTC Corporation
|
* Copyright (C) 2008 HTC Corporation
|
||||||
* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2011-2017, 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 "audio_utils_aio.h"
|
#include "audio_utils_aio.h"
|
||||||
@@ -96,7 +106,7 @@ static int audio_open(struct inode *inode, struct file *file)
|
|||||||
}
|
}
|
||||||
rc = audio_aio_open(audio, file);
|
rc = audio_aio_open(audio, file);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
pr_err("%s: audio_aio_open rc=%d\n",
|
pr_err_ratelimited("%s: audio_aio_open rc=%d\n",
|
||||||
__func__, rc);
|
__func__, rc);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
@@ -3,7 +3,17 @@
|
|||||||
*
|
*
|
||||||
* Copyright (C) 2008 Google, Inc.
|
* Copyright (C) 2008 Google, Inc.
|
||||||
* Copyright (C) 2008 HTC Corporation
|
* Copyright (C) 2008 HTC Corporation
|
||||||
* Copyright (c) 2011-2018, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2011-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/msm_audio_aac.h>
|
#include <linux/msm_audio_aac.h>
|
||||||
@@ -437,7 +447,7 @@ static int audio_open(struct inode *inode, struct file *file)
|
|||||||
}
|
}
|
||||||
rc = audio_aio_open(audio, file);
|
rc = audio_aio_open(audio, file);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
pr_err("%s: audio_aio_open rc=%d\n",
|
pr_err_ratelimited("%s: audio_aio_open rc=%d\n",
|
||||||
__func__, rc);
|
__func__, rc);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
@@ -3,7 +3,17 @@
|
|||||||
*
|
*
|
||||||
* Copyright (C) 2008 Google, Inc.
|
* Copyright (C) 2008 Google, Inc.
|
||||||
* Copyright (C) 2008 HTC Corporation
|
* Copyright (C) 2008 HTC Corporation
|
||||||
* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2011-2017, 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 "audio_utils_aio.h"
|
#include "audio_utils_aio.h"
|
||||||
@@ -101,7 +111,7 @@ static int audio_open(struct inode *inode, struct file *file)
|
|||||||
}
|
}
|
||||||
rc = audio_aio_open(audio, file);
|
rc = audio_aio_open(audio, file);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
pr_err("%s: audio_aio_open rc=%d\n",
|
pr_err_ratelimited("%s: audio_aio_open rc=%d\n",
|
||||||
__func__, rc);
|
__func__, rc);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
@@ -1,7 +1,17 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
/* Copyright (C) 2008 Google, Inc.
|
/* Copyright (C) 2008 Google, Inc.
|
||||||
* Copyright (C) 2008 HTC Corporation
|
* 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>
|
#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;
|
audio->drv_ops.in_flush = audio_aio_async_in_flush;
|
||||||
q6asm_set_io_mode(audio->ac, ASYNC_IO_MODE);
|
q6asm_set_io_mode(audio->ac, ASYNC_IO_MODE);
|
||||||
} else {
|
} else {
|
||||||
pr_err("%s[%pK]:SIO interface not supported\n",
|
pr_err_ratelimited("%s[%pK]:SIO interface not supported\n",
|
||||||
__func__, audio);
|
__func__, audio);
|
||||||
rc = -EACCES;
|
rc = -EACCES;
|
||||||
goto fail;
|
goto fail;
|
||||||
@@ -1548,7 +1558,7 @@ static long audio_aio_shared_ioctl(struct file *file, unsigned int cmd,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
pr_err("%s: Unknown ioctl cmd = %d", __func__, cmd);
|
pr_err_ratelimited("%s: Unknown ioctl cmd = %d", __func__, cmd);
|
||||||
rc = -EINVAL;
|
rc = -EINVAL;
|
||||||
}
|
}
|
||||||
return rc;
|
return rc;
|
||||||
|
@@ -3,7 +3,17 @@
|
|||||||
*
|
*
|
||||||
* Copyright (C) 2008 Google, Inc.
|
* Copyright (C) 2008 Google, Inc.
|
||||||
* Copyright (C) 2008 HTC Corporation
|
* 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/types.h>
|
#include <linux/types.h>
|
||||||
@@ -253,7 +263,7 @@ static int audio_open(struct inode *inode, struct file *file)
|
|||||||
}
|
}
|
||||||
rc = audio_aio_open(audio, file);
|
rc = audio_aio_open(audio, file);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
pr_err("%s: audio_aio_open rc=%d\n",
|
pr_err_ratelimited("%s: audio_aio_open rc=%d\n",
|
||||||
__func__, rc);
|
__func__, rc);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
@@ -3,7 +3,17 @@
|
|||||||
*
|
*
|
||||||
* Copyright (C) 2008 Google, Inc.
|
* Copyright (C) 2008 Google, Inc.
|
||||||
* Copyright (C) 2008 HTC Corporation
|
* 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/types.h>
|
#include <linux/types.h>
|
||||||
@@ -327,7 +337,7 @@ static int audio_open(struct inode *inode, struct file *file)
|
|||||||
|
|
||||||
rc = audio_aio_open(audio, file);
|
rc = audio_aio_open(audio, file);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
pr_err("%s: audio_aio_open rc=%d\n",
|
pr_err_ratelimited("%s: audio_aio_open rc=%d\n",
|
||||||
__func__, rc);
|
__func__, rc);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user