OSDN Git Service

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)
committerMark Brown <broonie@linaro.org>
Mon, 3 Feb 2014 12:45:34 +0000 (12:45 +0000)
commit2772555b6c5ba79783c04ea6c60549530d737e2e
tree277ef9c7f05b311b5cec72c350683af7fcf8884c
parent30d0341e7da0c012f64fb290dd1153360fb49a8d
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>
sound/soc/generic/simple-card.c