From d3f6922ce5700dc6ba9eaea71dc4202897c76629 Mon Sep 17 00:00:00 2001 From: Aditya Bavanari Date: Wed, 4 Oct 2017 20:59:41 +0530 Subject: [PATCH] post_proc: Update acdb_audio_cal_cfg structure to support Instance ID Update acdb_audio_cal_cfg structure to support Instance ID feature in bass module. CRs-Fixed: 2199639 Change-Id: If9df8b4fddbc87a21ed7a526ad10b4e1b073a53c --- post_proc/Android.mk | 4 ++++ post_proc/bass_boost.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/post_proc/Android.mk b/post_proc/Android.mk index be06ae28..5da769c4 100644 --- a/post_proc/Android.mk +++ b/post_proc/Android.mk @@ -110,6 +110,10 @@ ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DTS_EAGLE)), true) LOCAL_CFLAGS += -DHW_ACC_HPX endif +ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INSTANCE_ID)), true) + LOCAL_CFLAGS += -DINSTANCE_ID_ENABLED +endif + LOCAL_MODULE:= libhwacceffectswrapper LOCAL_VENDOR_MODULE := true diff --git a/post_proc/bass_boost.c b/post_proc/bass_boost.c index a4e22926..68cd46fe 100644 --- a/post_proc/bass_boost.c +++ b/post_proc/bass_boost.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2015, 2017, The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2015, 2017-2018, The Linux Foundation. All rights reserved. * Not a Contribution. * * Copyright (C) 2013 The Android Open Source Project @@ -63,6 +63,10 @@ typedef struct acdb_audio_cal_cfg { uint32_t sampling_rate; uint32_t cal_type; uint32_t module_id; +#ifdef INSTANCE_ID_ENABLED + uint16_t instance_id; + uint16_t reserved; +#endif uint32_t param_id; } acdb_audio_cal_cfg_t;