aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/pxa/pxa2xx-i2s.c
diff options
context:
space:
mode:
authorLiam Girdwood <lg@opensource.wolfsonmicro.com>2008-07-07 11:08:11 -0400
committerJaroslav Kysela <perex@perex.cz>2008-07-10 03:32:43 -0400
commit917f93ac80a1c007d4a3ce269a3712f93a75728f (patch)
treeb094def3f56cb87e6f6a6b38449b291f68171feb /sound/soc/pxa/pxa2xx-i2s.c
parent8687eb8bded8c3c5842a85bd0c30e43fc5a3e0e0 (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-i2s.c')
-rw-r--r--sound/soc/pxa/pxa2xx-i2s.c14
1 files changed, 7 insertions, 7 deletions
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,