summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUday Kishore Pasupuleti <upasupul@codeaurora.org>2015-07-07 19:07:05 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-07-07 19:07:05 +0000
commit409dd56a15d092f15092de1452677f738c086621 (patch)
tree99570dcc3af0398ea0054d29f4aed8169942270a
parent5ffa83a563efc189e37c8d7eb0e23d93a1a2ab4b (diff)
parent11dd22384f2ae13ec4a7563ce5f0a113cf30a53c (diff)
downloadhardware_qcom_audio-409dd56a15d092f15092de1452677f738c086621.tar.gz
hardware_qcom_audio-409dd56a15d092f15092de1452677f738c086621.tar.bz2
hardware_qcom_audio-409dd56a15d092f15092de1452677f738c086621.zip
am 11dd2238: hal: fix to load wcd9330 mixer path file
* commit '11dd22384f2ae13ec4a7563ce5f0a113cf30a53c': hal: fix to load wcd9330 mixer path file
-rw-r--r--hal/msm8974/platform.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index 0d683948..a8005db5 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -30,6 +30,7 @@
#include <linux/msm_audio.h>
#define MIXER_XML_PATH "/system/etc/mixer_paths.xml"
+#define MIXER_XML_PATH_WCD9330 "/system/etc/mixer_paths_wcd9330.xml"
#define LIB_ACDB_LOADER "libacdbloader.so"
#define AUDIO_DATA_BLOCK_MIXER_CTL "HDMI EDID"
#define CVD_VERSION_MIXER_CTL "CVD Version"
@@ -824,7 +825,15 @@ void *platform_init(struct audio_device *adev)
ALOGD("%s: snd_card_name: %s", __func__, snd_card_name);
- adev->audio_route = audio_route_init(snd_card_num, MIXER_XML_PATH);
+ if (!strncmp(snd_card_name, "msm8226-tomtom-snd-card",
+ sizeof("msm8226-tomtom-snd-card"))) {
+ ALOGD("%s: Call MIXER_XML_PATH_WCD9330", __func__);
+ adev->audio_route = audio_route_init(snd_card_num,
+ MIXER_XML_PATH_WCD9330);
+ } else {
+ adev->audio_route = audio_route_init(snd_card_num, MIXER_XML_PATH);
+ }
+
if (!adev->audio_route) {
ALOGE("%s: Failed to init audio route controls, aborting.", __func__);
goto init_failed;