summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Effects.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2014-10-02 19:41:47 -0700
committerEric Laurent <elaurent@google.com>2014-10-02 19:41:47 -0700
commit1b92868010b5c1409692a86f6b27e4a265b64c1a (patch)
treeaa514a65d23d1bebbceef49cc6b7f2662c7bad76 /services/audioflinger/Effects.h
parentd8b03abf1d003e2940a19f0071ea2892689dd10e (diff)
downloadframeworks_av-1b92868010b5c1409692a86f6b27e4a265b64c1a.zip
frameworks_av-1b92868010b5c1409692a86f6b27e4a265b64c1a.tar.gz
frameworks_av-1b92868010b5c1409692a86f6b27e4a265b64c1a.tar.bz2
audioflinger: fix pre processing transfer between record threads.
Fix two problems remaining with pre processing effects transfer from one record thread to the next in case of tear down due to device connection: 1 - the enabled state of the effects was not communicated to the new HAL input stream. 2 - the effects saved in orphan chains list were not transfered to the new thread when a AudioRecord was created. Bug: 17757378. Change-Id: I0923c98470db3b51154dc89846157780a4c21e86
Diffstat (limited to 'services/audioflinger/Effects.h')
-rw-r--r--services/audioflinger/Effects.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/audioflinger/Effects.h b/services/audioflinger/Effects.h
index b87a1fd..6f93f81 100644
--- a/services/audioflinger/Effects.h
+++ b/services/audioflinger/Effects.h
@@ -119,6 +119,7 @@ public:
{ return (mDescriptor.flags & EFFECT_FLAG_OFFLOAD_SUPPORTED) != 0; }
status_t setOffloaded(bool offloaded, audio_io_handle_t io);
bool isOffloaded() const;
+ void addEffectToHal_l();
void dump(int fd, const Vector<String16>& args);
@@ -325,6 +326,8 @@ public:
// we are the only observers.
bool isVolumeForced() { return (android_atomic_acquire_cas(true, false, &mForceVolume) == 0); }
+ void syncHalEffectsState();
+
void dump(int fd, const Vector<String16>& args);
protected: