diff options
author | Jassi Brar <jassi.brar@samsung.com> | 2010-11-22 01:37:07 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-23 09:07:35 -0500 |
commit | 0fff21a86c1ada9e9eba0d11fb91797bf2c73d46 (patch) | |
tree | cf4767fea3e011c314be1df5e040d34ed178c767 /sound/soc/s3c24xx | |
parent | fcd8c742b92d834dee804b2a394cc575dd3a4084 (diff) |
ASoC: SMDK64XX: Move to use new I2S driver
Modify the smdk64xx_wm8580.c to use new i2s controller driver.
Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/s3c24xx')
-rw-r--r-- | sound/soc/s3c24xx/Kconfig | 2 | ||||
-rw-r--r-- | sound/soc/s3c24xx/smdk64xx_wm8580.c | 25 |
2 files changed, 4 insertions, 23 deletions
diff --git a/sound/soc/s3c24xx/Kconfig b/sound/soc/s3c24xx/Kconfig index 749f630475eb..597626389e81 100644 --- a/sound/soc/s3c24xx/Kconfig +++ b/sound/soc/s3c24xx/Kconfig | |||
@@ -74,7 +74,7 @@ config SND_S3C64XX_SOC_WM8580 | |||
74 | tristate "SoC I2S Audio support for WM8580 on SMDK64XX" | 74 | tristate "SoC I2S Audio support for WM8580 on SMDK64XX" |
75 | depends on SND_S3C24XX_SOC && MACH_SMDK6410 | 75 | depends on SND_S3C24XX_SOC && MACH_SMDK6410 |
76 | select SND_SOC_WM8580 | 76 | select SND_SOC_WM8580 |
77 | select SND_S3C64XX_SOC_I2S_V4 | 77 | select SND_SAMSUNG_I2S |
78 | help | 78 | help |
79 | Say Y if you want to add support for SoC audio on the SMDK6410. | 79 | Say Y if you want to add support for SoC audio on the SMDK6410. |
80 | 80 | ||
diff --git a/sound/soc/s3c24xx/smdk64xx_wm8580.c b/sound/soc/s3c24xx/smdk64xx_wm8580.c index 095379126435..1b3a97697cbf 100644 --- a/sound/soc/s3c24xx/smdk64xx_wm8580.c +++ b/sound/soc/s3c24xx/smdk64xx_wm8580.c | |||
@@ -19,7 +19,7 @@ | |||
19 | 19 | ||
20 | #include "../codecs/wm8580.h" | 20 | #include "../codecs/wm8580.h" |
21 | #include "dma.h" | 21 | #include "dma.h" |
22 | #include "s3c64xx-i2s.h" | 22 | #include "i2s.h" |
23 | 23 | ||
24 | /* | 24 | /* |
25 | * Default CFG switch settings to use this driver: | 25 | * Default CFG switch settings to use this driver: |
@@ -95,17 +95,6 @@ static int smdk64xx_hw_params(struct snd_pcm_substream *substream, | |||
95 | if (ret < 0) | 95 | if (ret < 0) |
96 | return ret; | 96 | return ret; |
97 | 97 | ||
98 | ret = snd_soc_dai_set_sysclk(cpu_dai, S3C64XX_CLKSRC_CDCLK, | ||
99 | 0, SND_SOC_CLOCK_IN); | ||
100 | if (ret < 0) | ||
101 | return ret; | ||
102 | |||
103 | /* We use PCLK for basic ops in SoC-Slave mode */ | ||
104 | ret = snd_soc_dai_set_sysclk(cpu_dai, S3C64XX_CLKSRC_PCLK, | ||
105 | 0, SND_SOC_CLOCK_IN); | ||
106 | if (ret < 0) | ||
107 | return ret; | ||
108 | |||
109 | /* Set WM8580 to drive MCLK from its PLLA */ | 98 | /* Set WM8580 to drive MCLK from its PLLA */ |
110 | ret = snd_soc_dai_set_clkdiv(codec_dai, WM8580_MCLK, | 99 | ret = snd_soc_dai_set_clkdiv(codec_dai, WM8580_MCLK, |
111 | WM8580_CLKSRC_PLLA); | 100 | WM8580_CLKSRC_PLLA); |
@@ -122,14 +111,6 @@ static int smdk64xx_hw_params(struct snd_pcm_substream *substream, | |||
122 | if (ret < 0) | 111 | if (ret < 0) |
123 | return ret; | 112 | return ret; |
124 | 113 | ||
125 | ret = snd_soc_dai_set_clkdiv(cpu_dai, S3C_I2SV2_DIV_BCLK, bfs); | ||
126 | if (ret < 0) | ||
127 | return ret; | ||
128 | |||
129 | ret = snd_soc_dai_set_clkdiv(cpu_dai, S3C_I2SV2_DIV_RCLK, rfs); | ||
130 | if (ret < 0) | ||
131 | return ret; | ||
132 | |||
133 | return 0; | 114 | return 0; |
134 | } | 115 | } |
135 | 116 | ||
@@ -223,7 +204,7 @@ static struct snd_soc_dai_link smdk64xx_dai[] = { | |||
223 | { /* Primary Playback i/f */ | 204 | { /* Primary Playback i/f */ |
224 | .name = "WM8580 PAIF RX", | 205 | .name = "WM8580 PAIF RX", |
225 | .stream_name = "Playback", | 206 | .stream_name = "Playback", |
226 | .cpu_dai_name = "samsung-i2s-v4", | 207 | .cpu_dai_name = "samsung-i2s.2", |
227 | .codec_dai_name = "wm8580-hifi-playback", | 208 | .codec_dai_name = "wm8580-hifi-playback", |
228 | .platform_name = "samsung-audio", | 209 | .platform_name = "samsung-audio", |
229 | .codec_name = "wm8580-codec.0-001b", | 210 | .codec_name = "wm8580-codec.0-001b", |
@@ -233,7 +214,7 @@ static struct snd_soc_dai_link smdk64xx_dai[] = { | |||
233 | { /* Primary Capture i/f */ | 214 | { /* Primary Capture i/f */ |
234 | .name = "WM8580 PAIF TX", | 215 | .name = "WM8580 PAIF TX", |
235 | .stream_name = "Capture", | 216 | .stream_name = "Capture", |
236 | .cpu_dai_name = "samsung-i2s-v4", | 217 | .cpu_dai_name = "samsung-i2s.2", |
237 | .codec_dai_name = "wm8580-hifi-capture", | 218 | .codec_dai_name = "wm8580-hifi-capture", |
238 | .platform_name = "samsung-audio", | 219 | .platform_name = "samsung-audio", |
239 | .codec_name = "wm8580-codec.0-001b", | 220 | .codec_name = "wm8580-codec.0-001b", |