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
diff --git a/configs/msm8909/mixer_paths.xml b/configs/msm8909/mixer_paths.xml
index 570535c..13da80e 100644
--- a/configs/msm8909/mixer_paths.xml
+++ b/configs/msm8909/mixer_paths.xml
@@ -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">
diff --git a/configs/msm8909/msm8909.mk b/configs/msm8909/msm8909.mk
index ebaeba5..19ab156 100755
--- a/configs/msm8909/msm8909.mk
+++ b/configs/msm8909/msm8909.mk
@@ -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 @@
$(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
diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c
index f887904..4bdaa20 100644
--- a/hal/msm8916/platform.c
+++ b/hal/msm8916/platform.c
@@ -4456,7 +4456,7 @@
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;