OSDN Git Service

Bluetooth: Enable in-band ringing in vibration mode (2/4)
authorJack He <siyuanh@google.com>
Thu, 8 Mar 2018 01:02:23 +0000 (17:02 -0800)
committerJack He <siyuanh@google.com>
Wed, 21 Mar 2018 23:02:42 +0000 (16:02 -0700)
* Add AUDIO_POLICY_FORCE_FOR_VIBRATE_RINGING force mode

Bug: 72647074
Test: Call phone in vibration mode and hear ringtone on HFP enabled
      headset, verify that ringtone is only played through headset.
      Then disconnect headset and call again to verify that ringtone
      does not play through phone speaker in vibration mode.

Change-Id: I6a738115a968ac76cb7cf83b52fe2e28a2fbc17f
(cherry picked from commit 2fa5ecf152f1227a6493b51ed114bc7c1a304202)

audio/include/system/audio_policy.h

index 2e2e90b..110b9c6 100644 (file)
@@ -67,6 +67,7 @@ typedef enum {
     AUDIO_POLICY_FORCE_FOR_SYSTEM,
     AUDIO_POLICY_FORCE_FOR_HDMI_SYSTEM_AUDIO,
     AUDIO_POLICY_FORCE_FOR_ENCODED_SURROUND,
+    AUDIO_POLICY_FORCE_FOR_VIBRATE_RINGING,
 
     AUDIO_POLICY_FORCE_USE_CNT,
     AUDIO_POLICY_FORCE_USE_MAX = AUDIO_POLICY_FORCE_USE_CNT - 1,