diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-14 16:26:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-14 16:26:07 -0400 |
commit | b5cf43c47b05c8deb10f9674d541dddbdec0e341 (patch) | |
tree | 41c9b71c40f5f0d3cd702f0b602254867630e6a1 /sound/soc/s3c24xx/s3c2443-ac97.c | |
parent | b7f80afa28866c257876c272d6c013e0dbed3c31 (diff) | |
parent | fe0a3fe324811385b64790d42079bf534798a0cd (diff) |
Merge branch 'for-linus' of git://git.alsa-project.org/alsa-kernel
* 'for-linus' of git://git.alsa-project.org/alsa-kernel: (179 commits)
ALSA: Release v1.0.17
ALSA: correct kcalloc usage
ALSA: ALSA driver for SGI O2 audio board
ALSA: asoc: kbuild - only show menus for the current ASoC CPU platform.
ALSA: ALSA driver for SGI HAL2 audio device
ALSA: hda - Fix FSC V5505 model
ALSA: hda - Fix missing init for unsol events on micsense model
ALSA: hda - Fix internal mic vref pin setup
ALSA: hda: 92hd71bxx PC Beep
ALSA: HDA - HP dc7600 with pci sub IDs 0x103c/0x3011 belongs to hp-3013 model
ALSA: usb-audio: add some Yamaha USB MIDI quirks
ALSA: usb-audio: fix Yamaha KX quirk
ALSA: ASoC: Au12x0/Au1550 PSC Audio support
ALSA: Add Yamaha KX49 (USB MIDI controller) to usbquirks.h
ALSA: ASoC: pxa2xx-ac97: fix warning due to missing argument in fuction declaration
ALSA: tosa: fix compilation with new DAPM API
ALSA: wavefront - add const
ALSA: remove CONFIG_KMOD from sound
ALSA: Fix a const to non-const assignment in the Digigram VXpocket sound driver
ALSA: Fix a const pointer usage warning in the Digigram VX soundcard driver
...
Diffstat (limited to 'sound/soc/s3c24xx/s3c2443-ac97.c')
-rw-r--r-- | sound/soc/s3c24xx/s3c2443-ac97.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sound/soc/s3c24xx/s3c2443-ac97.c b/sound/soc/s3c24xx/s3c2443-ac97.c index e81d9a6c83da..783349b7fede 100644 --- a/sound/soc/s3c24xx/s3c2443-ac97.c +++ b/sound/soc/s3c24xx/s3c2443-ac97.c | |||
@@ -10,9 +10,6 @@ | |||
10 | * This program is free software; you can redistribute it and/or modify | 10 | * This program is free software; you can redistribute it and/or modify |
11 | * it under the terms of the GNU General Public License version 2 as | 11 | * it under the terms of the GNU General Public License version 2 as |
12 | * published by the Free Software Foundation. | 12 | * published by the Free Software Foundation. |
13 | * | ||
14 | * Revision history | ||
15 | * 21st Mar 2007 Initial Version | ||
16 | */ | 13 | */ |
17 | 14 | ||
18 | #include <linux/init.h> | 15 | #include <linux/init.h> |
@@ -212,7 +209,8 @@ static struct s3c24xx_pcm_dma_params s3c2443_ac97_mic_mono_in = { | |||
212 | .dma_size = 4, | 209 | .dma_size = 4, |
213 | }; | 210 | }; |
214 | 211 | ||
215 | static int s3c2443_ac97_probe(struct platform_device *pdev) | 212 | static int s3c2443_ac97_probe(struct platform_device *pdev, |
213 | struct snd_soc_dai *dai) | ||
216 | { | 214 | { |
217 | int ret; | 215 | int ret; |
218 | u32 ac_glbctrl; | 216 | u32 ac_glbctrl; |
@@ -263,7 +261,8 @@ static int s3c2443_ac97_probe(struct platform_device *pdev) | |||
263 | return ret; | 261 | return ret; |
264 | } | 262 | } |
265 | 263 | ||
266 | static void s3c2443_ac97_remove(struct platform_device *pdev) | 264 | static void s3c2443_ac97_remove(struct platform_device *pdev, |
265 | struct snd_soc_dai *dai) | ||
267 | { | 266 | { |
268 | free_irq(IRQ_S3C244x_AC97, NULL); | 267 | free_irq(IRQ_S3C244x_AC97, NULL); |
269 | clk_disable(s3c24xx_ac97.ac97_clk); | 268 | clk_disable(s3c24xx_ac97.ac97_clk); |
@@ -275,7 +274,7 @@ static int s3c2443_ac97_hw_params(struct snd_pcm_substream *substream, | |||
275 | struct snd_pcm_hw_params *params) | 274 | struct snd_pcm_hw_params *params) |
276 | { | 275 | { |
277 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 276 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
278 | struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; | 277 | struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai; |
279 | 278 | ||
280 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) | 279 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) |
281 | cpu_dai->dma_data = &s3c2443_ac97_pcm_stereo_out; | 280 | cpu_dai->dma_data = &s3c2443_ac97_pcm_stereo_out; |
@@ -317,7 +316,7 @@ static int s3c2443_ac97_hw_mic_params(struct snd_pcm_substream *substream, | |||
317 | struct snd_pcm_hw_params *params) | 316 | struct snd_pcm_hw_params *params) |
318 | { | 317 | { |
319 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 318 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
320 | struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; | 319 | struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai; |
321 | 320 | ||
322 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) | 321 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) |
323 | return -ENODEV; | 322 | return -ENODEV; |
@@ -353,7 +352,7 @@ static int s3c2443_ac97_mic_trigger(struct snd_pcm_substream *substream, | |||
353 | SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 | \ | 352 | SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 | \ |
354 | SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000) | 353 | SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000) |
355 | 354 | ||
356 | struct snd_soc_cpu_dai s3c2443_ac97_dai[] = { | 355 | struct snd_soc_dai s3c2443_ac97_dai[] = { |
357 | { | 356 | { |
358 | .name = "s3c2443-ac97", | 357 | .name = "s3c2443-ac97", |
359 | .id = 0, | 358 | .id = 0, |