Commit ad58151f authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: audio-graph-card2-custom-sample.dtsi: use card->name to avoid long name

Current Card2 Custom Sample will be too long Card name, and be error

	audio-graph-card2-custom-sample audio-graph-card2-custom-sample \
		ASoC: driver name too long \
		audio-graph-card2-custom-sample' -> 'audio-graph-car'

This patch uses short name to avoid it
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87bkke7qzf.wl-kuninori.morimoto.gx@renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 65d4d725
...@@ -151,6 +151,9 @@ static int custom_probe(struct platform_device *pdev) ...@@ -151,6 +151,9 @@ static int custom_probe(struct platform_device *pdev)
simple_priv = &custom_priv->simple_priv; simple_priv = &custom_priv->simple_priv;
simple_priv->ops = &custom_ops; /* customize dai_link ops */ simple_priv->ops = &custom_ops; /* customize dai_link ops */
/* "audio-graph-card2-custom-sample" is too long */
simple_priv->snd_card.name = "card2-custom";
/* use audio-graph-card2 parsing with own custom hooks */ /* use audio-graph-card2 parsing with own custom hooks */
ret = audio_graph2_parse_of(simple_priv, dev, &custom_hooks); ret = audio_graph2_parse_of(simple_priv, dev, &custom_hooks);
if (ret < 0) if (ret < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment