hal: add support for 8909 TMO

add 8909 TMO skut sound card entry

CRs-fixed: 853275
Change-Id: I8e267dd0533f0dcfb8227e5a43dfe51d886e98cb
This commit is contained in:
Divya Narayanan Poojary 2017-04-20 17:30:20 +05:30 committed by Gerrit - the friendly Code Review server
parent 38ef088df0
commit 64daf6685b
2 changed files with 11 additions and 0 deletions

View File

@ -103,6 +103,9 @@ static void update_hardware_info_8x16(struct hardware_info *hw_info, const char
} else if (!strcmp(snd_card_name, "msm8909-skue-snd-card")) {
strlcpy(hw_info->type, "skue", sizeof(hw_info->type));
strlcpy(hw_info->name, "msm8909", sizeof(hw_info->name));
} else if (!strcmp(snd_card_name, "msm8909-skut-snd-card")) {
strlcpy(hw_info->type, "skut", sizeof(hw_info->type));
strlcpy(hw_info->name, "msm8909", sizeof(hw_info->name));
} else if (!strcmp(snd_card_name, "msm8939-snd-card-skul")) {
strlcpy(hw_info->type, "skul", sizeof(hw_info->type));
strlcpy(hw_info->name, "msm8939", sizeof(hw_info->name));

View File

@ -52,6 +52,7 @@
#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_QRD_SKUT "/system/etc/mixer_paths_qrd_skut.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"
@ -1081,6 +1082,13 @@ static void query_platform(const char *snd_card_name,
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, "msm8909-skut-snd-card",
sizeof("msm8909-skut-snd-card"))) {
strlcpy(mixer_xml_path, MIXER_XML_PATH_QRD_SKUT,
sizeof(MIXER_XML_PATH_QRD_SKUT));
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, "msm8909-pm8916-snd-card",
sizeof("msm8909-pm8916-snd-card"))) {