ASoC: switch over to use snd_soc_register_component() on sh4 siu
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 22 Mar 2013 07:54:50 +0000 (00:54 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 26 Mar 2013 21:57:55 +0000 (21:57 +0000)
commit0a09dfa04177df5a2e9eeeeaf527efd35c531d11
tree799a97809b02d9789283d8c822ef946e130e9c80
parentf53179c026b11bef674d75154f5ea47ca3248ca9
ASoC: switch over to use snd_soc_register_component() on sh4 siu

siu_dai.c is using snd_soc_register_dais(),
even though array size of siu_i2s_dai is 1.
OTOH, new API snd_soc_register_component() uses properly
snd_soc_register_dai()  (henceforth dai()) or
snd_soc_register_dais() (henceforth dais()) via num_dai.
Then, cpu_dai_name will be "siu-i2s-dai" if dais() was used,
and it will be "siu-pcm-audio" if dai() was used.
Therefore this patch fixup migor_dai :: cpu_dai_name too.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/sh/migor.c
sound/soc/sh/siu_dai.c