From c0cfc6a3467abec62a05d95e5bce7f0aa4cc9b86 Mon Sep 17 00:00:00 2001 From: Sujin Panicker Date: Tue, 14 Jan 2020 17:22:01 +0530 Subject: [PATCH] audio: Add wired headset support to Pixel line Add wired headset support to audio policy configs as Moorea Pixel supports wired headset. Change-Id: I85d22b8dd2a487242824187080f412af72f6fd81 --- .../audio_policy_configuration_odm.xml | 296 ++++++++++++++++++ configs/msmsteppe/msmsteppe.mk | 10 +- 2 files changed, 305 insertions(+), 1 deletion(-) create mode 100644 configs/msmsteppe/audio_policy_configuration_odm.xml diff --git a/configs/msmsteppe/audio_policy_configuration_odm.xml b/configs/msmsteppe/audio_policy_configuration_odm.xml new file mode 100644 index 00000000..232e0227 --- /dev/null +++ b/configs/msmsteppe/audio_policy_configuration_odm.xml @@ -0,0 +1,296 @@ + + + + + + + + + + + + + + + + Speaker + Speaker Safe + Earpiece + Telephony Tx + Built-In Mic + Built-In Back Mic + Telephony Rx + + Speaker + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/msmsteppe/msmsteppe.mk b/configs/msmsteppe/msmsteppe.mk index ba8c5051..7e949cde 100644 --- a/configs/msmsteppe/msmsteppe.mk +++ b/configs/msmsteppe/msmsteppe.mk @@ -186,8 +186,16 @@ ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true) PRODUCT_COPY_FILES += \ $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/msmsteppe/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml endif + +ifeq ($(GENERIC_ODM_IMAGE),true) +PRODUCT_COPY_FILES += \ + $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/msmsteppe/audio_policy_configuration_odm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml +else +PRODUCT_COPY_FILES += \ + $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml +endif + PRODUCT_COPY_FILES += \ - $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \