diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2013-01-10 19:49:11 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-13 16:55:43 -0500 |
commit | a4a2992c531f6ca0aa00ce0deb31e51c1b7ae69b (patch) | |
tree | b8cab15b26088c8cd771ad9c4c82fc5611d34d27 /include/sound | |
parent | 2eebcef31a133b27a09c457f3a7ad509bf237822 (diff) |
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>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/simple_card.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/sound/simple_card.h b/include/sound/simple_card.h index 4b62b8dc6a4f..6c74527d4926 100644 --- a/include/sound/simple_card.h +++ b/include/sound/simple_card.h | |||
@@ -14,21 +14,21 @@ | |||
14 | 14 | ||
15 | #include <sound/soc.h> | 15 | #include <sound/soc.h> |
16 | 16 | ||
17 | struct asoc_simple_dai_init_info { | 17 | struct asoc_simple_dai { |
18 | const char *name; | ||
18 | unsigned int fmt; | 19 | unsigned int fmt; |
19 | unsigned int cpu_daifmt; | ||
20 | unsigned int codec_daifmt; | ||
21 | unsigned int sysclk; | 20 | unsigned int sysclk; |
22 | }; | 21 | }; |
23 | 22 | ||
24 | struct asoc_simple_card_info { | 23 | struct asoc_simple_card_info { |
25 | const char *name; | 24 | const char *name; |
26 | const char *card; | 25 | const char *card; |
27 | const char *cpu_dai; | ||
28 | const char *codec; | 26 | const char *codec; |
29 | const char *platform; | 27 | const char *platform; |
30 | const char *codec_dai; | 28 | |
31 | struct asoc_simple_dai_init_info *init; /* for snd_link.init */ | 29 | unsigned int daifmt; |
30 | struct asoc_simple_dai cpu_dai; | ||
31 | struct asoc_simple_dai codec_dai; | ||
32 | 32 | ||
33 | /* used in simple-card.c */ | 33 | /* used in simple-card.c */ |
34 | struct snd_soc_dai_link snd_link; | 34 | struct snd_soc_dai_link snd_link; |