summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioFlinger.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-07-23 12:55:09 -0700
committerGlenn Kasten <gkasten@google.com>2012-07-27 14:49:58 -0700
commite4e2a37dbe2a4d923232305549101f779a2e3638 (patch)
tree7038669149e9478745fbb5e05f320cee8fd5cb88 /services/audioflinger/AudioFlinger.h
parent3dca4c7a5622fc6aa03397d749c4b4c1201cc4f3 (diff)
downloadframeworks_av-e4e2a37dbe2a4d923232305549101f779a2e3638.zip
frameworks_av-e4e2a37dbe2a4d923232305549101f779a2e3638.tar.gz
frameworks_av-e4e2a37dbe2a4d923232305549101f779a2e3638.tar.bz2
Extract methods to enter standby and standby mode
Also move initial standby from to threadLoop to avoid a race condition. Change-Id: I65afca83c36fb41b983b3b1d3dab35d4029560e3
Diffstat (limited to 'services/audioflinger/AudioFlinger.h')
-rw-r--r--services/audioflinger/AudioFlinger.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h
index 43c55a6..82d585d 100644
--- a/services/audioflinger/AudioFlinger.h
+++ b/services/audioflinger/AudioFlinger.h
@@ -1465,6 +1465,12 @@ private:
private:
void clearSyncStartEvent();
+ // Enter standby if not already in standby, and set mStandby flag
+ void standby();
+
+ // Call the HAL standby method unconditionally, and don't change mStandby flag
+ void inputStandBy();
+
AudioStreamIn *mInput;
RecordTrack* mTrack;
sp<RecordTrack> mActiveTrack;