From 7ca90d914eeeca5f306ecd4d7374c02c96a3e282 Mon Sep 17 00:00:00 2001 From: Walter Yang Date: Tue, 6 May 2014 17:48:02 +0800 Subject: [PATCH] hal: msm8916: seperate device support for qrd skuh/skui Different customers will have different settings. Change-Id: Id5515c80cf302fc1d38526975aba2cae4c442479 --- hal/msm8916/platform.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c index 4ca7ce72..d5734386 100644 --- a/hal/msm8916/platform.c +++ b/hal/msm8916/platform.c @@ -34,6 +34,8 @@ #define MIXER_XML_PATH "/system/etc/mixer_paths.xml" #define MIXER_XML_PATH_MTP "/system/etc/mixer_paths_mtp.xml" +#define MIXER_XML_PATH_QRD_SKUH "/system/etc/mixer_paths_qrd_skuh.xml" +#define MIXER_XML_PATH_QRD_SKUI "/system/etc/mixer_paths_qrd_skui.xml" #define MIXER_XML_PATH_AUXPCM "/system/etc/mixer_paths_auxpcm.xml" #define PLATFORM_INFO_XML_PATH "/system/etc/audio_platform_info.xml" #define LIB_ACDB_LOADER "libacdbloader.so" @@ -402,6 +404,14 @@ static void query_platform(const char *snd_card_name, sizeof("msm8x16-snd-card-mtp"))) { strlcpy(mixer_xml_path, MIXER_XML_PATH_MTP, sizeof(MIXER_XML_PATH_MTP)); + } else if (!strncmp(snd_card_name, "msm8x16-skuh-snd-card", + sizeof("msm8x16-skuh-snd-card"))) { + strlcpy(mixer_xml_path, MIXER_XML_PATH_QRD_SKUH, + sizeof(MIXER_XML_PATH_QRD_SKUH)); + } else if (!strncmp(snd_card_name, "msm8x16-skui-snd-card", + sizeof("msm8x16-skui-snd-card"))) { + strlcpy(mixer_xml_path, MIXER_XML_PATH_QRD_SKUI, + sizeof(MIXER_XML_PATH_QRD_SKUI)); } else { strlcpy(mixer_xml_path, MIXER_XML_PATH, sizeof(MIXER_XML_PATH));