Skip to content

Commit

Permalink
ASoC: rsrc-card: use asoc_simple_card_parse_card_name()
Browse files Browse the repository at this point in the history
Signed-off-by: Kuninori Morimoto <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
morimoto authored and broonie committed Jul 16, 2016
1 parent 303c3be commit 53ae918
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sound/soc/sh/rcar/rsrc-card.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,6 @@ static int rsrc_card_parse_of(struct device_node *node,
"audio-routing");
}

/* Parse the card name from DT */
snd_soc_of_parse_card_name(&priv->snd_card, "card-name");

/* sampling rate convert */
of_property_read_u32(node, "convert-rate", &priv->convert_rate);

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

if (!priv->snd_card.name)
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;

return 0;
}
Expand Down

0 comments on commit 53ae918

Please sign in to comment.