Loading dsp/codecs/audio_aac.c +3 −3 Original line number Original line Diff line number Diff line Loading @@ -2,7 +2,7 @@ * * * 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-2018, The Linux Foundation. All rights reserved. * * * This software is licensed under the terms of the GNU General Public * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * License version 2, as published by the Free Software Foundation, and Loading Loading @@ -230,7 +230,7 @@ static long audio_ioctl(struct file *file, unsigned int cmd, unsigned long arg) pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); rc = audio->codec_ioctl(file, cmd, arg); rc = audio->codec_ioctl(file, cmd, arg); if (rc) if (rc) pr_err("%s[%pK]:Failed in utils_ioctl: %d\n", pr_err_ratelimited("%s[%pK]:Failed in utils_ioctl: %d\n", __func__, audio, rc); __func__, audio, rc); } } } } Loading Loading @@ -339,7 +339,7 @@ static long audio_compat_ioctl(struct file *file, unsigned int cmd, pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); rc = audio->codec_compat_ioctl(file, cmd, arg); rc = audio->codec_compat_ioctl(file, cmd, arg); if (rc) if (rc) pr_err("%s[%pK]:Failed in utils_ioctl: %d\n", pr_err_ratelimited("%s[%pK]:Failed in utils_ioctl: %d\n", __func__, audio, rc); __func__, audio, rc); } } } } Loading dsp/codecs/audio_alac.c +3 −3 Original line number Original line Diff line number Diff line /* Copyright (c) 2015-2017, 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 * 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 * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -151,7 +151,7 @@ static long audio_ioctl(struct file *file, unsigned int cmd, unsigned long arg) default: { default: { rc = audio->codec_ioctl(file, cmd, arg); rc = audio->codec_ioctl(file, cmd, arg); if (rc) if (rc) pr_err("Failed in utils_ioctl: %d\n", rc); pr_err_ratelimited("Failed in utils_ioctl: %d\n", rc); break; break; } } } } Loading Loading @@ -253,7 +253,7 @@ static long audio_compat_ioctl(struct file *file, unsigned int cmd, default: { default: { rc = audio->codec_compat_ioctl(file, cmd, arg); rc = audio->codec_compat_ioctl(file, cmd, arg); if (rc) if (rc) pr_err("Failed in utils_ioctl: %d\n", rc); pr_err_ratelimited("Failed in utils_ioctl: %d\n", rc); break; break; } } } } Loading dsp/codecs/audio_ape.c +3 −3 Original line number Original line Diff line number Diff line /* Copyright (c) 2015-2017, 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 * 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 * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -137,7 +137,7 @@ static long audio_ioctl(struct file *file, unsigned int cmd, unsigned long arg) pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); rc = audio->codec_ioctl(file, cmd, arg); rc = audio->codec_ioctl(file, cmd, arg); if (rc) if (rc) pr_err("Failed in utils_ioctl: %d\n", rc); pr_err_ratelimited("Failed in utils_ioctl: %d\n", rc); break; break; } } } } Loading Loading @@ -235,7 +235,7 @@ static long audio_compat_ioctl(struct file *file, unsigned int cmd, pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); rc = audio->codec_compat_ioctl(file, cmd, arg); rc = audio->codec_compat_ioctl(file, cmd, arg); if (rc) if (rc) pr_err("Failed in utils_ioctl: %d\n", rc); pr_err_ratelimited("Failed in utils_ioctl: %d\n", rc); break; break; } } } } Loading dsp/codecs/audio_utils_aio.c +17 −17 Original line number Original line Diff line number Diff line Loading @@ -201,17 +201,17 @@ static int audio_aio_pause(struct q6audio_aio *audio) if (audio->enabled) { if (audio->enabled) { rc = q6asm_cmd(audio->ac, CMD_PAUSE); rc = q6asm_cmd(audio->ac, CMD_PAUSE); if (rc < 0) if (rc < 0) pr_err("%s[%pK]: pause cmd failed rc=%d\n", pr_err_ratelimited("%s[%pK]: pause cmd failed rc=%d\n", __func__, audio, rc); __func__, audio, rc); if (rc == 0) { if (rc == 0) { /* Send suspend only if pause was successful */ /* Send suspend only if pause was successful */ rc = q6asm_cmd(audio->ac, CMD_SUSPEND); rc = q6asm_cmd(audio->ac, CMD_SUSPEND); if (rc < 0) if (rc < 0) pr_err("%s[%pK]: suspend cmd failed rc=%d\n", pr_err_ratelimited("%s[%pK]: suspend cmd failed rc=%d\n", __func__, audio, rc); __func__, audio, rc); } else } else pr_err("%s[%pK]: not sending suspend since pause failed\n", pr_err_ratelimited("%s[%pK]: not sending suspend since pause failed\n", __func__, audio); __func__, audio); } else } else Loading @@ -230,7 +230,7 @@ static int audio_aio_flush(struct q6audio_aio *audio) if (!(audio->drv_status & ADRV_STATUS_PAUSE)) { if (!(audio->drv_status & ADRV_STATUS_PAUSE)) { rc = audio_aio_pause(audio); rc = audio_aio_pause(audio); if (rc < 0) if (rc < 0) pr_err("%s[%pK}: pause cmd failed rc=%d\n", pr_err_ratelimited("%s[%pK}: pause cmd failed rc=%d\n", __func__, audio, __func__, audio, rc); rc); else else Loading @@ -238,13 +238,13 @@ static int audio_aio_flush(struct q6audio_aio *audio) } } rc = q6asm_cmd(audio->ac, CMD_FLUSH); rc = q6asm_cmd(audio->ac, CMD_FLUSH); if (rc < 0) if (rc < 0) pr_err("%s[%pK]: flush cmd failed rc=%d\n", pr_err_ratelimited("%s[%pK]: flush cmd failed rc=%d\n", __func__, audio, rc); __func__, audio, rc); /* Not in stop state, reenable the stream */ /* Not in stop state, reenable the stream */ if (audio->stopped == 0) { if (audio->stopped == 0) { rc = audio_aio_enable(audio); rc = audio_aio_enable(audio); if (rc) if (rc) pr_err("%s[%pK]:audio re-enable failed\n", pr_err_ratelimited("%s[%pK]:audio re-enable failed\n", __func__, audio); __func__, audio); else { else { audio->enabled = 1; audio->enabled = 1; Loading @@ -268,7 +268,7 @@ static int audio_aio_outport_flush(struct q6audio_aio *audio) rc = q6asm_cmd(audio->ac, CMD_OUT_FLUSH); rc = q6asm_cmd(audio->ac, CMD_OUT_FLUSH); if (rc < 0) if (rc < 0) pr_err("%s[%pK}: output port flush cmd failed rc=%d\n", pr_err_ratelimited("%s[%pK}: output port flush cmd failed rc=%d\n", __func__, audio, rc); __func__, audio, rc); return rc; return rc; } } Loading Loading @@ -402,7 +402,7 @@ int audio_aio_disable(struct q6audio_aio *audio) /* Close the session */ /* Close the session */ rc = q6asm_cmd(audio->ac, CMD_CLOSE); rc = q6asm_cmd(audio->ac, CMD_CLOSE); if (rc < 0) if (rc < 0) pr_err("%s[%pK]:Failed to close the session rc=%d\n", pr_err_ratelimited("%s[%pK]:Failed to close the session rc=%d\n", __func__, audio, rc); __func__, audio, rc); audio->stopped = 1; audio->stopped = 1; wake_up(&audio->write_wait); wake_up(&audio->write_wait); Loading Loading @@ -676,7 +676,7 @@ int audio_aio_fsync(struct file *file, loff_t start, loff_t end, int datasync) pr_debug("%s[%pK]: EOS cmd sent to DSP\n", __func__, audio); pr_debug("%s[%pK]: EOS cmd sent to DSP\n", __func__, audio); if (rc < 0) if (rc < 0) pr_err("%s[%pK]: q6asm_cmd failed, rc = %d", pr_err_ratelimited("%s[%pK]: q6asm_cmd failed, rc = %d", __func__, audio, rc); __func__, audio, rc); pr_debug("%s[%pK]: wait for RENDERED_EOS from DSP\n" pr_debug("%s[%pK]: wait for RENDERED_EOS from DSP\n" Loading Loading @@ -1409,7 +1409,7 @@ static long audio_aio_shared_ioctl(struct file *file, unsigned int cmd, mutex_lock(&audio->read_lock); mutex_lock(&audio->read_lock); rc = audio_aio_outport_flush(audio); rc = audio_aio_outport_flush(audio); if (rc < 0) { if (rc < 0) { pr_err("%s[%pK]: AUDIO_OUTPORT_FLUSH failed\n", pr_err_ratelimited("%s[%pK]: AUDIO_OUTPORT_FLUSH failed\n", __func__, audio); __func__, audio); rc = -EINTR; rc = -EINTR; } } Loading @@ -1423,7 +1423,7 @@ static long audio_aio_shared_ioctl(struct file *file, unsigned int cmd, audio->stopped = 1; audio->stopped = 1; rc = audio_aio_flush(audio); rc = audio_aio_flush(audio); if (rc < 0) { if (rc < 0) { pr_err("%s[%pK]:Audio Stop procedure failed rc=%d\n", pr_err_ratelimited("%s[%pK]:Audio Stop procedure failed rc=%d\n", __func__, audio, rc); __func__, audio, rc); mutex_unlock(&audio->lock); mutex_unlock(&audio->lock); break; break; Loading @@ -1444,7 +1444,7 @@ static long audio_aio_shared_ioctl(struct file *file, unsigned int cmd, if (arg == 1) { if (arg == 1) { rc = audio_aio_pause(audio); rc = audio_aio_pause(audio); if (rc < 0) { if (rc < 0) { pr_err("%s[%pK]: pause FAILED rc=%d\n", pr_err_ratelimited("%s[%pK]: pause FAILED rc=%d\n", __func__, audio, rc); __func__, audio, rc); mutex_unlock(&audio->lock); mutex_unlock(&audio->lock); break; break; Loading @@ -1454,7 +1454,7 @@ static long audio_aio_shared_ioctl(struct file *file, unsigned int cmd, if (audio->drv_status & ADRV_STATUS_PAUSE) { if (audio->drv_status & ADRV_STATUS_PAUSE) { rc = audio_aio_enable(audio); rc = audio_aio_enable(audio); if (rc) if (rc) pr_err("%s[%pK]: audio enable failed\n", pr_err_ratelimited("%s[%pK]: audio enable failed\n", __func__, audio); __func__, audio); else { else { audio->drv_status &= ~ADRV_STATUS_PAUSE; audio->drv_status &= ~ADRV_STATUS_PAUSE; Loading @@ -1481,7 +1481,7 @@ static long audio_aio_shared_ioctl(struct file *file, unsigned int cmd, /* Flush input / Output buffer in software*/ /* Flush input / Output buffer in software*/ audio_aio_ioport_reset(audio); audio_aio_ioport_reset(audio); if (rc < 0) { if (rc < 0) { pr_err("%s[%pK]:AUDIO_FLUSH interrupted\n", pr_err_ratelimited("%s[%pK]:AUDIO_FLUSH interrupted\n", __func__, audio); __func__, audio); rc = -EINTR; rc = -EINTR; } else { } else { Loading @@ -1501,7 +1501,7 @@ static long audio_aio_shared_ioctl(struct file *file, unsigned int cmd, mutex_lock(&audio->lock); mutex_lock(&audio->lock); if (copy_to_user((void *)arg, &audio->ac->session, if (copy_to_user((void *)arg, &audio->ac->session, sizeof(u16))) { sizeof(u16))) { pr_err("%s: copy_to_user for AUDIO_GET_SESSION_ID failed\n", pr_err_ratelimited("%s: copy_to_user for AUDIO_GET_SESSION_ID failed\n", __func__); __func__); rc = -EFAULT; rc = -EFAULT; } } Loading @@ -1511,7 +1511,7 @@ static long audio_aio_shared_ioctl(struct file *file, unsigned int cmd, case AUDIO_PM_AWAKE: { case AUDIO_PM_AWAKE: { if ((audio->audio_ws_mgr == NULL) || if ((audio->audio_ws_mgr == NULL) || (audio->miscdevice == NULL)) { (audio->miscdevice == NULL)) { pr_err("%s[%pK]: invalid ws_mgr or miscdevice", pr_err_ratelimited("%s[%pK]: invalid ws_mgr or miscdevice", __func__, audio); __func__, audio); rc = -EACCES; rc = -EACCES; break; break; Loading @@ -1531,7 +1531,7 @@ static long audio_aio_shared_ioctl(struct file *file, unsigned int cmd, case AUDIO_PM_RELAX: { case AUDIO_PM_RELAX: { if ((audio->audio_ws_mgr == NULL) || if ((audio->audio_ws_mgr == NULL) || (audio->miscdevice == NULL)) { (audio->miscdevice == NULL)) { pr_err("%s[%pK]: invalid ws_mgr or miscdevice", pr_err_ratelimited("%s[%pK]: invalid ws_mgr or miscdevice", __func__, audio); __func__, audio); rc = -EACCES; rc = -EACCES; break; break; Loading dsp/codecs/audio_wma.c +3 −3 Original line number Original line Diff line number Diff line Loading @@ -2,7 +2,7 @@ * * * Copyright (C) 2008 Google, Inc. * Copyright (C) 2008 Google, Inc. * Copyright (C) 2008 HTC Corporation * Copyright (C) 2008 HTC Corporation * Copyright (c) 2009-2017, The Linux Foundation. All rights reserved. * Copyright (c) 2009-2018, The Linux Foundation. All rights reserved. * * * This software is licensed under the terms of the GNU General Public * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * License version 2, as published by the Free Software Foundation, and Loading Loading @@ -126,7 +126,7 @@ static long audio_ioctl(struct file *file, unsigned int cmd, unsigned long arg) pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); rc = audio->codec_ioctl(file, cmd, arg); rc = audio->codec_ioctl(file, cmd, arg); if (rc) if (rc) pr_err("Failed in utils_ioctl: %d\n", rc); pr_err_ratelimited("Failed in utils_ioctl: %d\n", rc); break; break; } } } } Loading Loading @@ -215,7 +215,7 @@ static long audio_compat_ioctl(struct file *file, unsigned int cmd, pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); rc = audio->codec_compat_ioctl(file, cmd, arg); rc = audio->codec_compat_ioctl(file, cmd, arg); if (rc) if (rc) pr_err("Failed in utils_ioctl: %d\n", rc); pr_err_ratelimited("Failed in utils_ioctl: %d\n", rc); break; break; } } } } Loading Loading
dsp/codecs/audio_aac.c +3 −3 Original line number Original line Diff line number Diff line Loading @@ -2,7 +2,7 @@ * * * 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-2018, The Linux Foundation. All rights reserved. * * * This software is licensed under the terms of the GNU General Public * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * License version 2, as published by the Free Software Foundation, and Loading Loading @@ -230,7 +230,7 @@ static long audio_ioctl(struct file *file, unsigned int cmd, unsigned long arg) pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); rc = audio->codec_ioctl(file, cmd, arg); rc = audio->codec_ioctl(file, cmd, arg); if (rc) if (rc) pr_err("%s[%pK]:Failed in utils_ioctl: %d\n", pr_err_ratelimited("%s[%pK]:Failed in utils_ioctl: %d\n", __func__, audio, rc); __func__, audio, rc); } } } } Loading Loading @@ -339,7 +339,7 @@ static long audio_compat_ioctl(struct file *file, unsigned int cmd, pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); rc = audio->codec_compat_ioctl(file, cmd, arg); rc = audio->codec_compat_ioctl(file, cmd, arg); if (rc) if (rc) pr_err("%s[%pK]:Failed in utils_ioctl: %d\n", pr_err_ratelimited("%s[%pK]:Failed in utils_ioctl: %d\n", __func__, audio, rc); __func__, audio, rc); } } } } Loading
dsp/codecs/audio_alac.c +3 −3 Original line number Original line Diff line number Diff line /* Copyright (c) 2015-2017, 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 * 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 * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -151,7 +151,7 @@ static long audio_ioctl(struct file *file, unsigned int cmd, unsigned long arg) default: { default: { rc = audio->codec_ioctl(file, cmd, arg); rc = audio->codec_ioctl(file, cmd, arg); if (rc) if (rc) pr_err("Failed in utils_ioctl: %d\n", rc); pr_err_ratelimited("Failed in utils_ioctl: %d\n", rc); break; break; } } } } Loading Loading @@ -253,7 +253,7 @@ static long audio_compat_ioctl(struct file *file, unsigned int cmd, default: { default: { rc = audio->codec_compat_ioctl(file, cmd, arg); rc = audio->codec_compat_ioctl(file, cmd, arg); if (rc) if (rc) pr_err("Failed in utils_ioctl: %d\n", rc); pr_err_ratelimited("Failed in utils_ioctl: %d\n", rc); break; break; } } } } Loading
dsp/codecs/audio_ape.c +3 −3 Original line number Original line Diff line number Diff line /* Copyright (c) 2015-2017, 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 * 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 * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -137,7 +137,7 @@ static long audio_ioctl(struct file *file, unsigned int cmd, unsigned long arg) pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); rc = audio->codec_ioctl(file, cmd, arg); rc = audio->codec_ioctl(file, cmd, arg); if (rc) if (rc) pr_err("Failed in utils_ioctl: %d\n", rc); pr_err_ratelimited("Failed in utils_ioctl: %d\n", rc); break; break; } } } } Loading Loading @@ -235,7 +235,7 @@ static long audio_compat_ioctl(struct file *file, unsigned int cmd, pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); rc = audio->codec_compat_ioctl(file, cmd, arg); rc = audio->codec_compat_ioctl(file, cmd, arg); if (rc) if (rc) pr_err("Failed in utils_ioctl: %d\n", rc); pr_err_ratelimited("Failed in utils_ioctl: %d\n", rc); break; break; } } } } Loading
dsp/codecs/audio_utils_aio.c +17 −17 Original line number Original line Diff line number Diff line Loading @@ -201,17 +201,17 @@ static int audio_aio_pause(struct q6audio_aio *audio) if (audio->enabled) { if (audio->enabled) { rc = q6asm_cmd(audio->ac, CMD_PAUSE); rc = q6asm_cmd(audio->ac, CMD_PAUSE); if (rc < 0) if (rc < 0) pr_err("%s[%pK]: pause cmd failed rc=%d\n", pr_err_ratelimited("%s[%pK]: pause cmd failed rc=%d\n", __func__, audio, rc); __func__, audio, rc); if (rc == 0) { if (rc == 0) { /* Send suspend only if pause was successful */ /* Send suspend only if pause was successful */ rc = q6asm_cmd(audio->ac, CMD_SUSPEND); rc = q6asm_cmd(audio->ac, CMD_SUSPEND); if (rc < 0) if (rc < 0) pr_err("%s[%pK]: suspend cmd failed rc=%d\n", pr_err_ratelimited("%s[%pK]: suspend cmd failed rc=%d\n", __func__, audio, rc); __func__, audio, rc); } else } else pr_err("%s[%pK]: not sending suspend since pause failed\n", pr_err_ratelimited("%s[%pK]: not sending suspend since pause failed\n", __func__, audio); __func__, audio); } else } else Loading @@ -230,7 +230,7 @@ static int audio_aio_flush(struct q6audio_aio *audio) if (!(audio->drv_status & ADRV_STATUS_PAUSE)) { if (!(audio->drv_status & ADRV_STATUS_PAUSE)) { rc = audio_aio_pause(audio); rc = audio_aio_pause(audio); if (rc < 0) if (rc < 0) pr_err("%s[%pK}: pause cmd failed rc=%d\n", pr_err_ratelimited("%s[%pK}: pause cmd failed rc=%d\n", __func__, audio, __func__, audio, rc); rc); else else Loading @@ -238,13 +238,13 @@ static int audio_aio_flush(struct q6audio_aio *audio) } } rc = q6asm_cmd(audio->ac, CMD_FLUSH); rc = q6asm_cmd(audio->ac, CMD_FLUSH); if (rc < 0) if (rc < 0) pr_err("%s[%pK]: flush cmd failed rc=%d\n", pr_err_ratelimited("%s[%pK]: flush cmd failed rc=%d\n", __func__, audio, rc); __func__, audio, rc); /* Not in stop state, reenable the stream */ /* Not in stop state, reenable the stream */ if (audio->stopped == 0) { if (audio->stopped == 0) { rc = audio_aio_enable(audio); rc = audio_aio_enable(audio); if (rc) if (rc) pr_err("%s[%pK]:audio re-enable failed\n", pr_err_ratelimited("%s[%pK]:audio re-enable failed\n", __func__, audio); __func__, audio); else { else { audio->enabled = 1; audio->enabled = 1; Loading @@ -268,7 +268,7 @@ static int audio_aio_outport_flush(struct q6audio_aio *audio) rc = q6asm_cmd(audio->ac, CMD_OUT_FLUSH); rc = q6asm_cmd(audio->ac, CMD_OUT_FLUSH); if (rc < 0) if (rc < 0) pr_err("%s[%pK}: output port flush cmd failed rc=%d\n", pr_err_ratelimited("%s[%pK}: output port flush cmd failed rc=%d\n", __func__, audio, rc); __func__, audio, rc); return rc; return rc; } } Loading Loading @@ -402,7 +402,7 @@ int audio_aio_disable(struct q6audio_aio *audio) /* Close the session */ /* Close the session */ rc = q6asm_cmd(audio->ac, CMD_CLOSE); rc = q6asm_cmd(audio->ac, CMD_CLOSE); if (rc < 0) if (rc < 0) pr_err("%s[%pK]:Failed to close the session rc=%d\n", pr_err_ratelimited("%s[%pK]:Failed to close the session rc=%d\n", __func__, audio, rc); __func__, audio, rc); audio->stopped = 1; audio->stopped = 1; wake_up(&audio->write_wait); wake_up(&audio->write_wait); Loading Loading @@ -676,7 +676,7 @@ int audio_aio_fsync(struct file *file, loff_t start, loff_t end, int datasync) pr_debug("%s[%pK]: EOS cmd sent to DSP\n", __func__, audio); pr_debug("%s[%pK]: EOS cmd sent to DSP\n", __func__, audio); if (rc < 0) if (rc < 0) pr_err("%s[%pK]: q6asm_cmd failed, rc = %d", pr_err_ratelimited("%s[%pK]: q6asm_cmd failed, rc = %d", __func__, audio, rc); __func__, audio, rc); pr_debug("%s[%pK]: wait for RENDERED_EOS from DSP\n" pr_debug("%s[%pK]: wait for RENDERED_EOS from DSP\n" Loading Loading @@ -1409,7 +1409,7 @@ static long audio_aio_shared_ioctl(struct file *file, unsigned int cmd, mutex_lock(&audio->read_lock); mutex_lock(&audio->read_lock); rc = audio_aio_outport_flush(audio); rc = audio_aio_outport_flush(audio); if (rc < 0) { if (rc < 0) { pr_err("%s[%pK]: AUDIO_OUTPORT_FLUSH failed\n", pr_err_ratelimited("%s[%pK]: AUDIO_OUTPORT_FLUSH failed\n", __func__, audio); __func__, audio); rc = -EINTR; rc = -EINTR; } } Loading @@ -1423,7 +1423,7 @@ static long audio_aio_shared_ioctl(struct file *file, unsigned int cmd, audio->stopped = 1; audio->stopped = 1; rc = audio_aio_flush(audio); rc = audio_aio_flush(audio); if (rc < 0) { if (rc < 0) { pr_err("%s[%pK]:Audio Stop procedure failed rc=%d\n", pr_err_ratelimited("%s[%pK]:Audio Stop procedure failed rc=%d\n", __func__, audio, rc); __func__, audio, rc); mutex_unlock(&audio->lock); mutex_unlock(&audio->lock); break; break; Loading @@ -1444,7 +1444,7 @@ static long audio_aio_shared_ioctl(struct file *file, unsigned int cmd, if (arg == 1) { if (arg == 1) { rc = audio_aio_pause(audio); rc = audio_aio_pause(audio); if (rc < 0) { if (rc < 0) { pr_err("%s[%pK]: pause FAILED rc=%d\n", pr_err_ratelimited("%s[%pK]: pause FAILED rc=%d\n", __func__, audio, rc); __func__, audio, rc); mutex_unlock(&audio->lock); mutex_unlock(&audio->lock); break; break; Loading @@ -1454,7 +1454,7 @@ static long audio_aio_shared_ioctl(struct file *file, unsigned int cmd, if (audio->drv_status & ADRV_STATUS_PAUSE) { if (audio->drv_status & ADRV_STATUS_PAUSE) { rc = audio_aio_enable(audio); rc = audio_aio_enable(audio); if (rc) if (rc) pr_err("%s[%pK]: audio enable failed\n", pr_err_ratelimited("%s[%pK]: audio enable failed\n", __func__, audio); __func__, audio); else { else { audio->drv_status &= ~ADRV_STATUS_PAUSE; audio->drv_status &= ~ADRV_STATUS_PAUSE; Loading @@ -1481,7 +1481,7 @@ static long audio_aio_shared_ioctl(struct file *file, unsigned int cmd, /* Flush input / Output buffer in software*/ /* Flush input / Output buffer in software*/ audio_aio_ioport_reset(audio); audio_aio_ioport_reset(audio); if (rc < 0) { if (rc < 0) { pr_err("%s[%pK]:AUDIO_FLUSH interrupted\n", pr_err_ratelimited("%s[%pK]:AUDIO_FLUSH interrupted\n", __func__, audio); __func__, audio); rc = -EINTR; rc = -EINTR; } else { } else { Loading @@ -1501,7 +1501,7 @@ static long audio_aio_shared_ioctl(struct file *file, unsigned int cmd, mutex_lock(&audio->lock); mutex_lock(&audio->lock); if (copy_to_user((void *)arg, &audio->ac->session, if (copy_to_user((void *)arg, &audio->ac->session, sizeof(u16))) { sizeof(u16))) { pr_err("%s: copy_to_user for AUDIO_GET_SESSION_ID failed\n", pr_err_ratelimited("%s: copy_to_user for AUDIO_GET_SESSION_ID failed\n", __func__); __func__); rc = -EFAULT; rc = -EFAULT; } } Loading @@ -1511,7 +1511,7 @@ static long audio_aio_shared_ioctl(struct file *file, unsigned int cmd, case AUDIO_PM_AWAKE: { case AUDIO_PM_AWAKE: { if ((audio->audio_ws_mgr == NULL) || if ((audio->audio_ws_mgr == NULL) || (audio->miscdevice == NULL)) { (audio->miscdevice == NULL)) { pr_err("%s[%pK]: invalid ws_mgr or miscdevice", pr_err_ratelimited("%s[%pK]: invalid ws_mgr or miscdevice", __func__, audio); __func__, audio); rc = -EACCES; rc = -EACCES; break; break; Loading @@ -1531,7 +1531,7 @@ static long audio_aio_shared_ioctl(struct file *file, unsigned int cmd, case AUDIO_PM_RELAX: { case AUDIO_PM_RELAX: { if ((audio->audio_ws_mgr == NULL) || if ((audio->audio_ws_mgr == NULL) || (audio->miscdevice == NULL)) { (audio->miscdevice == NULL)) { pr_err("%s[%pK]: invalid ws_mgr or miscdevice", pr_err_ratelimited("%s[%pK]: invalid ws_mgr or miscdevice", __func__, audio); __func__, audio); rc = -EACCES; rc = -EACCES; break; break; Loading
dsp/codecs/audio_wma.c +3 −3 Original line number Original line Diff line number Diff line Loading @@ -2,7 +2,7 @@ * * * Copyright (C) 2008 Google, Inc. * Copyright (C) 2008 Google, Inc. * Copyright (C) 2008 HTC Corporation * Copyright (C) 2008 HTC Corporation * Copyright (c) 2009-2017, The Linux Foundation. All rights reserved. * Copyright (c) 2009-2018, The Linux Foundation. All rights reserved. * * * This software is licensed under the terms of the GNU General Public * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * License version 2, as published by the Free Software Foundation, and Loading Loading @@ -126,7 +126,7 @@ static long audio_ioctl(struct file *file, unsigned int cmd, unsigned long arg) pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); rc = audio->codec_ioctl(file, cmd, arg); rc = audio->codec_ioctl(file, cmd, arg); if (rc) if (rc) pr_err("Failed in utils_ioctl: %d\n", rc); pr_err_ratelimited("Failed in utils_ioctl: %d\n", rc); break; break; } } } } Loading Loading @@ -215,7 +215,7 @@ static long audio_compat_ioctl(struct file *file, unsigned int cmd, pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); pr_debug("%s[%pK]: Calling utils ioctl\n", __func__, audio); rc = audio->codec_compat_ioctl(file, cmd, arg); rc = audio->codec_compat_ioctl(file, cmd, arg); if (rc) if (rc) pr_err("Failed in utils_ioctl: %d\n", rc); pr_err_ratelimited("Failed in utils_ioctl: %d\n", rc); break; break; } } } } Loading