From 1b92868010b5c1409692a86f6b27e4a265b64c1a Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Thu, 2 Oct 2014 19:41:47 -0700 Subject: 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 --- services/audioflinger/Effects.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'services/audioflinger/Effects.h') 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& 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& args); protected: -- cgit v1.1