diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-05-20 06:00:43 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-05-20 06:00:43 -0400 |
commit | d71f4cece4bd97d05592836202fc04ff2e7817e3 (patch) | |
tree | 6c877c7a938758b1323d9c97d46b9c536e618c69 /sound/soc/sh/fsi-ak4642.c | |
parent | 19008bdacb9f7841166ebafe0aef361ee582ffbf (diff) | |
parent | ad8332c1302bcb4f80d593fd3eb477be9d7f5604 (diff) |
Merge branch 'topic/asoc' into for-linus
Conflicts:
sound/soc/codecs/ad1938.c
Diffstat (limited to 'sound/soc/sh/fsi-ak4642.c')
-rw-r--r-- | sound/soc/sh/fsi-ak4642.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sound/soc/sh/fsi-ak4642.c b/sound/soc/sh/fsi-ak4642.c index 5263ab18f827..be018542314e 100644 --- a/sound/soc/sh/fsi-ak4642.c +++ b/sound/soc/sh/fsi-ak4642.c | |||
@@ -22,11 +22,25 @@ | |||
22 | #include <sound/sh_fsi.h> | 22 | #include <sound/sh_fsi.h> |
23 | #include <../sound/soc/codecs/ak4642.h> | 23 | #include <../sound/soc/codecs/ak4642.h> |
24 | 24 | ||
25 | static int fsi_ak4642_dai_init(struct snd_soc_codec *codec) | ||
26 | { | ||
27 | int ret; | ||
28 | |||
29 | ret = snd_soc_dai_set_fmt(&ak4642_dai, SND_SOC_DAIFMT_CBM_CFM); | ||
30 | if (ret < 0) | ||
31 | return ret; | ||
32 | |||
33 | ret = snd_soc_dai_set_sysclk(&ak4642_dai, 0, 11289600, 0); | ||
34 | |||
35 | return ret; | ||
36 | } | ||
37 | |||
25 | static struct snd_soc_dai_link fsi_dai_link = { | 38 | static struct snd_soc_dai_link fsi_dai_link = { |
26 | .name = "AK4642", | 39 | .name = "AK4642", |
27 | .stream_name = "AK4642", | 40 | .stream_name = "AK4642", |
28 | .cpu_dai = &fsi_soc_dai[0], /* fsi */ | 41 | .cpu_dai = &fsi_soc_dai[0], /* fsi */ |
29 | .codec_dai = &ak4642_dai, | 42 | .codec_dai = &ak4642_dai, |
43 | .init = fsi_ak4642_dai_init, | ||
30 | .ops = NULL, | 44 | .ops = NULL, |
31 | }; | 45 | }; |
32 | 46 | ||