Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e34df23 authored by Ramjee Singh's avatar Ramjee Singh Committed by Divya Narayanan Poojary
Browse files

msm8909: Bringup changes for HIDL component and compilation fix

-Add HIDL component in product packages.
-Resolve compilation errors for msm8916/platform.c
-Update mixer path for speaker
-Temp change to enable TARGET_USES_AOSP_FOR_AUDIO.

Change-Id: Ic42c4495cade29c5f279831e9f0469b2637b2b32
parent 75d7cbaf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -601,7 +601,7 @@

    <path name="speaker">
        <ctl name="RX3 MIX1 INP1" value="RX1" />
        <ctl name="SPK DAC Switch" value="1" />
        <ctl name="SPK" value="Switch" />
    </path>

    <path name="speaker-mic">
+9 −0
Original line number Diff line number Diff line
@@ -3,6 +3,9 @@

BOARD_USES_ALSA_AUDIO := true

#TODO move this cchange to device/qcom/msm8909
TARGET_USES_AOSP_FOR_AUDIO := true

ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
USE_CUSTOM_AUDIO_POLICY := 1
AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
@@ -79,3 +82,9 @@ PRODUCT_COPY_FILES += \
    $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/system/etc/r_submix_audio_policy_configuration.xml \
    $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/system/etc/usb_audio_policy_configuration.xml
endif

PRODUCT_PACKAGES += \
    android.hardware.audio@2.0-service \
    android.hardware.audio@2.0-impl \
    android.hardware.audio.effect@2.0-impl \
    android.hardware.soundtrigger@2.0-impl
+1 −1
Original line number Diff line number Diff line
@@ -4456,7 +4456,7 @@ int platform_set_parameters(void *platform, struct str_parms *parms)
    native_audio_set_params(platform, parms, value, sizeof(value));
    audio_extn_spkr_prot_set_parameters(parms, value, len);
    audio_extn_usb_set_sidetone_gain(parms, value, len);
    audio_extn_hfp_set_parameters(adev, parms);
    audio_extn_hfp_set_parameters(my_data->adev, parms);
    true_32_bit_set_params(parms, value, len);
    ALOGV("%s: exit with code(%d)", __func__, ret);
    return ret;