ASoC: simple-card: Add snd_card's name parsing from DT node support
authorXiubo Li <Li.Xiubo@freescale.com>
Fri, 24 Jan 2014 07:43:02 +0000 (15:43 +0800)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:13:31 +0000 (11:13 +0100)
commita816d7a204d8408f69e9125c0eaa8df55c9a3991
treef64615d51b39e554c2a89fdfaa19352678edd113
parentd57e4505869f966db831ff808157fbfa32f605df
ASoC: simple-card: Add snd_card's name parsing from DT node support

If the DT is used and the CPU DAI device has only one DAI, the card
name will be like :

ALSA device list:
0: 40031000.sai-sgtl5000

And this name maybe a little ugly to some customers, so here the
card name parsing from DT node is supported.

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit 2772555b6c5ba79783c04ea6c60549530d737e2e)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
sound/soc/generic/simple-card.c