hal: Add sound card support for sdm630 qrd skush
- Add sdm630 qrd skush variant sound card details
Change-Id: Ideabfa4b58a9f65bd847556f5ffe2f60540eb299
CRs-Fixed: 2005890
diff --git a/hal/msm8916/hw_info.c b/hal/msm8916/hw_info.c
index d3c3298..b2290b7 100644
--- a/hal/msm8916/hw_info.c
+++ b/hal/msm8916/hw_info.c
@@ -159,6 +159,8 @@
} else if (!strcmp(snd_card_name, "sdm660-tasha-skus-snd-card")) {
hw_info->is_stereo_spkr = false;
strlcpy(hw_info->name, "sdm660", sizeof(hw_info->name));
+ } else if (!strcmp(snd_card_name, "sdm660-snd-card-skush")) {
+ strlcpy(hw_info->name, "sdm660", sizeof(hw_info->name));
} else if (!strcmp(snd_card_name, "msm8920-sku7-snd-card")) {
strlcpy(hw_info->name, "msm8920", sizeof(hw_info->name));
} else if (!strcmp(snd_card_name, "apq8009-tashalite-snd-card")) {
diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c
index 43869a2..74c194f 100644
--- a/hal/msm8916/platform.c
+++ b/hal/msm8916/platform.c
@@ -51,6 +51,7 @@
#define MIXER_XML_PATH_SKUE "/system/etc/mixer_paths_skue.xml"
#define MIXER_XML_PATH_SKUL "/system/etc/mixer_paths_skul.xml"
#define MIXER_XML_PATH_SKUS "/system/etc/mixer_paths_skus.xml"
+#define MIXER_XML_PATH_SKUSH "/system/etc/mixer_paths_skush.xml"
#define MIXER_XML_PATH_SKUM "/system/etc/mixer_paths_qrd_skum.xml"
#define MIXER_XML_PATH_SKU1 "/system/etc/mixer_paths_qrd_sku1.xml"
#define MIXER_XML_PATH_SKUN_CAJON "/system/etc/mixer_paths_qrd_skun_cajon.xml"
@@ -1245,6 +1246,13 @@
msm_device_to_be_id = msm_device_to_be_id_internal_codec;
msm_be_id_array_len =
sizeof(msm_device_to_be_id_internal_codec) / sizeof(msm_device_to_be_id_internal_codec[0]);
+ } else if (!strncmp(snd_card_name, "sdm660-snd-card-skush",
+ sizeof("sdm660-snd-card-skush"))) {
+ strlcpy(mixer_xml_path, MIXER_XML_PATH_SKUSH,
+ MAX_MIXER_XML_PATH);
+ msm_device_to_be_id = msm_device_to_be_id_internal_codec;
+ msm_be_id_array_len =
+ sizeof(msm_device_to_be_id_internal_codec) / sizeof(msm_device_to_be_id_internal_codec[0]);
} else if (!strncmp(snd_card_name, "sdm660-tasha-snd-card",
sizeof("sdm660-tasha-snd-card"))) {
strlcpy(mixer_xml_path, MIXER_XML_PATH_WCD9335,