Message ID | E1dn7Ei-0001BQ-Ds@debutante |
---|---|
State | Accepted |
Commit | 1b4a56cd7f5c2f835ffae2a8204fb95597269b10 |
Headers | show |
Series | Applied "ASoC: simple_card_utils: fix fallback when "label" property isn't present" to the asoc tree | expand |
diff --git a/sound/soc/generic/simple-card-utils.c b/sound/soc/generic/simple-card-utils.c index 26d64fa40c9c..0442099157e6 100644 --- a/sound/soc/generic/simple-card-utils.c +++ b/sound/soc/generic/simple-card-utils.c @@ -132,7 +132,7 @@ int asoc_simple_card_parse_card_name(struct snd_soc_card *card, /* Parse the card name from DT */ ret = snd_soc_of_parse_card_name(card, "label"); - if (ret < 0) { + if (ret < 0 || !card->name) { char prop[128]; snprintf(prop, sizeof(prop), "%sname", prefix);