AudioFlinger: disable AEC and NS with BT headsets

Disable AEC and NS when the Bluetooth SCO headset in use indicates it
implements those pre processings.

Change-Id: I93f3d10b0a27243d5dbff7182639576fc0c6d862
This commit is contained in:
Eric Laurent
2011-08-01 09:52:20 -07:00
parent e096f9fa3d
commit 6639b559bb
2 changed files with 52 additions and 3 deletions

View File

@ -206,6 +206,8 @@ public:
uint32_t getMode() { return mMode; }
bool btNrec() { return mBtNrec; }
private:
AudioFlinger();
virtual ~AudioFlinger();
@ -996,6 +998,7 @@ private:
virtual status_t addEffectChain_l(const sp<EffectChain>& chain);
virtual size_t removeEffectChain_l(const sp<EffectChain>& chain);
virtual uint32_t hasAudioSession(int sessionId);
RecordTrack* track();
private:
RecordThread();
@ -1361,7 +1364,8 @@ private:
DefaultKeyedVector< pid_t, sp<NotificationClient> > mNotificationClients;
volatile int32_t mNextUniqueId;
uint32_t mMode;
uint32_t mMode;
bool mBtNrec;
};