Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

alsa_sound: fix watchdog error issue

- Issue happens when pcm_open fails after routing is done.
- Currently HAL returns zero bytes when pcm_open fails,
  Return actual bytes so that audioflinger can drop the buffer.

Bug-id: 7253359
Change-Id: I5d989539b0f9252577dc81a3ba34d467758bf717
Signed-off-by: Iliyan Malchev <malchev@google.com>
  • Loading branch information...
commit 5f24fd93afdcc66bfd9246a0e0000c0fd7283b7f 1 parent 6ebf0aa
SathishKumar Mani authored Iliyan Malchev committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  alsa_sound/AudioStreamOutALSA.cpp
View
2  alsa_sound/AudioStreamOutALSA.cpp
@@ -185,7 +185,7 @@ ssize_t AudioStreamOutALSA::write(const void *buffer, size_t bytes)
if(mHandle->handle == NULL) {
ALOGE("write:: device open failed");
mParent->mLock.unlock();
- return 0;
+ return bytes;
}
#ifdef QCOM_USBAUDIO_ENABLED
if((mHandle->devices == AudioSystem::DEVICE_IN_ANLG_DOCK_HEADSET)||
Please sign in to comment.
Something went wrong with that request. Please try again.