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:
@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user