hal: 8939: add support for 8939 skuk device
add entry for 8939 sound card name to load
the mixer controls for 8939.
CRs-Fixed: 676373
Change-Id: Ia96729c66951082353fe59677d1ae5b8e5f5ca6a
diff --git a/hal/msm8916/hw_info.c b/hal/msm8916/hw_info.c
index 9ea86ad..cd95f61 100644
--- a/hal/msm8916/hw_info.c
+++ b/hal/msm8916/hw_info.c
@@ -161,14 +161,8 @@
hw_info->snd_devices = NULL;
hw_info->num_snd_devices = 0;
strlcpy(hw_info->dev_extn, "", sizeof(hw_info->dev_extn));
- } else if (!strcmp(snd_card_name, "msm8939-skuh-snd-card")) {
- strlcpy(hw_info->type, "skuh", sizeof(hw_info->type));
- strlcpy(hw_info->name, "msm8939", sizeof(hw_info->name));
- hw_info->snd_devices = NULL;
- hw_info->num_snd_devices = 0;
- strlcpy(hw_info->dev_extn, "", sizeof(hw_info->dev_extn));
- } else if (!strcmp(snd_card_name, "msm8939-skui-snd-card")) {
- strlcpy(hw_info->type, "skui", sizeof(hw_info->type));
+ } else if (!strcmp(snd_card_name, "msm8939-snd-card-skuk")) {
+ strlcpy(hw_info->type, "skuk", sizeof(hw_info->type));
strlcpy(hw_info->name, "msm8939", sizeof(hw_info->name));
hw_info->snd_devices = NULL;
hw_info->num_snd_devices = 0;
diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c
index 6fd0530..83f0b6d 100644
--- a/hal/msm8916/platform.c
+++ b/hal/msm8916/platform.c
@@ -36,6 +36,8 @@
#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_SKUK "/system/etc/mixer_paths_skuk.xml"
+#define MIXER_XML_PATH_AUXPCM "/system/etc/mixer_paths_auxpcm.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"
@@ -421,6 +423,10 @@
sizeof("msm8939-snd-card-mtp"))) {
strlcpy(mixer_xml_path, MIXER_XML_PATH,
sizeof(MIXER_XML_PATH));
+ } else if (!strncmp(snd_card_name, "msm8939-snd-card-skuk",
+ sizeof("msm8939-snd-card-skuk"))) {
+ strlcpy(mixer_xml_path, MIXER_XML_PATH_SKUK,
+ sizeof(MIXER_XML_PATH_SKUK));
} else {
strlcpy(mixer_xml_path, MIXER_XML_PATH,
sizeof(MIXER_XML_PATH));