OSDN Git Service

Add const value for manually set surround formats.
authorjiabin <jiabin@google.com>
Tue, 3 Apr 2018 01:20:37 +0000 (18:20 -0700)
committerjiabin <jiabin@google.com>
Sat, 21 Apr 2018 00:37:48 +0000 (17:37 -0700)
To make surround sound setting more clear to users, we are changing
surround setting from ALWAYS to MANUAL. With MANUAL, users could enable
surround formats according to their need.

Bug: 67479735
Test: Try creating AudioTrack with enable/disable surround formats.
Change-Id: I32c5a766300fc0ed294150f703e46602970a76d3

audio/include/system/audio_policy.h

index 110b9c6..450125b 100644 (file)
@@ -49,6 +49,7 @@ typedef enum {
     AUDIO_POLICY_FORCE_HDMI_SYSTEM_AUDIO_ENFORCED,
     AUDIO_POLICY_FORCE_ENCODED_SURROUND_NEVER,
     AUDIO_POLICY_FORCE_ENCODED_SURROUND_ALWAYS,
+    AUDIO_POLICY_FORCE_ENCODED_SURROUND_MANUAL,
 
     AUDIO_POLICY_FORCE_CFG_CNT,
     AUDIO_POLICY_FORCE_CFG_MAX = AUDIO_POLICY_FORCE_CFG_CNT - 1,