aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/pxa/corgi.c4
-rw-r--r--sound/soc/pxa/poodle.c4
-rw-r--r--sound/soc/pxa/pxa2xx-ac97.c14
-rw-r--r--sound/soc/pxa/pxa2xx-ac97.h2
-rw-r--r--sound/soc/pxa/pxa2xx-i2s.c14
-rw-r--r--sound/soc/pxa/pxa2xx-i2s.h2
-rw-r--r--sound/soc/pxa/pxa2xx-pcm.c2
-rw-r--r--sound/soc/pxa/spitz.c4
8 files changed, 23 insertions, 23 deletions
diff --git a/sound/soc/pxa/corgi.c b/sound/soc/pxa/corgi.c
index db18ef68b691..782afbf7ada5 100644
--- a/sound/soc/pxa/corgi.c
+++ b/sound/soc/pxa/corgi.c
@@ -123,8 +123,8 @@ static int corgi_hw_params(struct snd_pcm_substream *substream,
123 struct snd_pcm_hw_params *params) 123 struct snd_pcm_hw_params *params)
124{ 124{
125 struct snd_soc_pcm_runtime *rtd = substream->private_data; 125 struct snd_soc_pcm_runtime *rtd = substream->private_data;
126 struct snd_soc_codec_dai *codec_dai = rtd->dai->codec_dai; 126 struct snd_soc_dai *codec_dai = rtd->dai->codec_dai;
127 struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; 127 struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
128 unsigned int clk = 0; 128 unsigned int clk = 0;
129 int ret = 0; 129 int ret = 0;
130 130
diff --git a/sound/soc/pxa/poodle.c b/sound/soc/pxa/poodle.c
index 36cbf69f5f82..ce25b6bf340d 100644
--- a/sound/soc/pxa/poodle.c
+++ b/sound/soc/pxa/poodle.c
@@ -102,8 +102,8 @@ static int poodle_hw_params(struct snd_pcm_substream *substream,
102 struct snd_pcm_hw_params *params) 102 struct snd_pcm_hw_params *params)
103{ 103{
104 struct snd_soc_pcm_runtime *rtd = substream->private_data; 104 struct snd_soc_pcm_runtime *rtd = substream->private_data;
105 struct snd_soc_codec_dai *codec_dai = rtd->dai->codec_dai; 105 struct snd_soc_dai *codec_dai = rtd->dai->codec_dai;
106 struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; 106 struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
107 unsigned int clk = 0; 107 unsigned int clk = 0;
108 int ret = 0; 108 int ret = 0;
109 109
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
285static int pxa2xx_ac97_suspend(struct platform_device *pdev, 285static 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
293static int pxa2xx_ac97_resume(struct platform_device *pdev, 293static 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
313static int pxa2xx_ac97_probe(struct platform_device *pdev, 313static 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 */
422struct snd_soc_cpu_dai pxa_ac97_dai[] = { 422struct snd_soc_dai pxa_ac97_dai[] = {
423{ 423{
424 .name = "pxa2xx-ac97", 424 .name = "pxa2xx-ac97",
425 .id = 0, 425 .id = 0,
diff --git a/sound/soc/pxa/pxa2xx-ac97.h b/sound/soc/pxa/pxa2xx-ac97.h
index b8ccfee095c4..e390de8edcd4 100644
--- a/sound/soc/pxa/pxa2xx-ac97.h
+++ b/sound/soc/pxa/pxa2xx-ac97.h
@@ -14,7 +14,7 @@
14#define PXA2XX_DAI_AC97_AUX 1 14#define PXA2XX_DAI_AC97_AUX 1
15#define PXA2XX_DAI_AC97_MIC 2 15#define PXA2XX_DAI_AC97_MIC 2
16 16
17extern struct snd_soc_cpu_dai pxa_ac97_dai[3]; 17extern struct snd_soc_dai pxa_ac97_dai[3];
18 18
19/* platform data */ 19/* platform data */
20extern struct snd_ac97_bus_ops pxa2xx_ac97_ops; 20extern struct snd_ac97_bus_ops pxa2xx_ac97_ops;
diff --git a/sound/soc/pxa/pxa2xx-i2s.c b/sound/soc/pxa/pxa2xx-i2s.c
index 35090c2870ff..9c06553b9267 100644
--- a/sound/soc/pxa/pxa2xx-i2s.c
+++ b/sound/soc/pxa/pxa2xx-i2s.c
@@ -77,7 +77,7 @@ static struct pxa2xx_gpio gpio_bus[] = {
77static int pxa2xx_i2s_startup(struct snd_pcm_substream *substream) 77static int pxa2xx_i2s_startup(struct snd_pcm_substream *substream)
78{ 78{
79 struct snd_soc_pcm_runtime *rtd = substream->private_data; 79 struct snd_soc_pcm_runtime *rtd = substream->private_data;
80 struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; 80 struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
81 81
82 if (!cpu_dai->active) { 82 if (!cpu_dai->active) {
83 SACR0 |= SACR0_RST; 83 SACR0 |= SACR0_RST;
@@ -98,7 +98,7 @@ static int pxa_i2s_wait(void)
98 return 0; 98 return 0;
99} 99}
100 100
101static int pxa2xx_i2s_set_dai_fmt(struct snd_soc_cpu_dai *cpu_dai, 101static int pxa2xx_i2s_set_dai_fmt(struct snd_soc_dai *cpu_dai,
102 unsigned int fmt) 102 unsigned int fmt)
103{ 103{
104 /* interface format */ 104 /* interface format */
@@ -124,7 +124,7 @@ static int pxa2xx_i2s_set_dai_fmt(struct snd_soc_cpu_dai *cpu_dai,
124 return 0; 124 return 0;
125} 125}
126 126
127static int pxa2xx_i2s_set_dai_sysclk(struct snd_soc_cpu_dai *cpu_dai, 127static int pxa2xx_i2s_set_dai_sysclk(struct snd_soc_dai *cpu_dai,
128 int clk_id, unsigned int freq, int dir) 128 int clk_id, unsigned int freq, int dir)
129{ 129{
130 if (clk_id != PXA2XX_I2S_SYSCLK) 130 if (clk_id != PXA2XX_I2S_SYSCLK)
@@ -140,7 +140,7 @@ static int pxa2xx_i2s_hw_params(struct snd_pcm_substream *substream,
140 struct snd_pcm_hw_params *params) 140 struct snd_pcm_hw_params *params)
141{ 141{
142 struct snd_soc_pcm_runtime *rtd = substream->private_data; 142 struct snd_soc_pcm_runtime *rtd = substream->private_data;
143 struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; 143 struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
144 144
145 pxa_gpio_mode(gpio_bus[pxa_i2s.master].rx); 145 pxa_gpio_mode(gpio_bus[pxa_i2s.master].rx);
146 pxa_gpio_mode(gpio_bus[pxa_i2s.master].tx); 146 pxa_gpio_mode(gpio_bus[pxa_i2s.master].tx);
@@ -237,7 +237,7 @@ static void pxa2xx_i2s_shutdown(struct snd_pcm_substream *substream)
237 237
238#ifdef CONFIG_PM 238#ifdef CONFIG_PM
239static int pxa2xx_i2s_suspend(struct platform_device *dev, 239static int pxa2xx_i2s_suspend(struct platform_device *dev,
240 struct snd_soc_cpu_dai *dai) 240 struct snd_soc_dai *dai)
241{ 241{
242 if (!dai->active) 242 if (!dai->active)
243 return 0; 243 return 0;
@@ -255,7 +255,7 @@ static int pxa2xx_i2s_suspend(struct platform_device *dev,
255} 255}
256 256
257static int pxa2xx_i2s_resume(struct platform_device *pdev, 257static int pxa2xx_i2s_resume(struct platform_device *pdev,
258 struct snd_soc_cpu_dai *dai) 258 struct snd_soc_dai *dai)
259{ 259{
260 if (!dai->active) 260 if (!dai->active)
261 return 0; 261 return 0;
@@ -280,7 +280,7 @@ static int pxa2xx_i2s_resume(struct platform_device *pdev,
280 SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_44100 | \ 280 SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_44100 | \
281 SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_96000) 281 SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_96000)
282 282
283struct snd_soc_cpu_dai pxa_i2s_dai = { 283struct snd_soc_dai pxa_i2s_dai = {
284 .name = "pxa2xx-i2s", 284 .name = "pxa2xx-i2s",
285 .id = 0, 285 .id = 0,
286 .type = SND_SOC_DAI_I2S, 286 .type = SND_SOC_DAI_I2S,
diff --git a/sound/soc/pxa/pxa2xx-i2s.h b/sound/soc/pxa/pxa2xx-i2s.h
index 4435bd9f884f..e2def441153e 100644
--- a/sound/soc/pxa/pxa2xx-i2s.h
+++ b/sound/soc/pxa/pxa2xx-i2s.h
@@ -15,6 +15,6 @@
15/* I2S clock */ 15/* I2S clock */
16#define PXA2XX_I2S_SYSCLK 0 16#define PXA2XX_I2S_SYSCLK 0
17 17
18extern struct snd_soc_cpu_dai pxa_i2s_dai; 18extern struct snd_soc_dai pxa_i2s_dai;
19 19
20#endif 20#endif
diff --git a/sound/soc/pxa/pxa2xx-pcm.c b/sound/soc/pxa/pxa2xx-pcm.c
index 01ad7bf716b7..2df03ee5819e 100644
--- a/sound/soc/pxa/pxa2xx-pcm.c
+++ b/sound/soc/pxa/pxa2xx-pcm.c
@@ -330,7 +330,7 @@ static void pxa2xx_pcm_free_dma_buffers(struct snd_pcm *pcm)
330 330
331static u64 pxa2xx_pcm_dmamask = DMA_32BIT_MASK; 331static u64 pxa2xx_pcm_dmamask = DMA_32BIT_MASK;
332 332
333int pxa2xx_pcm_new(struct snd_card *card, struct snd_soc_codec_dai *dai, 333int pxa2xx_pcm_new(struct snd_card *card, struct snd_soc_dai *dai,
334 struct snd_pcm *pcm) 334 struct snd_pcm *pcm)
335{ 335{
336 int ret = 0; 336 int ret = 0;
diff --git a/sound/soc/pxa/spitz.c b/sound/soc/pxa/spitz.c
index ec18163fdddd..fd1abc7b08d8 100644
--- a/sound/soc/pxa/spitz.c
+++ b/sound/soc/pxa/spitz.c
@@ -121,8 +121,8 @@ static int spitz_hw_params(struct snd_pcm_substream *substream,
121 struct snd_pcm_hw_params *params) 121 struct snd_pcm_hw_params *params)
122{ 122{
123 struct snd_soc_pcm_runtime *rtd = substream->private_data; 123 struct snd_soc_pcm_runtime *rtd = substream->private_data;
124 struct snd_soc_codec_dai *codec_dai = rtd->dai->codec_dai; 124 struct snd_soc_dai *codec_dai = rtd->dai->codec_dai;
125 struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; 125 struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
126 unsigned int clk = 0; 126 unsigned int clk = 0;
127 int ret = 0; 127 int ret = 0;
128 128