diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 08:55:19 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:18:59 -0500 |
commit | 2fd16874aa6322e8b61879a78f3b485999506833 (patch) | |
tree | 3d7033f5e9a7873f0c7b871b8b097c79c1cec5e6 /sound/pci/au88x0/au88x0_pcm.c | |
parent | 208a1b4cb5ad97510aa9cbe51d09e55656691cb4 (diff) |
[ALSA] Remove xxx_t typedefs: PCI AU88x0
Modules: au88x0 driver
Remove xxx_t typedefs from the PCI AU88x0 drivers.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/au88x0/au88x0_pcm.c')
-rw-r--r-- | sound/pci/au88x0/au88x0_pcm.c | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/sound/pci/au88x0/au88x0_pcm.c b/sound/pci/au88x0/au88x0_pcm.c index 38bd2b5dd434..6a13ca1d545e 100644 --- a/sound/pci/au88x0/au88x0_pcm.c +++ b/sound/pci/au88x0/au88x0_pcm.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #define VORTEX_PCM_TYPE(x) (x->name[40]) | 31 | #define VORTEX_PCM_TYPE(x) (x->name[40]) |
32 | 32 | ||
33 | /* hardware definition */ | 33 | /* hardware definition */ |
34 | static snd_pcm_hardware_t snd_vortex_playback_hw_adb = { | 34 | static struct snd_pcm_hardware snd_vortex_playback_hw_adb = { |
35 | .info = | 35 | .info = |
36 | (SNDRV_PCM_INFO_MMAP | /* SNDRV_PCM_INFO_RESUME | */ | 36 | (SNDRV_PCM_INFO_MMAP | /* SNDRV_PCM_INFO_RESUME | */ |
37 | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_INTERLEAVED | | 37 | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_INTERLEAVED | |
@@ -56,7 +56,7 @@ static snd_pcm_hardware_t snd_vortex_playback_hw_adb = { | |||
56 | }; | 56 | }; |
57 | 57 | ||
58 | #ifndef CHIP_AU8820 | 58 | #ifndef CHIP_AU8820 |
59 | static snd_pcm_hardware_t snd_vortex_playback_hw_a3d = { | 59 | static struct snd_pcm_hardware snd_vortex_playback_hw_a3d = { |
60 | .info = | 60 | .info = |
61 | (SNDRV_PCM_INFO_MMAP | /* SNDRV_PCM_INFO_RESUME | */ | 61 | (SNDRV_PCM_INFO_MMAP | /* SNDRV_PCM_INFO_RESUME | */ |
62 | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_INTERLEAVED | | 62 | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_INTERLEAVED | |
@@ -76,7 +76,7 @@ static snd_pcm_hardware_t snd_vortex_playback_hw_a3d = { | |||
76 | .periods_max = 64, | 76 | .periods_max = 64, |
77 | }; | 77 | }; |
78 | #endif | 78 | #endif |
79 | static snd_pcm_hardware_t snd_vortex_playback_hw_spdif = { | 79 | static struct snd_pcm_hardware snd_vortex_playback_hw_spdif = { |
80 | .info = | 80 | .info = |
81 | (SNDRV_PCM_INFO_MMAP | /* SNDRV_PCM_INFO_RESUME | */ | 81 | (SNDRV_PCM_INFO_MMAP | /* SNDRV_PCM_INFO_RESUME | */ |
82 | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_INTERLEAVED | | 82 | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_INTERLEAVED | |
@@ -99,7 +99,7 @@ static snd_pcm_hardware_t snd_vortex_playback_hw_spdif = { | |||
99 | }; | 99 | }; |
100 | 100 | ||
101 | #ifndef CHIP_AU8810 | 101 | #ifndef CHIP_AU8810 |
102 | static snd_pcm_hardware_t snd_vortex_playback_hw_wt = { | 102 | static struct snd_pcm_hardware snd_vortex_playback_hw_wt = { |
103 | .info = (SNDRV_PCM_INFO_MMAP | | 103 | .info = (SNDRV_PCM_INFO_MMAP | |
104 | SNDRV_PCM_INFO_INTERLEAVED | | 104 | SNDRV_PCM_INFO_INTERLEAVED | |
105 | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_MMAP_VALID), | 105 | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_MMAP_VALID), |
@@ -117,10 +117,10 @@ static snd_pcm_hardware_t snd_vortex_playback_hw_wt = { | |||
117 | }; | 117 | }; |
118 | #endif | 118 | #endif |
119 | /* open callback */ | 119 | /* open callback */ |
120 | static int snd_vortex_pcm_open(snd_pcm_substream_t * substream) | 120 | static int snd_vortex_pcm_open(struct snd_pcm_substream *substream) |
121 | { | 121 | { |
122 | vortex_t *vortex = snd_pcm_substream_chip(substream); | 122 | vortex_t *vortex = snd_pcm_substream_chip(substream); |
123 | snd_pcm_runtime_t *runtime = substream->runtime; | 123 | struct snd_pcm_runtime *runtime = substream->runtime; |
124 | int err; | 124 | int err; |
125 | 125 | ||
126 | /* Force equal size periods */ | 126 | /* Force equal size periods */ |
@@ -169,7 +169,7 @@ static int snd_vortex_pcm_open(snd_pcm_substream_t * substream) | |||
169 | } | 169 | } |
170 | 170 | ||
171 | /* close callback */ | 171 | /* close callback */ |
172 | static int snd_vortex_pcm_close(snd_pcm_substream_t * substream) | 172 | static int snd_vortex_pcm_close(struct snd_pcm_substream *substream) |
173 | { | 173 | { |
174 | //vortex_t *chip = snd_pcm_substream_chip(substream); | 174 | //vortex_t *chip = snd_pcm_substream_chip(substream); |
175 | stream_t *stream = (stream_t *) substream->runtime->private_data; | 175 | stream_t *stream = (stream_t *) substream->runtime->private_data; |
@@ -185,12 +185,12 @@ static int snd_vortex_pcm_close(snd_pcm_substream_t * substream) | |||
185 | 185 | ||
186 | /* hw_params callback */ | 186 | /* hw_params callback */ |
187 | static int | 187 | static int |
188 | snd_vortex_pcm_hw_params(snd_pcm_substream_t * substream, | 188 | snd_vortex_pcm_hw_params(struct snd_pcm_substream *substream, |
189 | snd_pcm_hw_params_t * hw_params) | 189 | struct snd_pcm_hw_params *hw_params) |
190 | { | 190 | { |
191 | vortex_t *chip = snd_pcm_substream_chip(substream); | 191 | vortex_t *chip = snd_pcm_substream_chip(substream); |
192 | stream_t *stream = (stream_t *) (substream->runtime->private_data); | 192 | stream_t *stream = (stream_t *) (substream->runtime->private_data); |
193 | snd_pcm_sgbuf_t *sgbuf; | 193 | struct snd_sg_buf *sgbuf; |
194 | int err; | 194 | int err; |
195 | 195 | ||
196 | // Alloc buffer memory. | 196 | // Alloc buffer memory. |
@@ -200,7 +200,7 @@ snd_vortex_pcm_hw_params(snd_pcm_substream_t * substream, | |||
200 | printk(KERN_ERR "Vortex: pcm page alloc failed!\n"); | 200 | printk(KERN_ERR "Vortex: pcm page alloc failed!\n"); |
201 | return err; | 201 | return err; |
202 | } | 202 | } |
203 | //sgbuf = (snd_pcm_sgbuf_t *) substream->runtime->dma_private; | 203 | //sgbuf = (struct snd_sg_buf *) substream->runtime->dma_private; |
204 | sgbuf = snd_pcm_substream_sgbuf(substream); | 204 | sgbuf = snd_pcm_substream_sgbuf(substream); |
205 | /* | 205 | /* |
206 | printk(KERN_INFO "Vortex: periods %d, period_bytes %d, channels = %d\n", params_periods(hw_params), | 206 | printk(KERN_INFO "Vortex: periods %d, period_bytes %d, channels = %d\n", params_periods(hw_params), |
@@ -251,7 +251,7 @@ snd_vortex_pcm_hw_params(snd_pcm_substream_t * substream, | |||
251 | } | 251 | } |
252 | 252 | ||
253 | /* hw_free callback */ | 253 | /* hw_free callback */ |
254 | static int snd_vortex_pcm_hw_free(snd_pcm_substream_t * substream) | 254 | static int snd_vortex_pcm_hw_free(struct snd_pcm_substream *substream) |
255 | { | 255 | { |
256 | vortex_t *chip = snd_pcm_substream_chip(substream); | 256 | vortex_t *chip = snd_pcm_substream_chip(substream); |
257 | stream_t *stream = (stream_t *) (substream->runtime->private_data); | 257 | stream_t *stream = (stream_t *) (substream->runtime->private_data); |
@@ -277,10 +277,10 @@ static int snd_vortex_pcm_hw_free(snd_pcm_substream_t * substream) | |||
277 | } | 277 | } |
278 | 278 | ||
279 | /* prepare callback */ | 279 | /* prepare callback */ |
280 | static int snd_vortex_pcm_prepare(snd_pcm_substream_t * substream) | 280 | static int snd_vortex_pcm_prepare(struct snd_pcm_substream *substream) |
281 | { | 281 | { |
282 | vortex_t *chip = snd_pcm_substream_chip(substream); | 282 | vortex_t *chip = snd_pcm_substream_chip(substream); |
283 | snd_pcm_runtime_t *runtime = substream->runtime; | 283 | struct snd_pcm_runtime *runtime = substream->runtime; |
284 | stream_t *stream = (stream_t *) substream->runtime->private_data; | 284 | stream_t *stream = (stream_t *) substream->runtime->private_data; |
285 | int dma = stream->dma, fmt, dir; | 285 | int dma = stream->dma, fmt, dir; |
286 | 286 | ||
@@ -310,7 +310,7 @@ static int snd_vortex_pcm_prepare(snd_pcm_substream_t * substream) | |||
310 | } | 310 | } |
311 | 311 | ||
312 | /* trigger callback */ | 312 | /* trigger callback */ |
313 | static int snd_vortex_pcm_trigger(snd_pcm_substream_t * substream, int cmd) | 313 | static int snd_vortex_pcm_trigger(struct snd_pcm_substream *substream, int cmd) |
314 | { | 314 | { |
315 | vortex_t *chip = snd_pcm_substream_chip(substream); | 315 | vortex_t *chip = snd_pcm_substream_chip(substream); |
316 | stream_t *stream = (stream_t *) substream->runtime->private_data; | 316 | stream_t *stream = (stream_t *) substream->runtime->private_data; |
@@ -374,7 +374,7 @@ static int snd_vortex_pcm_trigger(snd_pcm_substream_t * substream, int cmd) | |||
374 | } | 374 | } |
375 | 375 | ||
376 | /* pointer callback */ | 376 | /* pointer callback */ |
377 | static snd_pcm_uframes_t snd_vortex_pcm_pointer(snd_pcm_substream_t * substream) | 377 | static snd_pcm_uframes_t snd_vortex_pcm_pointer(struct snd_pcm_substream *substream) |
378 | { | 378 | { |
379 | vortex_t *chip = snd_pcm_substream_chip(substream); | 379 | vortex_t *chip = snd_pcm_substream_chip(substream); |
380 | stream_t *stream = (stream_t *) substream->runtime->private_data; | 380 | stream_t *stream = (stream_t *) substream->runtime->private_data; |
@@ -395,13 +395,13 @@ static snd_pcm_uframes_t snd_vortex_pcm_pointer(snd_pcm_substream_t * substream) | |||
395 | 395 | ||
396 | /* Page callback. */ | 396 | /* Page callback. */ |
397 | /* | 397 | /* |
398 | static struct page *snd_pcm_sgbuf_ops_page(snd_pcm_substream_t *substream, unsigned long offset) { | 398 | static struct page *snd_pcm_sgbuf_ops_page(struct snd_pcm_substream *substream, unsigned long offset) { |
399 | 399 | ||
400 | 400 | ||
401 | } | 401 | } |
402 | */ | 402 | */ |
403 | /* operators */ | 403 | /* operators */ |
404 | static snd_pcm_ops_t snd_vortex_playback_ops = { | 404 | static struct snd_pcm_ops snd_vortex_playback_ops = { |
405 | .open = snd_vortex_pcm_open, | 405 | .open = snd_vortex_pcm_open, |
406 | .close = snd_vortex_pcm_close, | 406 | .close = snd_vortex_pcm_close, |
407 | .ioctl = snd_pcm_lib_ioctl, | 407 | .ioctl = snd_pcm_lib_ioctl, |
@@ -434,14 +434,14 @@ static char *vortex_pcm_name[VORTEX_PCM_LAST] = { | |||
434 | 434 | ||
435 | /* SPDIF kcontrol */ | 435 | /* SPDIF kcontrol */ |
436 | 436 | ||
437 | static int snd_vortex_spdif_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo) | 437 | static int snd_vortex_spdif_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) |
438 | { | 438 | { |
439 | uinfo->type = SNDRV_CTL_ELEM_TYPE_IEC958; | 439 | uinfo->type = SNDRV_CTL_ELEM_TYPE_IEC958; |
440 | uinfo->count = 1; | 440 | uinfo->count = 1; |
441 | return 0; | 441 | return 0; |
442 | } | 442 | } |
443 | 443 | ||
444 | static int snd_vortex_spdif_mask_get(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) | 444 | static int snd_vortex_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
445 | { | 445 | { |
446 | ucontrol->value.iec958.status[0] = 0xff; | 446 | ucontrol->value.iec958.status[0] = 0xff; |
447 | ucontrol->value.iec958.status[1] = 0xff; | 447 | ucontrol->value.iec958.status[1] = 0xff; |
@@ -450,7 +450,7 @@ static int snd_vortex_spdif_mask_get(snd_kcontrol_t * kcontrol, snd_ctl_elem_val | |||
450 | return 0; | 450 | return 0; |
451 | } | 451 | } |
452 | 452 | ||
453 | static int snd_vortex_spdif_get(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) | 453 | static int snd_vortex_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
454 | { | 454 | { |
455 | vortex_t *vortex = snd_kcontrol_chip(kcontrol); | 455 | vortex_t *vortex = snd_kcontrol_chip(kcontrol); |
456 | ucontrol->value.iec958.status[0] = 0x00; | 456 | ucontrol->value.iec958.status[0] = 0x00; |
@@ -464,7 +464,7 @@ static int snd_vortex_spdif_get(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t | |||
464 | return 0; | 464 | return 0; |
465 | } | 465 | } |
466 | 466 | ||
467 | static int snd_vortex_spdif_put(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) | 467 | static int snd_vortex_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
468 | { | 468 | { |
469 | vortex_t *vortex = snd_kcontrol_chip(kcontrol); | 469 | vortex_t *vortex = snd_kcontrol_chip(kcontrol); |
470 | int spdif_sr = 48000; | 470 | int spdif_sr = 48000; |
@@ -481,7 +481,7 @@ static int snd_vortex_spdif_put(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t | |||
481 | } | 481 | } |
482 | 482 | ||
483 | /* spdif controls */ | 483 | /* spdif controls */ |
484 | static snd_kcontrol_new_t snd_vortex_mixer_spdif[] __devinitdata = { | 484 | static struct snd_kcontrol_new snd_vortex_mixer_spdif[] __devinitdata = { |
485 | { | 485 | { |
486 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 486 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
487 | .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT), | 487 | .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT), |
@@ -501,8 +501,8 @@ static snd_kcontrol_new_t snd_vortex_mixer_spdif[] __devinitdata = { | |||
501 | /* create a pcm device */ | 501 | /* create a pcm device */ |
502 | static int __devinit snd_vortex_new_pcm(vortex_t * chip, int idx, int nr) | 502 | static int __devinit snd_vortex_new_pcm(vortex_t * chip, int idx, int nr) |
503 | { | 503 | { |
504 | snd_pcm_t *pcm; | 504 | struct snd_pcm *pcm; |
505 | snd_kcontrol_t *kctl; | 505 | struct snd_kcontrol *kctl; |
506 | int i; | 506 | int i; |
507 | int err, nr_capt; | 507 | int err, nr_capt; |
508 | 508 | ||