hal: Add support for ferrum(8909) sound cards
-Add entry for ferrum(8909) sound card name
Change-Id: I64989e184b97f1ae0f1365da29b61297d579f6ac
diff --git a/hal/msm8916/hw_info.c b/hal/msm8916/hw_info.c
index 723881f..7a2ee02 100644
--- a/hal/msm8916/hw_info.c
+++ b/hal/msm8916/hw_info.c
@@ -173,8 +173,14 @@
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, "msm8909-snd-card")) {
+ strlcpy(hw_info->type, "", sizeof(hw_info->type));
+ strlcpy(hw_info->name, "msm8909", 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/8939 device", __func__);
+ ALOGW("%s: Not an 8x16/8939/8909 device", __func__);
}
}
@@ -184,7 +190,8 @@
hw_info = malloc(sizeof(struct hardware_info));
- if(strstr(snd_card_name, "msm8x16") || strstr(snd_card_name, "msm8939")) {
+ if (strstr(snd_card_name, "msm8x16") || strstr(snd_card_name, "msm8939") ||
+ strstr(snd_card_name, "msm8909")) {
ALOGV("8x16 - variant soundcard");
update_hardware_info_8x16(hw_info, snd_card_name);
} else {