From 36274db4e553d849d60c93c67de8f6875247b7d1 Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Tue, 22 Jan 2019 12:41:41 -0800 Subject: [PATCH] [Master port]audio: add new audio formats This patch ports a change to the HAL interfaces done in master in order to have the same Audio common HAL interface in both AOSP and master. This is needed as the Bluetooth HAL uses the audio common HAL and needs to be frozen in the same state in both AOSP and MASTER. Add AAC_LATM*, CELT and APTX_ADAPTIVE to the list of audio formats. Bug: 124247199 Bug: 123082414 Test: make Change-Id: Id75e1f5016929d5a67e777774aaa892df6f91e78 Merged-In: Id75e1f5016929d5a67e777774aaa892df6f91e78 --- audio/common/5.0/types.hal | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/audio/common/5.0/types.hal b/audio/common/5.0/types.hal index b4e947096f..3f81836f0b 100644 --- a/audio/common/5.0/types.hal +++ b/audio/common/5.0/types.hal @@ -235,6 +235,10 @@ enum AudioFormat : uint32_t { LDAC = 0x23000000UL, /** Dolby Metadata-enhanced Audio Transmission */ MAT = 0x24000000UL, + AAC_LATM = 0x25000000UL, + CELT = 0x26000000UL, + APTX_ADAPTIVE = 0x27000000UL, + /** Deprecated */ MAIN_MASK = 0xFF000000UL, SUB_MASK = 0x00FFFFFFUL, @@ -306,6 +310,9 @@ enum AudioFormat : uint32_t { MAT_1_0 = (MAT | MAT_SUB_1_0), MAT_2_0 = (MAT | MAT_SUB_2_0), MAT_2_1 = (MAT | MAT_SUB_2_1), + AAC_LATM_LC = (AAC_LATM | AAC_SUB_LC), + AAC_LATM_HE_V1 = (AAC_LATM | AAC_SUB_HE_V1), + AAC_LATM_HE_V2 = (AAC_LATM | AAC_SUB_HE_V2), }; /**