From 226b119451674f9188c5c25b36e931bc7dd15eb7 Mon Sep 17 00:00:00 2001 From: jiabin Date: Wed, 27 Jan 2021 19:16:26 +0000 Subject: [PATCH] Add MPEG-H enum. MPEG-H is a new surround audio codec. Add new enum format for MPEG-H in the HIDL interface. Though MPEG-H has different profiles and audio levels, only low complexity and baseline with audio level as 3 and 4 is defined in this CL as they are relevant for the current and upcoming commercial services. Bug: 178619392 Test: make Change-Id: I5672f3874f6cffe31a83b6d7e351d0bf56bfd038 --- audio/7.0/config/api/current.txt | 4 ++++ audio/7.0/config/audio_policy_configuration.xsd | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/audio/7.0/config/api/current.txt b/audio/7.0/config/api/current.txt index 0b2e4a4d85..2e2e4780a9 100644 --- a/audio/7.0/config/api/current.txt +++ b/audio/7.0/config/api/current.txt @@ -222,6 +222,10 @@ package android.audio.policy.configuration.V7_0 { enum_constant public static final android.audio.policy.configuration.V7_0.AudioFormat AUDIO_FORMAT_MAT_2_1; enum_constant public static final android.audio.policy.configuration.V7_0.AudioFormat AUDIO_FORMAT_MP2; enum_constant public static final android.audio.policy.configuration.V7_0.AudioFormat AUDIO_FORMAT_MP3; + enum_constant public static final android.audio.policy.configuration.V7_0.AudioFormat AUDIO_FORMAT_MPEGH_BL_L3; + enum_constant public static final android.audio.policy.configuration.V7_0.AudioFormat AUDIO_FORMAT_MPEGH_BL_L4; + enum_constant public static final android.audio.policy.configuration.V7_0.AudioFormat AUDIO_FORMAT_MPEGH_LC_L3; + enum_constant public static final android.audio.policy.configuration.V7_0.AudioFormat AUDIO_FORMAT_MPEGH_LC_L4; enum_constant public static final android.audio.policy.configuration.V7_0.AudioFormat AUDIO_FORMAT_OPUS; enum_constant public static final android.audio.policy.configuration.V7_0.AudioFormat AUDIO_FORMAT_PCM_16_BIT; enum_constant public static final android.audio.policy.configuration.V7_0.AudioFormat AUDIO_FORMAT_PCM_24_BIT_PACKED; diff --git a/audio/7.0/config/audio_policy_configuration.xsd b/audio/7.0/config/audio_policy_configuration.xsd index a735c6de39..b90693c0bf 100644 --- a/audio/7.0/config/audio_policy_configuration.xsd +++ b/audio/7.0/config/audio_policy_configuration.xsd @@ -407,6 +407,10 @@ + + + +