We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 303c3be commit 53ae918Copy full SHA for 53ae918
sound/soc/sh/rcar/rsrc-card.c
@@ -395,9 +395,6 @@ static int rsrc_card_parse_of(struct device_node *node,
395
"audio-routing");
396
}
397
398
- /* Parse the card name from DT */
399
- snd_soc_of_parse_card_name(&priv->snd_card, "card-name");
400
-
401
/* sampling rate convert */
402
of_property_read_u32(node, "convert-rate", &priv->convert_rate);
403
@@ -413,8 +410,9 @@ static int rsrc_card_parse_of(struct device_node *node,
413
410
if (ret < 0)
414
411
return ret;
415
412
416
- if (!priv->snd_card.name)
417
- priv->snd_card.name = priv->snd_card.dai_link->name;
+ ret = asoc_simple_card_parse_card_name(&priv->snd_card, "card-");
+ if (ret < 0)
+ return ret;
418
419
return 0;
420
0 commit comments