Merge "hal: Add sound card support for sdmmagpie variant"
This commit is contained in:
commit
5348ad0833
|
@ -688,6 +688,9 @@ static void update_hardware_info_bear(struct hardware_info *hw_info, const char
|
|||
} else if (!strncmp(snd_card_name, "sm6150-idp-snd-card",
|
||||
sizeof("sm6150-idp-snd-card"))) {
|
||||
strlcpy(hw_info->name, "sm6150", sizeof(hw_info->name));
|
||||
} else if (!strncmp(snd_card_name, "sm6150-wcd9375-snd-card",
|
||||
sizeof("sm6150-wcd9375-snd-card"))) {
|
||||
strlcpy(hw_info->name, "sm6150", sizeof(hw_info->name));
|
||||
} else if (!strncmp(snd_card_name, "sm6150-qrd-snd-card",
|
||||
sizeof("sm6150-qrd-snd-card"))) {
|
||||
hw_info->is_stereo_spkr = false;
|
||||
|
|
|
@ -1647,8 +1647,10 @@ static void update_codec_type_and_interface(struct platform_data * my_data,
|
|||
!strncmp(snd_card_name, "sdm439-snd-card-mtp",
|
||||
sizeof("sdm439-snd-card-mtp")) ||
|
||||
!strncmp(snd_card_name, "sm6150-wcd9375qrd-snd-card",
|
||||
sizeof("sm6150-wcd9375qrd-snd-card"))) {
|
||||
ALOGI("%s: snd_card_name: %s", __func__, snd_card_name);
|
||||
sizeof("sm6150-wcd9375qrd-snd-card")) ||
|
||||
!strncmp(snd_card_name, "sm6150-wcd9375-snd-card",
|
||||
sizeof("sm6150-wcd9375-snd-card"))) {
|
||||
ALOGI("%s: snd_card_name: %s",__func__,snd_card_name);
|
||||
my_data->is_internal_codec = true;
|
||||
my_data->is_slimbus_interface = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue