summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Tracks.cpp
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2015-03-30 20:51:47 -0700
committerEric Laurent <elaurent@google.com>2015-04-01 00:03:48 +0000
commitb369cafd67beb63dd0278dba543f519956208a7f (patch)
treec50687a52df6b28cb071b36a5377cae9054bbefa /services/audioflinger/Tracks.cpp
parent253930b927d375413a42f170fa1ef8d98b8f7cb4 (diff)
downloadframeworks_av-b369cafd67beb63dd0278dba543f519956208a7f.zip
frameworks_av-b369cafd67beb63dd0278dba543f519956208a7f.tar.gz
frameworks_av-b369cafd67beb63dd0278dba543f519956208a7f.tar.bz2
audio flinger: fix standby on output with HW A/V sync
Fix a bug in audio HAL pause logic on output threads with HW A/V sync preventing the HAL to enter standby when the audio track is stopped and detroyed. Bug: 19980184. Change-Id: Ia497dad23159038b447fcbc18a67bb61b70b79cc
Diffstat (limited to 'services/audioflinger/Tracks.cpp')
-rw-r--r--services/audioflinger/Tracks.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp
index 7692315..dc9f249 100644
--- a/services/audioflinger/Tracks.cpp
+++ b/services/audioflinger/Tracks.cpp
@@ -745,6 +745,7 @@ void AudioFlinger::PlaybackThread::Track::stop()
// move to STOPPING_2 when drain completes and then STOPPED
mState = STOPPING_1;
}
+ playbackThread->broadcast_l();
ALOGV("not stopping/stopped => stopping/stopped (%d) on thread %p", mName,
playbackThread);
}