summaryrefslogtreecommitdiffstats
path: root/libs/audioflinger/A2dpAudioInterface.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2009-10-08 10:58:19 -0700
committerEric Laurent <elaurent@google.com>2009-10-08 12:03:51 -0700
commit80a6a229b33b0868944fe011af2d778e23c83322 (patch)
treeb14ae7e641c595cd2e34e5e4daa63ed6d324f300 /libs/audioflinger/A2dpAudioInterface.h
parentbd324c9bd32a3c86634c1cc1ab8525f46a56b694 (diff)
downloadframeworks_base-80a6a229b33b0868944fe011af2d778e23c83322.zip
frameworks_base-80a6a229b33b0868944fe011af2d778e23c83322.tar.gz
frameworks_base-80a6a229b33b0868944fe011af2d778e23c83322.tar.bz2
Fix issue 2174002: After rejecting Call when device ringtone is mute and playing music, audio is not transfered to BT device.
Added a workarouond to request the A2DP output standby directly to audio hardware when the sink is suspended as it seems that the suspend request often fails. Also take into account resume requests received while a suspend request is pending.
Diffstat (limited to 'libs/audioflinger/A2dpAudioInterface.h')
-rw-r--r--libs/audioflinger/A2dpAudioInterface.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/audioflinger/A2dpAudioInterface.h b/libs/audioflinger/A2dpAudioInterface.h
index 35a6e11..530e432 100644
--- a/libs/audioflinger/A2dpAudioInterface.h
+++ b/libs/audioflinger/A2dpAudioInterface.h
@@ -101,6 +101,7 @@ private:
status_t close_l();
status_t setAddress(const char* address);
status_t setBluetoothEnabled(bool enabled);
+ status_t setSuspended(bool onOff);
private:
int mFd;
@@ -113,6 +114,7 @@ private:
bool mBluetoothEnabled;
uint32_t mDevice;
bool mClosing;
+ bool mSuspended;
};
friend class A2dpAudioStreamOut;
@@ -121,6 +123,7 @@ private:
AudioHardwareInterface *mHardwareInterface;
char mA2dpAddress[20];
bool mBluetoothEnabled;
+ bool mSuspended;
};