aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/generic
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2014-03-09 22:37:56 -0400
committerMark Brown <broonie@linaro.org>2014-03-10 03:53:35 -0400
commit12ffa6fc1958879a81b6af1624c1a2edd83ec04a (patch)
tree8d2405b06902be6b19d52bb562825835b5562955 /sound/soc/generic
parent81985bd63f6f1711035aa8d97caf2fb203250a95 (diff)
ASoC: simple-card: card name can be option
snd_card.name is now option on DT case. non-DT case can follow same style, and it is understandable from platform point of view. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/generic')
-rw-r--r--sound/soc/generic/simple-card.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c
index 7cabcc5c8703..5dd47691ba41 100644
--- a/sound/soc/generic/simple-card.c
+++ b/sound/soc/generic/simple-card.c
@@ -287,7 +287,6 @@ static int asoc_simple_card_probe(struct platform_device *pdev)
287 } 287 }
288 288
289 if (!cinfo->name || 289 if (!cinfo->name ||
290 !cinfo->card ||
291 !cinfo->codec_dai.name || 290 !cinfo->codec_dai.name ||
292 !cinfo->codec || 291 !cinfo->codec ||
293 !cinfo->platform || 292 !cinfo->platform ||
@@ -296,7 +295,7 @@ static int asoc_simple_card_probe(struct platform_device *pdev)
296 return -EINVAL; 295 return -EINVAL;
297 } 296 }
298 297
299 priv->snd_card.name = cinfo->card; 298 priv->snd_card.name = (cinfo->card) ? cinfo->card : cinfo->name;
300 dai_link->name = cinfo->name; 299 dai_link->name = cinfo->name;
301 dai_link->stream_name = cinfo->name; 300 dai_link->stream_name = cinfo->name;
302 dai_link->platform_name = cinfo->platform; 301 dai_link->platform_name = cinfo->platform;