commit | 60d1ff1f6a42c930b65254e22ad55a3df293351a | [log] [tgz] |
---|---|---|
author | Pavan Chikkala <pavanc@codeaurora.org> | Thu Nov 27 16:46:58 2014 +0530 |
committer | Pavan Chikkala <pavanc@codeaurora.org> | Thu Nov 27 18:42:20 2014 +0530 |
tree | fad2dbe6ff4756ff188e986496719eab1a0f46d6 | |
parent | 578953f51c1b2046b0698ea65cebbc290820fd13 [diff] |
usb audio: Fix incorrect bytes returned for recording In a recording session , the number of bytes read is not updated when pcm_read() fails. This results in silence data being added during a device switch from USB headset to handset. Fix is to reset the number of bytes read if pcm_read() returns an error indicating removal of USB headset. CRs-Fixed: 753186 Change-Id: I10d578c3cf1037c90a891e63be2bd1c2b7e6126b