diff options
Diffstat (limited to 'sound/soc/s3c24xx/s3c2443-ac97.c')
-rw-r--r-- | sound/soc/s3c24xx/s3c2443-ac97.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sound/soc/s3c24xx/s3c2443-ac97.c b/sound/soc/s3c24xx/s3c2443-ac97.c index fc1beb0930b9..0191e3acb0b4 100644 --- a/sound/soc/s3c24xx/s3c2443-ac97.c +++ b/sound/soc/s3c24xx/s3c2443-ac97.c | |||
@@ -32,11 +32,10 @@ | |||
32 | #include <plat/regs-ac97.h> | 32 | #include <plat/regs-ac97.h> |
33 | #include <mach/regs-gpio.h> | 33 | #include <mach/regs-gpio.h> |
34 | #include <mach/regs-clock.h> | 34 | #include <mach/regs-clock.h> |
35 | #include <plat/audio.h> | ||
36 | #include <asm/dma.h> | 35 | #include <asm/dma.h> |
37 | #include <mach/dma.h> | 36 | #include <mach/dma.h> |
38 | 37 | ||
39 | #include "s3c24xx-pcm.h" | 38 | #include "s3c-dma.h" |
40 | #include "s3c24xx-ac97.h" | 39 | #include "s3c24xx-ac97.h" |
41 | 40 | ||
42 | struct s3c24xx_ac97_info { | 41 | struct s3c24xx_ac97_info { |
@@ -189,21 +188,21 @@ static struct s3c2410_dma_client s3c2443_dma_client_micin = { | |||
189 | .name = "AC97 Mic Mono in" | 188 | .name = "AC97 Mic Mono in" |
190 | }; | 189 | }; |
191 | 190 | ||
192 | static struct s3c24xx_pcm_dma_params s3c2443_ac97_pcm_stereo_out = { | 191 | static struct s3c_dma_params s3c2443_ac97_pcm_stereo_out = { |
193 | .client = &s3c2443_dma_client_out, | 192 | .client = &s3c2443_dma_client_out, |
194 | .channel = DMACH_PCM_OUT, | 193 | .channel = DMACH_PCM_OUT, |
195 | .dma_addr = S3C2440_PA_AC97 + S3C_AC97_PCM_DATA, | 194 | .dma_addr = S3C2440_PA_AC97 + S3C_AC97_PCM_DATA, |
196 | .dma_size = 4, | 195 | .dma_size = 4, |
197 | }; | 196 | }; |
198 | 197 | ||
199 | static struct s3c24xx_pcm_dma_params s3c2443_ac97_pcm_stereo_in = { | 198 | static struct s3c_dma_params s3c2443_ac97_pcm_stereo_in = { |
200 | .client = &s3c2443_dma_client_in, | 199 | .client = &s3c2443_dma_client_in, |
201 | .channel = DMACH_PCM_IN, | 200 | .channel = DMACH_PCM_IN, |
202 | .dma_addr = S3C2440_PA_AC97 + S3C_AC97_PCM_DATA, | 201 | .dma_addr = S3C2440_PA_AC97 + S3C_AC97_PCM_DATA, |
203 | .dma_size = 4, | 202 | .dma_size = 4, |
204 | }; | 203 | }; |
205 | 204 | ||
206 | static struct s3c24xx_pcm_dma_params s3c2443_ac97_mic_mono_in = { | 205 | static struct s3c_dma_params s3c2443_ac97_mic_mono_in = { |
207 | .client = &s3c2443_dma_client_micin, | 206 | .client = &s3c2443_dma_client_micin, |
208 | .channel = DMACH_MIC_IN, | 207 | .channel = DMACH_MIC_IN, |
209 | .dma_addr = S3C2440_PA_AC97 + S3C_AC97_MIC_DATA, | 208 | .dma_addr = S3C2440_PA_AC97 + S3C_AC97_MIC_DATA, |
@@ -291,7 +290,7 @@ static int s3c2443_ac97_trigger(struct snd_pcm_substream *substream, int cmd, | |||
291 | { | 290 | { |
292 | u32 ac_glbctrl; | 291 | u32 ac_glbctrl; |
293 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 292 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
294 | int channel = ((struct s3c24xx_pcm_dma_params *) | 293 | int channel = ((struct s3c_dma_params *) |
295 | rtd->dai->cpu_dai->dma_data)->channel; | 294 | rtd->dai->cpu_dai->dma_data)->channel; |
296 | 295 | ||
297 | ac_glbctrl = readl(s3c24xx_ac97.regs + S3C_AC97_GLBCTRL); | 296 | ac_glbctrl = readl(s3c24xx_ac97.regs + S3C_AC97_GLBCTRL); |
@@ -340,7 +339,7 @@ static int s3c2443_ac97_mic_trigger(struct snd_pcm_substream *substream, | |||
340 | { | 339 | { |
341 | u32 ac_glbctrl; | 340 | u32 ac_glbctrl; |
342 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 341 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
343 | int channel = ((struct s3c24xx_pcm_dma_params *) | 342 | int channel = ((struct s3c_dma_params *) |
344 | rtd->dai->cpu_dai->dma_data)->channel; | 343 | rtd->dai->cpu_dai->dma_data)->channel; |
345 | 344 | ||
346 | ac_glbctrl = readl(s3c24xx_ac97.regs + S3C_AC97_GLBCTRL); | 345 | ac_glbctrl = readl(s3c24xx_ac97.regs + S3C_AC97_GLBCTRL); |