summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaiz Nabi Kuchay <quic_fkuchay@quicinc.com>2022-07-26 19:13:32 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2022-08-11 04:39:33 -0700
commit087b7a82f9a51deedccf5293df0802f16dd97135 (patch)
treece8399c7ef8484eee9c79dace76c1b84476706f3
parentbed993f6e65f32fe5c6c0dcd7f407f80c175f6f0 (diff)
hal: parrot: add support of qcv on parrot
Add support for qcv on parrot. Change-Id: Ie25ff38704ff8306e01e8fb57816a557a85cef2a
-rw-r--r--configs/parrot/parrot.mk18
1 files changed, 12 insertions, 6 deletions
diff --git a/configs/parrot/parrot.mk b/configs/parrot/parrot.mk
index 0f9cd1b3..1be16675 100644
--- a/configs/parrot/parrot.mk
+++ b/configs/parrot/parrot.mk
@@ -189,14 +189,13 @@ PRODUCT_PACKAGES += $(AUDIO_AGM)
PRODUCT_PACKAGES += $(AUDIO_PAL)
PRODUCT_PACKAGES += $(AUDIO_C2)
-# Audio configuration xml's related to Waipio
-#QCV_FAMILY_SKUS := taro
-#DEVICE_SKU := taro
+# Audio configuration xml's related to Parrot
+QCV_FAMILY_SKUS := parrot
+DEVICE_SKU := parrot
CONFIG_PAL_SRC_DIR := vendor/qcom/opensource/pal/configs/parrot
CONFIG_HAL_SRC_DIR := vendor/qcom/opensource/audio-hal/primary-hal/configs/parrot
-#CONFIG_SKU_OUT_DIR := $(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)
-CONFIG_SKU_OUT_DIR := $(TARGET_COPY_OUT_VENDOR)/etc/
+CONFIG_SKU_OUT_DIR := $(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)
PRODUCT_COPY_FILES += \
$(CONFIG_HAL_SRC_DIR)/audio_effects.conf:$(CONFIG_SKU_OUT_DIR)/audio_effects.conf \
@@ -217,10 +216,17 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml
+#XML Audio configuration files
+ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
+PRODUCT_COPY_FILES += \
+ $(CONFIG_HAL_SRC_DIR)/audio_policy_configuration.xml:$(CONFIG_SKU_OUT_DIR)/audio_policy_configuration.xml
#Audio configuration xml's common to Parrot family
PRODUCT_COPY_FILES += \
- $(CONFIG_HAL_SRC_DIR)/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
+$(foreach DEVICE_SKU, $(QCV_FAMILY_SKUS), \
+ $(CONFIG_HAL_SRC_DIR)/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)_qssi/audio_policy_configuration.xml)
+
+endif
PRODUCT_COPY_FILES += \
$(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \