Loading hal/msm8916/hw_info.c +2 −0 Original line number Diff line number Diff line Loading @@ -159,6 +159,8 @@ static void update_hardware_info_8x16(struct hardware_info *hw_info, const char } 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")) { Loading hal/msm8916/platform.c +8 −0 Original line number Diff line number Diff line Loading @@ -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" Loading Loading @@ -1245,6 +1246,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, "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, Loading Loading
hal/msm8916/hw_info.c +2 −0 Original line number Diff line number Diff line Loading @@ -159,6 +159,8 @@ static void update_hardware_info_8x16(struct hardware_info *hw_info, const char } 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")) { Loading
hal/msm8916/platform.c +8 −0 Original line number Diff line number Diff line Loading @@ -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" Loading Loading @@ -1245,6 +1246,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, "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, Loading