diff options
author | Kuninori Morimoto <morimoto.kuninori@renesas.com> | 2010-03-23 16:27:28 +0900 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-03-23 10:59:11 +0000 |
commit | 4b6316b4b16c7fb5d51df43f0371416e054e7102 (patch) | |
tree | 72571695549ff0a1b55ad8e55bf122e21dce90aa /sound/soc/sh | |
parent | 778a76e2dbdb896d005849e9e74518d6aba85671 (diff) | |
download | linux-3.10-4b6316b4b16c7fb5d51df43f0371416e054e7102.tar.gz linux-3.10-4b6316b4b16c7fb5d51df43f0371416e054e7102.tar.bz2 linux-3.10-4b6316b4b16c7fb5d51df43f0371416e054e7102.zip |
ASoC: ak4642: Add pll select support
Current ak4642 was not able to select pll.
This patch add support it.
It still expect PLL base input pin is MCKI.
see Table 5 "setting of PLL Mode" of datasheet
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/sh')
-rw-r--r-- | sound/soc/sh/fsi-ak4642.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/sh/fsi-ak4642.c b/sound/soc/sh/fsi-ak4642.c index 5263ab18f82..c0207dc524b 100644 --- a/sound/soc/sh/fsi-ak4642.c +++ b/sound/soc/sh/fsi-ak4642.c @@ -22,11 +22,21 @@ #include <sound/sh_fsi.h> #include <../sound/soc/codecs/ak4642.h> +static int fsi_ak4642_dai_init(struct snd_soc_codec *codec) +{ + int ret; + + ret = snd_soc_dai_set_sysclk(&ak4642_dai, 0, 11289600, 0); + + return ret; +} + static struct snd_soc_dai_link fsi_dai_link = { .name = "AK4642", .stream_name = "AK4642", .cpu_dai = &fsi_soc_dai[0], /* fsi */ .codec_dai = &ak4642_dai, + .init = fsi_ak4642_dai_init, .ops = NULL, }; |