am 546bdab3: am 5f24fd93: alsa_sound: fix watchdog error issue
* commit '546bdab37dd2570cc1f4f5ecc89779ac4f6346d0':
alsa_sound: fix watchdog error issue
diff --git a/alsa_sound/AudioStreamOutALSA.cpp b/alsa_sound/AudioStreamOutALSA.cpp
index c9ea6b5..49c0581 100644
--- a/alsa_sound/AudioStreamOutALSA.cpp
+++ b/alsa_sound/AudioStreamOutALSA.cpp
@@ -185,7 +185,7 @@
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)||