hal: add support for msm8920 sku7

add entry for msm8920 sku7 soundcard.

CRs-Fixed: 1035622
Change-Id: Ib2f88ec3a711fc1d8952230c95e775a692d10579
This commit is contained in:
Xiaojun Sang 2016-07-18 11:22:09 +08:00 committed by Gerrit - the friendly Code Review server
parent 561d4ba535
commit c30f0285d7
2 changed files with 14 additions and 1 deletions

View File

@ -297,8 +297,14 @@ static void update_hardware_info_8x16(struct hardware_info *hw_info, const char
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, "msm8920-sku7-snd-card")) {
strlcpy(hw_info->type, "", sizeof(hw_info->type));
strlcpy(hw_info->name, "msm8920", 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 {
ALOGW("%s: Not an 8x16/8909/8917/8937/8939/8940/8952/8953/falcon device", __func__);
ALOGW("%s: Not an 8x16/8909/8917/8920/8937/8939/8940/8952/8953/falcon device", __func__);
}
hw_info->is_wsa_combo_suppported = false;

View File

@ -1096,6 +1096,13 @@ static void query_platform(const char *snd_card_name,
msm_device_to_be_id = msm_device_to_be_id_external_codec;
msm_be_id_array_len =
sizeof(msm_device_to_be_id_external_codec) / sizeof(msm_device_to_be_id_external_codec[0]);
} else if (!strncmp(snd_card_name, "msm8920-sku7-snd-card",
sizeof("msm8920-sku7-snd-card"))) {
strlcpy(mixer_xml_path, MIXER_XML_PATH_SKU1,
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 {
strlcpy(mixer_xml_path, MIXER_XML_PATH,
sizeof(MIXER_XML_PATH));