diff options
Diffstat (limited to 'sound/soc/pxa/pxa2xx-i2s.c')
-rw-r--r-- | sound/soc/pxa/pxa2xx-i2s.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/sound/soc/pxa/pxa2xx-i2s.c b/sound/soc/pxa/pxa2xx-i2s.c index 425071030970..9c06553b9267 100644 --- a/sound/soc/pxa/pxa2xx-i2s.c +++ b/sound/soc/pxa/pxa2xx-i2s.c | |||
@@ -9,9 +9,6 @@ | |||
9 | * under the terms of the GNU General Public License as published by the | 9 | * under the terms of the GNU General Public License as published by the |
10 | * Free Software Foundation; either version 2 of the License, or (at your | 10 | * Free Software Foundation; either version 2 of the License, or (at your |
11 | * option) any later version. | 11 | * option) any later version. |
12 | * | ||
13 | * Revision history | ||
14 | * 12th Aug 2005 Initial version. | ||
15 | */ | 12 | */ |
16 | 13 | ||
17 | #include <linux/init.h> | 14 | #include <linux/init.h> |
@@ -80,7 +77,7 @@ static struct pxa2xx_gpio gpio_bus[] = { | |||
80 | static int pxa2xx_i2s_startup(struct snd_pcm_substream *substream) | 77 | static int pxa2xx_i2s_startup(struct snd_pcm_substream *substream) |
81 | { | 78 | { |
82 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 79 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
83 | struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; | 80 | struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai; |
84 | 81 | ||
85 | if (!cpu_dai->active) { | 82 | if (!cpu_dai->active) { |
86 | SACR0 |= SACR0_RST; | 83 | SACR0 |= SACR0_RST; |
@@ -101,7 +98,7 @@ static int pxa_i2s_wait(void) | |||
101 | return 0; | 98 | return 0; |
102 | } | 99 | } |
103 | 100 | ||
104 | static int pxa2xx_i2s_set_dai_fmt(struct snd_soc_cpu_dai *cpu_dai, | 101 | static int pxa2xx_i2s_set_dai_fmt(struct snd_soc_dai *cpu_dai, |
105 | unsigned int fmt) | 102 | unsigned int fmt) |
106 | { | 103 | { |
107 | /* interface format */ | 104 | /* interface format */ |
@@ -127,7 +124,7 @@ static int pxa2xx_i2s_set_dai_fmt(struct snd_soc_cpu_dai *cpu_dai, | |||
127 | return 0; | 124 | return 0; |
128 | } | 125 | } |
129 | 126 | ||
130 | static int pxa2xx_i2s_set_dai_sysclk(struct snd_soc_cpu_dai *cpu_dai, | 127 | static int pxa2xx_i2s_set_dai_sysclk(struct snd_soc_dai *cpu_dai, |
131 | int clk_id, unsigned int freq, int dir) | 128 | int clk_id, unsigned int freq, int dir) |
132 | { | 129 | { |
133 | if (clk_id != PXA2XX_I2S_SYSCLK) | 130 | if (clk_id != PXA2XX_I2S_SYSCLK) |
@@ -143,7 +140,7 @@ static int pxa2xx_i2s_hw_params(struct snd_pcm_substream *substream, | |||
143 | struct snd_pcm_hw_params *params) | 140 | struct snd_pcm_hw_params *params) |
144 | { | 141 | { |
145 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 142 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
146 | struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; | 143 | struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai; |
147 | 144 | ||
148 | pxa_gpio_mode(gpio_bus[pxa_i2s.master].rx); | 145 | pxa_gpio_mode(gpio_bus[pxa_i2s.master].rx); |
149 | pxa_gpio_mode(gpio_bus[pxa_i2s.master].tx); | 146 | pxa_gpio_mode(gpio_bus[pxa_i2s.master].tx); |
@@ -240,7 +237,7 @@ static void pxa2xx_i2s_shutdown(struct snd_pcm_substream *substream) | |||
240 | 237 | ||
241 | #ifdef CONFIG_PM | 238 | #ifdef CONFIG_PM |
242 | static int pxa2xx_i2s_suspend(struct platform_device *dev, | 239 | static int pxa2xx_i2s_suspend(struct platform_device *dev, |
243 | struct snd_soc_cpu_dai *dai) | 240 | struct snd_soc_dai *dai) |
244 | { | 241 | { |
245 | if (!dai->active) | 242 | if (!dai->active) |
246 | return 0; | 243 | return 0; |
@@ -258,7 +255,7 @@ static int pxa2xx_i2s_suspend(struct platform_device *dev, | |||
258 | } | 255 | } |
259 | 256 | ||
260 | static int pxa2xx_i2s_resume(struct platform_device *pdev, | 257 | static int pxa2xx_i2s_resume(struct platform_device *pdev, |
261 | struct snd_soc_cpu_dai *dai) | 258 | struct snd_soc_dai *dai) |
262 | { | 259 | { |
263 | if (!dai->active) | 260 | if (!dai->active) |
264 | return 0; | 261 | return 0; |
@@ -283,7 +280,7 @@ static int pxa2xx_i2s_resume(struct platform_device *pdev, | |||
283 | 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 | \ |
284 | SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_96000) | 281 | SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_96000) |
285 | 282 | ||
286 | struct snd_soc_cpu_dai pxa_i2s_dai = { | 283 | struct snd_soc_dai pxa_i2s_dai = { |
287 | .name = "pxa2xx-i2s", | 284 | .name = "pxa2xx-i2s", |
288 | .id = 0, | 285 | .id = 0, |
289 | .type = SND_SOC_DAI_I2S, | 286 | .type = SND_SOC_DAI_I2S, |