diff options
author | Liam Girdwood <lg@opensource.wolfsonmicro.com> | 2008-07-07 11:08:11 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-07-10 03:32:43 -0400 |
commit | 917f93ac80a1c007d4a3ce269a3712f93a75728f (patch) | |
tree | b094def3f56cb87e6f6a6b38449b291f68171feb /sound/soc/pxa/pxa2xx-ac97.c | |
parent | 8687eb8bded8c3c5842a85bd0c30e43fc5a3e0e0 (diff) |
ALSA: asoc: pxa - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.
This patch merges struct snd_soc_codec_dai and struct
snd_soc_cpu_dai into struct snd_soc_dai for the PXA platform.
Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/soc/pxa/pxa2xx-ac97.c')
-rw-r--r-- | sound/soc/pxa/pxa2xx-ac97.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sound/soc/pxa/pxa2xx-ac97.c b/sound/soc/pxa/pxa2xx-ac97.c index cb947956ed1a..b458667538cd 100644 --- a/sound/soc/pxa/pxa2xx-ac97.c +++ b/sound/soc/pxa/pxa2xx-ac97.c | |||
@@ -283,7 +283,7 @@ static struct pxa2xx_pcm_dma_params pxa2xx_ac97_pcm_mic_mono_in = { | |||
283 | 283 | ||
284 | #ifdef CONFIG_PM | 284 | #ifdef CONFIG_PM |
285 | static int pxa2xx_ac97_suspend(struct platform_device *pdev, | 285 | static int pxa2xx_ac97_suspend(struct platform_device *pdev, |
286 | struct snd_soc_cpu_dai *dai) | 286 | struct snd_soc_dai *dai) |
287 | { | 287 | { |
288 | GCR |= GCR_ACLINK_OFF; | 288 | GCR |= GCR_ACLINK_OFF; |
289 | clk_disable(ac97_clk); | 289 | clk_disable(ac97_clk); |
@@ -291,7 +291,7 @@ static int pxa2xx_ac97_suspend(struct platform_device *pdev, | |||
291 | } | 291 | } |
292 | 292 | ||
293 | static int pxa2xx_ac97_resume(struct platform_device *pdev, | 293 | static int pxa2xx_ac97_resume(struct platform_device *pdev, |
294 | struct snd_soc_cpu_dai *dai) | 294 | struct snd_soc_dai *dai) |
295 | { | 295 | { |
296 | pxa_gpio_mode(GPIO31_SYNC_AC97_MD); | 296 | pxa_gpio_mode(GPIO31_SYNC_AC97_MD); |
297 | pxa_gpio_mode(GPIO30_SDATA_OUT_AC97_MD); | 297 | pxa_gpio_mode(GPIO30_SDATA_OUT_AC97_MD); |
@@ -311,7 +311,7 @@ static int pxa2xx_ac97_resume(struct platform_device *pdev, | |||
311 | #endif | 311 | #endif |
312 | 312 | ||
313 | static int pxa2xx_ac97_probe(struct platform_device *pdev, | 313 | static int pxa2xx_ac97_probe(struct platform_device *pdev, |
314 | struct snd_soc_cpu_dai *dai) | 314 | struct snd_soc_dai *dai) |
315 | { | 315 | { |
316 | int ret; | 316 | int ret; |
317 | 317 | ||
@@ -373,7 +373,7 @@ static int pxa2xx_ac97_hw_params(struct snd_pcm_substream *substream, | |||
373 | struct snd_pcm_hw_params *params) | 373 | struct snd_pcm_hw_params *params) |
374 | { | 374 | { |
375 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 375 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
376 | struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; | 376 | struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai; |
377 | 377 | ||
378 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) | 378 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) |
379 | cpu_dai->dma_data = &pxa2xx_ac97_pcm_stereo_out; | 379 | cpu_dai->dma_data = &pxa2xx_ac97_pcm_stereo_out; |
@@ -387,7 +387,7 @@ static int pxa2xx_ac97_hw_aux_params(struct snd_pcm_substream *substream, | |||
387 | struct snd_pcm_hw_params *params) | 387 | struct snd_pcm_hw_params *params) |
388 | { | 388 | { |
389 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 389 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
390 | struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; | 390 | struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai; |
391 | 391 | ||
392 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) | 392 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) |
393 | cpu_dai->dma_data = &pxa2xx_ac97_pcm_aux_mono_out; | 393 | cpu_dai->dma_data = &pxa2xx_ac97_pcm_aux_mono_out; |
@@ -401,7 +401,7 @@ static int pxa2xx_ac97_hw_mic_params(struct snd_pcm_substream *substream, | |||
401 | struct snd_pcm_hw_params *params) | 401 | struct snd_pcm_hw_params *params) |
402 | { | 402 | { |
403 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 403 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
404 | struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; | 404 | struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai; |
405 | 405 | ||
406 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) | 406 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) |
407 | return -ENODEV; | 407 | return -ENODEV; |
@@ -419,7 +419,7 @@ static int pxa2xx_ac97_hw_mic_params(struct snd_pcm_substream *substream, | |||
419 | * There is only 1 physical AC97 interface for pxa2xx, but it | 419 | * There is only 1 physical AC97 interface for pxa2xx, but it |
420 | * has extra fifo's that can be used for aux DACs and ADCs. | 420 | * has extra fifo's that can be used for aux DACs and ADCs. |
421 | */ | 421 | */ |
422 | struct snd_soc_cpu_dai pxa_ac97_dai[] = { | 422 | struct snd_soc_dai pxa_ac97_dai[] = { |
423 | { | 423 | { |
424 | .name = "pxa2xx-ac97", | 424 | .name = "pxa2xx-ac97", |
425 | .id = 0, | 425 | .id = 0, |