Loading dsp/codecs/audio_utils.c +9 −3 Original line number Diff line number Diff line /* Copyright (c) 2010-2017, The Linux Foundation. All rights reserved. /* Copyright (c) 2010-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 Loading Loading @@ -760,6 +760,10 @@ ssize_t audio_in_read(struct file *file, } bytes_to_copy = (size + audio->out_frame_info[idx][1]); if (bytes_to_copy == 0) { rc = 0; break; } /* Number of frames information copied */ buf += sizeof(unsigned char); count -= sizeof(unsigned char); Loading Loading @@ -793,8 +797,10 @@ ssize_t audio_in_read(struct file *file, pr_debug("%s:session id %d: read: %zd bytes\n", __func__, audio->ac->session, (buf-start)); if (!rc) { if (buf > start) return buf - start; } return rc; } Loading Loading
dsp/codecs/audio_utils.c +9 −3 Original line number Diff line number Diff line /* Copyright (c) 2010-2017, The Linux Foundation. All rights reserved. /* Copyright (c) 2010-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 Loading Loading @@ -760,6 +760,10 @@ ssize_t audio_in_read(struct file *file, } bytes_to_copy = (size + audio->out_frame_info[idx][1]); if (bytes_to_copy == 0) { rc = 0; break; } /* Number of frames information copied */ buf += sizeof(unsigned char); count -= sizeof(unsigned char); Loading Loading @@ -793,8 +797,10 @@ ssize_t audio_in_read(struct file *file, pr_debug("%s:session id %d: read: %zd bytes\n", __func__, audio->ac->session, (buf-start)); if (!rc) { if (buf > start) return buf - start; } return rc; } Loading