Skip to content

Commit 53ae918

Browse files
morimotobroonie
authored andcommitted
ASoC: rsrc-card: use asoc_simple_card_parse_card_name()
Signed-off-by: Kuninori Morimoto <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 303c3be commit 53ae918

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

sound/soc/sh/rcar/rsrc-card.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,6 @@ static int rsrc_card_parse_of(struct device_node *node,
395395
"audio-routing");
396396
}
397397

398-
/* Parse the card name from DT */
399-
snd_soc_of_parse_card_name(&priv->snd_card, "card-name");
400-
401398
/* sampling rate convert */
402399
of_property_read_u32(node, "convert-rate", &priv->convert_rate);
403400

@@ -413,8 +410,9 @@ static int rsrc_card_parse_of(struct device_node *node,
413410
if (ret < 0)
414411
return ret;
415412

416-
if (!priv->snd_card.name)
417-
priv->snd_card.name = priv->snd_card.dai_link->name;
413+
ret = asoc_simple_card_parse_card_name(&priv->snd_card, "card-");
414+
if (ret < 0)
415+
return ret;
418416

419417
return 0;
420418
}

0 commit comments

Comments
 (0)