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:59:20 +0200 |
| commit | 1c17a8f7d52293170d0b53761593184c6c9b037b (patch) | |
| tree | c1d1c1706001b89f890fa56c20081f13bbaad279 | |
| parent | 4aff8839e663dd9b45fc08d779dbe0047a8d1965 (diff) | |
| download | hardware_qcom_audio-lineage-17.0-caf-msm8952.tar.gz hardware_qcom_audio-lineage-17.0-caf-msm8952.tar.bz2 hardware_qcom_audio-lineage-17.0-caf-msm8952.zip | |
hal: fix media param not sent during gapless transitionlineage-17.0-caf-msm8952
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 567f3c79..5d63c08e 100644 --- a/hal/Android.mk +++ b/hal/Android.mk @@ -132,6 +132,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 + ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SPKR_PROTECTION)),true) LOCAL_CFLAGS += -DSPKR_PROT_ENABLED LOCAL_SRC_FILES += audio_extn/spkr_protection.c diff --git a/hal/audio_extn/audio_extn.h b/hal/audio_extn/audio_extn.h index 8f4800a6..9f8b859a 100644 --- a/hal/audio_extn/audio_extn.h +++ b/hal/audio_extn/audio_extn.h @@ -93,6 +93,10 @@ int audio_extn_parse_compress_metadata(struct stream_out *out, #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, |
