ASoC: simple-card: add asoc_simple_dai for initializing
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 11 Jan 2013 00:49:11 +0000 (16:49 -0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 13 Jan 2013 21:55:43 +0000 (06:55 +0900)
commita4a2992c531f6ca0aa00ce0deb31e51c1b7ae69b
treeb8cab15b26088c8cd771ad9c4c82fc5611d34d27
parent2eebcef31a133b27a09c457f3a7ad509bf237822
ASoC: simple-card: add asoc_simple_dai for initializing

Current simple-card driver calls asoc_simple_card_dai_init()
if platform had a asoc_simple_card_dai_init pointer.
And, this initialization function works only
when platform has an applicable initial value for each dai settings.
And basically, almost all sound card requires certain initialization.
This means that almost all platform has initialization settings,
and driver do nothing if it doesn't have settings.

And additionally, current simple-card supports sysclk settings but it was
only for codec.  In order to abolish deviation between cpu and codec,
and in order to simplify processing,
this patch adds asoc_simple_dai, and removed pointless
struct asoc_simple_dai_init_info which was trigger of
calling asoc_simple_card_dai_init().

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
arch/arm/mach-shmobile/board-ap4evb.c
arch/arm/mach-shmobile/board-armadillo800eva.c
arch/arm/mach-shmobile/board-kzm9g.c
arch/arm/mach-shmobile/board-mackerel.c
arch/sh/boards/mach-ecovec24/setup.c
arch/sh/boards/mach-se/7724/setup.c
include/sound/simple_card.h
sound/soc/generic/simple-card.c