aboutsummaryrefslogtreecommitdiffstats
path: root/sound/arm/pxa2xx-ac97.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-11-17 09:10:38 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:20:03 -0500
commitd18f83764e376dea9e14a8ac53d1e14004fa9c13 (patch)
treef51e4a25f8cf71d642c0ab46233858322427c293 /sound/arm/pxa2xx-ac97.c
parentceb9e476c89f50e9ba7de914bbec2c05e9647915 (diff)
[ALSA] Remove xxx_t typedefs: ARM PXA2xx
Modules: ARM PXA2XX driver Remove xxx_t typedefs from the ARM PXA2xx driver. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/arm/pxa2xx-ac97.c')
-rw-r--r--sound/arm/pxa2xx-ac97.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/sound/arm/pxa2xx-ac97.c b/sound/arm/pxa2xx-ac97.c
index c96c8a2aa1c2..d9efc37393ee 100644
--- a/sound/arm/pxa2xx-ac97.c
+++ b/sound/arm/pxa2xx-ac97.c
@@ -37,7 +37,7 @@ static DECLARE_MUTEX(car_mutex);
37static DECLARE_WAIT_QUEUE_HEAD(gsr_wq); 37static DECLARE_WAIT_QUEUE_HEAD(gsr_wq);
38static volatile long gsr_bits; 38static volatile long gsr_bits;
39 39
40static unsigned short pxa2xx_ac97_read(ac97_t *ac97, unsigned short reg) 40static unsigned short pxa2xx_ac97_read(struct snd_ac97 *ac97, unsigned short reg)
41{ 41{
42 unsigned short val = -1; 42 unsigned short val = -1;
43 volatile u32 *reg_addr; 43 volatile u32 *reg_addr;
@@ -75,7 +75,7 @@ out: up(&car_mutex);
75 return val; 75 return val;
76} 76}
77 77
78static void pxa2xx_ac97_write(ac97_t *ac97, unsigned short reg, unsigned short val) 78static void pxa2xx_ac97_write(struct snd_ac97 *ac97, unsigned short reg, unsigned short val)
79{ 79{
80 volatile u32 *reg_addr; 80 volatile u32 *reg_addr;
81 81
@@ -99,7 +99,7 @@ static void pxa2xx_ac97_write(ac97_t *ac97, unsigned short reg, unsigned short v
99out: up(&car_mutex); 99out: up(&car_mutex);
100} 100}
101 101
102static void pxa2xx_ac97_reset(ac97_t *ac97) 102static void pxa2xx_ac97_reset(struct snd_ac97 *ac97)
103{ 103{
104 /* First, try cold reset */ 104 /* First, try cold reset */
105 GCR &= GCR_COLD_RST; /* clear everything but nCRST */ 105 GCR &= GCR_COLD_RST; /* clear everything but nCRST */
@@ -172,13 +172,13 @@ static irqreturn_t pxa2xx_ac97_irq(int irq, void *dev_id, struct pt_regs *regs)
172 return IRQ_NONE; 172 return IRQ_NONE;
173} 173}
174 174
175static ac97_bus_ops_t pxa2xx_ac97_ops = { 175static struct snd_ac97_bus_ops pxa2xx_ac97_ops = {
176 .read = pxa2xx_ac97_read, 176 .read = pxa2xx_ac97_read,
177 .write = pxa2xx_ac97_write, 177 .write = pxa2xx_ac97_write,
178 .reset = pxa2xx_ac97_reset, 178 .reset = pxa2xx_ac97_reset,
179}; 179};
180 180
181static pxa2xx_pcm_dma_params_t pxa2xx_ac97_pcm_out = { 181static struct pxa2xx_pcm_dma_params pxa2xx_ac97_pcm_out = {
182 .name = "AC97 PCM out", 182 .name = "AC97 PCM out",
183 .dev_addr = __PREG(PCDR), 183 .dev_addr = __PREG(PCDR),
184 .drcmr = &DRCMRTXPCDR, 184 .drcmr = &DRCMRTXPCDR,
@@ -186,7 +186,7 @@ static pxa2xx_pcm_dma_params_t pxa2xx_ac97_pcm_out = {
186 DCMD_BURST32 | DCMD_WIDTH4, 186 DCMD_BURST32 | DCMD_WIDTH4,
187}; 187};
188 188
189static pxa2xx_pcm_dma_params_t pxa2xx_ac97_pcm_in = { 189static struct pxa2xx_pcm_dma_params pxa2xx_ac97_pcm_in = {
190 .name = "AC97 PCM in", 190 .name = "AC97 PCM in",
191 .dev_addr = __PREG(PCDR), 191 .dev_addr = __PREG(PCDR),
192 .drcmr = &DRCMRRXPCDR, 192 .drcmr = &DRCMRRXPCDR,
@@ -194,12 +194,12 @@ static pxa2xx_pcm_dma_params_t pxa2xx_ac97_pcm_in = {
194 DCMD_BURST32 | DCMD_WIDTH4, 194 DCMD_BURST32 | DCMD_WIDTH4,
195}; 195};
196 196
197static snd_pcm_t *pxa2xx_ac97_pcm; 197static struct snd_pcm *pxa2xx_ac97_pcm;
198static ac97_t *pxa2xx_ac97_ac97; 198static struct snd_ac97 *pxa2xx_ac97_ac97;
199 199
200static int pxa2xx_ac97_pcm_startup(snd_pcm_substream_t *substream) 200static int pxa2xx_ac97_pcm_startup(struct snd_pcm_substream *substream)
201{ 201{
202 snd_pcm_runtime_t *runtime = substream->runtime; 202 struct snd_pcm_runtime *runtime = substream->runtime;
203 pxa2xx_audio_ops_t *platform_ops; 203 pxa2xx_audio_ops_t *platform_ops;
204 int r; 204 int r;
205 205
@@ -218,7 +218,7 @@ static int pxa2xx_ac97_pcm_startup(snd_pcm_substream_t *substream)
218 return 0; 218 return 0;
219} 219}
220 220
221static void pxa2xx_ac97_pcm_shutdown(snd_pcm_substream_t *substream) 221static void pxa2xx_ac97_pcm_shutdown(struct snd_pcm_substream *substream)
222{ 222{
223 pxa2xx_audio_ops_t *platform_ops; 223 pxa2xx_audio_ops_t *platform_ops;
224 224
@@ -227,15 +227,15 @@ static void pxa2xx_ac97_pcm_shutdown(snd_pcm_substream_t *substream)
227 platform_ops->shutdown(substream, platform_ops->priv); 227 platform_ops->shutdown(substream, platform_ops->priv);
228} 228}
229 229
230static int pxa2xx_ac97_pcm_prepare(snd_pcm_substream_t *substream) 230static int pxa2xx_ac97_pcm_prepare(struct snd_pcm_substream *substream)
231{ 231{
232 snd_pcm_runtime_t *runtime = substream->runtime; 232 struct snd_pcm_runtime *runtime = substream->runtime;
233 int reg = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? 233 int reg = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
234 AC97_PCM_FRONT_DAC_RATE : AC97_PCM_LR_ADC_RATE; 234 AC97_PCM_FRONT_DAC_RATE : AC97_PCM_LR_ADC_RATE;
235 return snd_ac97_set_rate(pxa2xx_ac97_ac97, reg, runtime->rate); 235 return snd_ac97_set_rate(pxa2xx_ac97_ac97, reg, runtime->rate);
236} 236}
237 237
238static pxa2xx_pcm_client_t pxa2xx_ac97_pcm_client = { 238static struct pxa2xx_pcm_client pxa2xx_ac97_pcm_client = {
239 .playback_params = &pxa2xx_ac97_pcm_out, 239 .playback_params = &pxa2xx_ac97_pcm_out,
240 .capture_params = &pxa2xx_ac97_pcm_in, 240 .capture_params = &pxa2xx_ac97_pcm_in,
241 .startup = pxa2xx_ac97_pcm_startup, 241 .startup = pxa2xx_ac97_pcm_startup,
@@ -245,7 +245,7 @@ static pxa2xx_pcm_client_t pxa2xx_ac97_pcm_client = {
245 245
246#ifdef CONFIG_PM 246#ifdef CONFIG_PM
247 247
248static int pxa2xx_ac97_do_suspend(snd_card_t *card, pm_message_t state) 248static int pxa2xx_ac97_do_suspend(struct snd_card *card, pm_message_t state)
249{ 249{
250 if (card->power_state != SNDRV_CTL_POWER_D3cold) { 250 if (card->power_state != SNDRV_CTL_POWER_D3cold) {
251 pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data; 251 pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data;
@@ -261,7 +261,7 @@ static int pxa2xx_ac97_do_suspend(snd_card_t *card, pm_message_t state)
261 return 0; 261 return 0;
262} 262}
263 263
264static int pxa2xx_ac97_do_resume(snd_card_t *card) 264static int pxa2xx_ac97_do_resume(struct snd_card *card)
265{ 265{
266 if (card->power_state != SNDRV_CTL_POWER_D0) { 266 if (card->power_state != SNDRV_CTL_POWER_D0) {
267 pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data; 267 pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data;
@@ -277,7 +277,7 @@ static int pxa2xx_ac97_do_resume(snd_card_t *card)
277 277
278static int pxa2xx_ac97_suspend(struct platform_device *dev, pm_message_t state) 278static int pxa2xx_ac97_suspend(struct platform_device *dev, pm_message_t state)
279{ 279{
280 snd_card_t *card = platform_get_drvdata(dev); 280 struct snd_card *card = platform_get_drvdata(dev);
281 int ret = 0; 281 int ret = 0;
282 282
283 if (card) 283 if (card)
@@ -288,7 +288,7 @@ static int pxa2xx_ac97_suspend(struct platform_device *dev, pm_message_t state)
288 288
289static int pxa2xx_ac97_resume(struct platform_device *dev) 289static int pxa2xx_ac97_resume(struct platform_device *dev)
290{ 290{
291 snd_card_t *card = platform_get_drvdata(dev); 291 struct snd_card *card = platform_get_drvdata(dev);
292 int ret = 0; 292 int ret = 0;
293 293
294 if (card) 294 if (card)
@@ -304,9 +304,9 @@ static int pxa2xx_ac97_resume(struct platform_device *dev)
304 304
305static int pxa2xx_ac97_probe(struct platform_device *dev) 305static int pxa2xx_ac97_probe(struct platform_device *dev)
306{ 306{
307 snd_card_t *card; 307 struct snd_card *card;
308 ac97_bus_t *ac97_bus; 308 struct snd_ac97_bus *ac97_bus;
309 ac97_template_t ac97_template; 309 struct snd_ac97_template ac97_template;
310 int ret; 310 int ret;
311 311
312 ret = -ENOMEM; 312 ret = -ENOMEM;
@@ -370,7 +370,7 @@ static int pxa2xx_ac97_probe(struct platform_device *dev)
370 370
371static int pxa2xx_ac97_remove(struct platform_device *dev) 371static int pxa2xx_ac97_remove(struct platform_device *dev)
372{ 372{
373 snd_card_t *card = platform_get_drvdata(dev); 373 struct snd_card *card = platform_get_drvdata(dev);
374 374
375 if (card) { 375 if (card) {
376 snd_card_free(card); 376 snd_card_free(card);