hal: In case of error in in_read don't return zero
When read fails HAL is returning bytes_read as zero, this is causing recordThread forever looping in threadLoop, leading ANR in cases like in-call record + SubSystemRestart. Make sure HAL returns 'size', AudioFlinger is reading data of. CRs-Fixed: 2021657 Change-Id: Ie4c07c6a888c1ec66ed032b0d2912633cf15368c
Loading
Please register or sign in to comment