From 6154412ee8e07e9cde129cccb944dd7ed9dcef53 Mon Sep 17 00:00:00 2001 From: Jean-Michel Trivi Date: Mon, 7 Dec 2009 18:40:56 -0800 Subject: Partially fix bug 2111240 Detect docking / undocking event by reporting to the AudioPolicyManager a new forced usage AudioSystem::FOR_DOCK which can take the FORCE_NONE, FORCE_BT_DOCK or FORCE_WIRED_ACCESSORY values. This CL is complemented by an update of the APM to take into account the FOR_DOCK usage. --- include/media/AudioSystem.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/media/AudioSystem.h b/include/media/AudioSystem.h index bc3dd36..29aaa3f 100644 --- a/include/media/AudioSystem.h +++ b/include/media/AudioSystem.h @@ -282,6 +282,7 @@ public: FORCE_BT_SCO, FORCE_BT_A2DP, FORCE_WIRED_ACCESSORY, + FORCE_BT_DOCK, NUM_FORCE_CONFIG, FORCE_DEFAULT = FORCE_NONE }; @@ -291,6 +292,7 @@ public: FOR_COMMUNICATION, FOR_MEDIA, FOR_RECORD, + FOR_DOCK, NUM_FORCE_USE }; -- cgit v1.1