ASoC: Ensure we generate a driver name
commit10f672f1a199240bc2a77d6f81e1d37f33ba743e
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 20 Sep 2011 10:41:54 +0000 (20 11:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Feb 2012 19:06:08 +0000 (13 11:06 -0800)
tree29974eb8e5b07583e9ffc6f9327714dab2c203bb
parentc27711dc7f2cff89cee6a47026d936672cb29350
ASoC: Ensure we generate a driver name

commit f0e8ed858edb327802ee65fd695cc1538286226f upstream.

Commit 873bd4c (ASoC: Don't set invalid name string to snd_card->driver
field) broke generation of a driver name for all ASoC cards relying on the
automatic generation of one. Fix this by using the old default with spaces
replaced by underscores.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/soc-core.c