Message ID | 20200211031252.6620-3-hui.wang@canonical.com |
---|---|
State | New |
Headers | show |
Series | change the ASoC card name and card longname to meet the requirement of alsa-lib-1.2.1 (Focal) | expand |
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index c57363059f89..423e59ea2069 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1809,7 +1809,8 @@ int snd_soc_set_dmi_name(struct snd_soc_card *card, const char *flavour) board = dmi_get_system_info(DMI_BOARD_NAME); if (board && is_dmi_valid(board)) { - append_dmi_string(card, board); + if (!product || strcasecmp(board, product)) + append_dmi_string(card, board); } else if (!product) { /* fall back to using legacy name */ dev_warn(card->dev, "ASoC: no DMI board/product name!\n");