diff options
| author | Weiyin Jiang <wjiang@codeaurora.org> | 2019-07-18 17:24:21 +0800 |
|---|---|---|
| committer | Bruno Martins <bgcngm@gmail.com> | 2019-12-07 00:58:00 +0200 |
| commit | 034e4c6606e53eef822e53c187c4b77984c03726 (patch) | |
| tree | e366341d317ba1e1f0ec09e8f3792c84d928f453 | |
| parent | ebf187425801b15c4a00d19239a014b7cbd2f641 (diff) | |
| download | android_hardware_qcom_audio-lineage-17.0-caf-msm8974.tar.gz android_hardware_qcom_audio-lineage-17.0-caf-msm8974.tar.bz2 android_hardware_qcom_audio-lineage-17.0-caf-msm8974.zip | |
hal: fix media param not sent during gapless transitionlineage-17.0-caf-msm8974
QC defined interfaces in tinycompress to handle metadata of extended
audio format. These interfaces aren't enabled in tinycompress lib.
Use feature flag to enable these APIs for QC AHAL.
CRs-Fixed: 2491047
Change-Id: I0644bd0965a3850ef4c728ca881bf81cdbd8bc53
| -rw-r--r-- | hal/Android.mk | 4 | ||||
| -rw-r--r-- | hal/audio_extn/audio_extn.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/hal/Android.mk b/hal/Android.mk index ff2a75f1..907b1b11 100644 --- a/hal/Android.mk +++ b/hal/Android.mk @@ -105,6 +105,10 @@ ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FORMATS)),true) LOCAL_CFLAGS += -DAUDIO_EXTN_FORMATS_ENABLED endif +ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT)),true) + LOCAL_CFLAGS += -DENABLE_EXTENDED_COMPRESS_FORMAT +endif + ifneq ($(filter apq8084 msm8974,$(TARGET_BOARD_PLATFORM)),) ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SPKR_PROTECTION)),true) LOCAL_CFLAGS += -DSPKR_PROT_ENABLED diff --git a/hal/audio_extn/audio_extn.h b/hal/audio_extn/audio_extn.h index 3475ca91..08b90ec5 100644 --- a/hal/audio_extn/audio_extn.h +++ b/hal/audio_extn/audio_extn.h @@ -46,6 +46,10 @@ #define AUDIO_OUTPUT_BIT_WIDTH (CODEC_BACKEND_DEFAULT_BIT_WIDTH) #endif +#ifndef ENABLE_EXTENDED_COMPRESS_FORMAT +#define compress_set_next_track_param(compress, codec_options) (0) +#endif + #define MAX_LENGTH_MIXER_CONTROL_IN_INT (128) void audio_extn_set_parameters(struct audio_device *adev, |
