aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pcmcia
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-11-17 08:46:59 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:18:42 -0500
commitaf26367f69a474ed809e4a59abb5855b47daaff4 (patch)
tree8ee9ec6449b3b51953cda3d546e90c064f963684 /sound/pcmcia
parent9f38945fab04a0a0ea50880fa634f9bfa28f6226 (diff)
[ALSA] Remove xxx_t typedefs: VXdriver
Remove xxx_t typedefs from the VXdriver codes (vx_core support, vx222 and vxpocket). Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pcmcia')
-rw-r--r--sound/pcmcia/vx/vxp_mixer.c26
-rw-r--r--sound/pcmcia/vx/vxp_ops.c48
-rw-r--r--sound/pcmcia/vx/vxpocket.c26
-rw-r--r--sound/pcmcia/vx/vxpocket.h8
4 files changed, 54 insertions, 54 deletions
diff --git a/sound/pcmcia/vx/vxp_mixer.c b/sound/pcmcia/vx/vxp_mixer.c
index aeaef3d81801..9450149b931c 100644
--- a/sound/pcmcia/vx/vxp_mixer.c
+++ b/sound/pcmcia/vx/vxp_mixer.c
@@ -31,7 +31,7 @@
31/* 31/*
32 * mic level control (for VXPocket) 32 * mic level control (for VXPocket)
33 */ 33 */
34static int vx_mic_level_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo) 34static int vx_mic_level_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
35{ 35{
36 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; 36 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
37 uinfo->count = 1; 37 uinfo->count = 1;
@@ -40,17 +40,17 @@ static int vx_mic_level_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinf
40 return 0; 40 return 0;
41} 41}
42 42
43static int vx_mic_level_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 43static int vx_mic_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
44{ 44{
45 vx_core_t *_chip = snd_kcontrol_chip(kcontrol); 45 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
46 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 46 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
47 ucontrol->value.integer.value[0] = chip->mic_level; 47 ucontrol->value.integer.value[0] = chip->mic_level;
48 return 0; 48 return 0;
49} 49}
50 50
51static int vx_mic_level_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 51static int vx_mic_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
52{ 52{
53 vx_core_t *_chip = snd_kcontrol_chip(kcontrol); 53 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
54 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 54 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
55 down(&_chip->mixer_mutex); 55 down(&_chip->mixer_mutex);
56 if (chip->mic_level != ucontrol->value.integer.value[0]) { 56 if (chip->mic_level != ucontrol->value.integer.value[0]) {
@@ -63,7 +63,7 @@ static int vx_mic_level_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucon
63 return 0; 63 return 0;
64} 64}
65 65
66static snd_kcontrol_new_t vx_control_mic_level = { 66static struct snd_kcontrol_new vx_control_mic_level = {
67 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 67 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
68 .name = "Mic Capture Volume", 68 .name = "Mic Capture Volume",
69 .info = vx_mic_level_info, 69 .info = vx_mic_level_info,
@@ -74,7 +74,7 @@ static snd_kcontrol_new_t vx_control_mic_level = {
74/* 74/*
75 * mic boost level control (for VXP440) 75 * mic boost level control (for VXP440)
76 */ 76 */
77static int vx_mic_boost_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo) 77static int vx_mic_boost_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
78{ 78{
79 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; 79 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
80 uinfo->count = 1; 80 uinfo->count = 1;
@@ -83,17 +83,17 @@ static int vx_mic_boost_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinf
83 return 0; 83 return 0;
84} 84}
85 85
86static int vx_mic_boost_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 86static int vx_mic_boost_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
87{ 87{
88 vx_core_t *_chip = snd_kcontrol_chip(kcontrol); 88 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
89 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 89 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
90 ucontrol->value.integer.value[0] = chip->mic_level; 90 ucontrol->value.integer.value[0] = chip->mic_level;
91 return 0; 91 return 0;
92} 92}
93 93
94static int vx_mic_boost_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 94static int vx_mic_boost_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
95{ 95{
96 vx_core_t *_chip = snd_kcontrol_chip(kcontrol); 96 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
97 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 97 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
98 down(&_chip->mixer_mutex); 98 down(&_chip->mixer_mutex);
99 if (chip->mic_level != ucontrol->value.integer.value[0]) { 99 if (chip->mic_level != ucontrol->value.integer.value[0]) {
@@ -106,7 +106,7 @@ static int vx_mic_boost_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucon
106 return 0; 106 return 0;
107} 107}
108 108
109static snd_kcontrol_new_t vx_control_mic_boost = { 109static struct snd_kcontrol_new vx_control_mic_boost = {
110 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 110 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
111 .name = "Mic Boost", 111 .name = "Mic Boost",
112 .info = vx_mic_boost_info, 112 .info = vx_mic_boost_info,
@@ -115,7 +115,7 @@ static snd_kcontrol_new_t vx_control_mic_boost = {
115}; 115};
116 116
117 117
118int vxp_add_mic_controls(vx_core_t *_chip) 118int vxp_add_mic_controls(struct vx_core *_chip)
119{ 119{
120 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 120 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
121 int err; 121 int err;
diff --git a/sound/pcmcia/vx/vxp_ops.c b/sound/pcmcia/vx/vxp_ops.c
index 2754d657a4d6..7f82f619f9f4 100644
--- a/sound/pcmcia/vx/vxp_ops.c
+++ b/sound/pcmcia/vx/vxp_ops.c
@@ -49,7 +49,7 @@ static int vxp_reg_offset[VX_REG_MAX] = {
49}; 49};
50 50
51 51
52static inline unsigned long vxp_reg_addr(vx_core_t *_chip, int reg) 52static inline unsigned long vxp_reg_addr(struct vx_core *_chip, int reg)
53{ 53{
54 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 54 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
55 return chip->port + vxp_reg_offset[reg]; 55 return chip->port + vxp_reg_offset[reg];
@@ -59,7 +59,7 @@ static inline unsigned long vxp_reg_addr(vx_core_t *_chip, int reg)
59 * snd_vx_inb - read a byte from the register 59 * snd_vx_inb - read a byte from the register
60 * @offset: register offset 60 * @offset: register offset
61 */ 61 */
62static unsigned char vxp_inb(vx_core_t *chip, int offset) 62static unsigned char vxp_inb(struct vx_core *chip, int offset)
63{ 63{
64 return inb(vxp_reg_addr(chip, offset)); 64 return inb(vxp_reg_addr(chip, offset));
65} 65}
@@ -69,7 +69,7 @@ static unsigned char vxp_inb(vx_core_t *chip, int offset)
69 * @offset: the register offset 69 * @offset: the register offset
70 * @val: the value to write 70 * @val: the value to write
71 */ 71 */
72static void vxp_outb(vx_core_t *chip, int offset, unsigned char val) 72static void vxp_outb(struct vx_core *chip, int offset, unsigned char val)
73{ 73{
74 outb(val, vxp_reg_addr(chip, offset)); 74 outb(val, vxp_reg_addr(chip, offset));
75} 75}
@@ -78,9 +78,9 @@ static void vxp_outb(vx_core_t *chip, int offset, unsigned char val)
78 * redefine macros to call directly 78 * redefine macros to call directly
79 */ 79 */
80#undef vx_inb 80#undef vx_inb
81#define vx_inb(chip,reg) vxp_inb((vx_core_t*)(chip), VX_##reg) 81#define vx_inb(chip,reg) vxp_inb((struct vx_core *)(chip), VX_##reg)
82#undef vx_outb 82#undef vx_outb
83#define vx_outb(chip,reg,val) vxp_outb((vx_core_t*)(chip), VX_##reg,val) 83#define vx_outb(chip,reg,val) vxp_outb((struct vx_core *)(chip), VX_##reg,val)
84 84
85 85
86/* 86/*
@@ -88,7 +88,7 @@ static void vxp_outb(vx_core_t *chip, int offset, unsigned char val)
88 * 88 *
89 * returns zero if a magic word is detected, or a negative error code. 89 * returns zero if a magic word is detected, or a negative error code.
90 */ 90 */
91static int vx_check_magic(vx_core_t *chip) 91static int vx_check_magic(struct vx_core *chip)
92{ 92{
93 unsigned long end_time = jiffies + HZ / 5; 93 unsigned long end_time = jiffies + HZ / 5;
94 int c; 94 int c;
@@ -109,7 +109,7 @@ static int vx_check_magic(vx_core_t *chip)
109 109
110#define XX_DSP_RESET_WAIT_TIME 2 /* ms */ 110#define XX_DSP_RESET_WAIT_TIME 2 /* ms */
111 111
112static void vxp_reset_dsp(vx_core_t *_chip) 112static void vxp_reset_dsp(struct vx_core *_chip)
113{ 113{
114 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 114 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
115 115
@@ -127,7 +127,7 @@ static void vxp_reset_dsp(vx_core_t *_chip)
127/* 127/*
128 * reset codec bit 128 * reset codec bit
129 */ 129 */
130static void vxp_reset_codec(vx_core_t *_chip) 130static void vxp_reset_codec(struct vx_core *_chip)
131{ 131{
132 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 132 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
133 133
@@ -146,7 +146,7 @@ static void vxp_reset_codec(vx_core_t *_chip)
146 * vx_load_xilinx_binary - load the xilinx binary image 146 * vx_load_xilinx_binary - load the xilinx binary image
147 * the binary image is the binary array converted from the bitstream file. 147 * the binary image is the binary array converted from the bitstream file.
148 */ 148 */
149static int vxp_load_xilinx_binary(vx_core_t *_chip, const struct firmware *fw) 149static int vxp_load_xilinx_binary(struct vx_core *_chip, const struct firmware *fw)
150{ 150{
151 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 151 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
152 unsigned int i; 152 unsigned int i;
@@ -244,7 +244,7 @@ static int vxp_load_xilinx_binary(vx_core_t *_chip, const struct firmware *fw)
244/* 244/*
245 * vxp_load_dsp - load_dsp callback 245 * vxp_load_dsp - load_dsp callback
246 */ 246 */
247static int vxp_load_dsp(vx_core_t *vx, int index, const struct firmware *fw) 247static int vxp_load_dsp(struct vx_core *vx, int index, const struct firmware *fw)
248{ 248{
249 int err; 249 int err;
250 250
@@ -279,7 +279,7 @@ static int vxp_load_dsp(vx_core_t *vx, int index, const struct firmware *fw)
279 * 279 *
280 * spinlock held! 280 * spinlock held!
281 */ 281 */
282static int vxp_test_and_ack(vx_core_t *_chip) 282static int vxp_test_and_ack(struct vx_core *_chip)
283{ 283{
284 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 284 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
285 285
@@ -306,7 +306,7 @@ static int vxp_test_and_ack(vx_core_t *_chip)
306/* 306/*
307 * vx_validate_irq - enable/disable IRQ 307 * vx_validate_irq - enable/disable IRQ
308 */ 308 */
309static void vxp_validate_irq(vx_core_t *_chip, int enable) 309static void vxp_validate_irq(struct vx_core *_chip, int enable)
310{ 310{
311 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 311 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
312 312
@@ -322,7 +322,7 @@ static void vxp_validate_irq(vx_core_t *_chip, int enable)
322 * vx_setup_pseudo_dma - set up the pseudo dma read/write mode. 322 * vx_setup_pseudo_dma - set up the pseudo dma read/write mode.
323 * @do_write: 0 = read, 1 = set up for DMA write 323 * @do_write: 0 = read, 1 = set up for DMA write
324 */ 324 */
325static void vx_setup_pseudo_dma(vx_core_t *_chip, int do_write) 325static void vx_setup_pseudo_dma(struct vx_core *_chip, int do_write)
326{ 326{
327 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 327 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
328 328
@@ -342,7 +342,7 @@ static void vx_setup_pseudo_dma(vx_core_t *_chip, int do_write)
342/* 342/*
343 * vx_release_pseudo_dma - disable the pseudo-DMA mode 343 * vx_release_pseudo_dma - disable the pseudo-DMA mode
344 */ 344 */
345static void vx_release_pseudo_dma(vx_core_t *_chip) 345static void vx_release_pseudo_dma(struct vx_core *_chip)
346{ 346{
347 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 347 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
348 348
@@ -362,8 +362,8 @@ static void vx_release_pseudo_dma(vx_core_t *_chip)
362 * data size must be aligned to 6 bytes to ensure the 24bit alignment on DSP. 362 * data size must be aligned to 6 bytes to ensure the 24bit alignment on DSP.
363 * NB: call with a certain lock! 363 * NB: call with a certain lock!
364 */ 364 */
365static void vxp_dma_write(vx_core_t *chip, snd_pcm_runtime_t *runtime, 365static void vxp_dma_write(struct vx_core *chip, struct snd_pcm_runtime *runtime,
366 vx_pipe_t *pipe, int count) 366 struct vx_pipe *pipe, int count)
367{ 367{
368 long port = vxp_reg_addr(chip, VX_DMA); 368 long port = vxp_reg_addr(chip, VX_DMA);
369 int offset = pipe->hw_ptr; 369 int offset = pipe->hw_ptr;
@@ -401,8 +401,8 @@ static void vxp_dma_write(vx_core_t *chip, snd_pcm_runtime_t *runtime,
401 * the read length must be aligned to 6 bytes, as well as write. 401 * the read length must be aligned to 6 bytes, as well as write.
402 * NB: call with a certain lock! 402 * NB: call with a certain lock!
403 */ 403 */
404static void vxp_dma_read(vx_core_t *chip, snd_pcm_runtime_t *runtime, 404static void vxp_dma_read(struct vx_core *chip, struct snd_pcm_runtime *runtime,
405 vx_pipe_t *pipe, int count) 405 struct vx_pipe *pipe, int count)
406{ 406{
407 struct snd_vxpocket *pchip = (struct snd_vxpocket *)chip; 407 struct snd_vxpocket *pchip = (struct snd_vxpocket *)chip;
408 long port = vxp_reg_addr(chip, VX_DMA); 408 long port = vxp_reg_addr(chip, VX_DMA);
@@ -442,7 +442,7 @@ static void vxp_dma_read(vx_core_t *chip, snd_pcm_runtime_t *runtime,
442/* 442/*
443 * write a codec data (24bit) 443 * write a codec data (24bit)
444 */ 444 */
445static void vxp_write_codec_reg(vx_core_t *chip, int codec, unsigned int data) 445static void vxp_write_codec_reg(struct vx_core *chip, int codec, unsigned int data)
446{ 446{
447 int i; 447 int i;
448 448
@@ -465,7 +465,7 @@ static void vxp_write_codec_reg(vx_core_t *chip, int codec, unsigned int data)
465 * vx_set_mic_boost - set mic boost level (on vxp440 only) 465 * vx_set_mic_boost - set mic boost level (on vxp440 only)
466 * @boost: 0 = 20dB, 1 = +38dB 466 * @boost: 0 = 20dB, 1 = +38dB
467 */ 467 */
468void vx_set_mic_boost(vx_core_t *chip, int boost) 468void vx_set_mic_boost(struct vx_core *chip, int boost)
469{ 469{
470 struct snd_vxpocket *pchip = (struct snd_vxpocket *)chip; 470 struct snd_vxpocket *pchip = (struct snd_vxpocket *)chip;
471 unsigned long flags; 471 unsigned long flags;
@@ -508,7 +508,7 @@ static int vx_compute_mic_level(int level)
508 * vx_set_mic_level - set mic level (on vxpocket only) 508 * vx_set_mic_level - set mic level (on vxpocket only)
509 * @level: the mic level = 0 - 8 (max) 509 * @level: the mic level = 0 - 8 (max)
510 */ 510 */
511void vx_set_mic_level(vx_core_t *chip, int level) 511void vx_set_mic_level(struct vx_core *chip, int level)
512{ 512{
513 struct snd_vxpocket *pchip = (struct snd_vxpocket *)chip; 513 struct snd_vxpocket *pchip = (struct snd_vxpocket *)chip;
514 unsigned long flags; 514 unsigned long flags;
@@ -528,7 +528,7 @@ void vx_set_mic_level(vx_core_t *chip, int level)
528/* 528/*
529 * change the input audio source 529 * change the input audio source
530 */ 530 */
531static void vxp_change_audio_source(vx_core_t *_chip, int src) 531static void vxp_change_audio_source(struct vx_core *_chip, int src)
532{ 532{
533 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 533 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
534 534
@@ -568,7 +568,7 @@ static void vxp_change_audio_source(vx_core_t *_chip, int src)
568 * change the clock source 568 * change the clock source
569 * source = INTERNAL_QUARTZ or UER_SYNC 569 * source = INTERNAL_QUARTZ or UER_SYNC
570 */ 570 */
571static void vxp_set_clock_source(vx_core_t *_chip, int source) 571static void vxp_set_clock_source(struct vx_core *_chip, int source)
572{ 572{
573 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 573 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
574 574
@@ -583,7 +583,7 @@ static void vxp_set_clock_source(vx_core_t *_chip, int source)
583/* 583/*
584 * reset the board 584 * reset the board
585 */ 585 */
586static void vxp_reset_board(vx_core_t *_chip, int cold_reset) 586static void vxp_reset_board(struct vx_core *_chip, int cold_reset)
587{ 587{
588 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 588 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
589 589
diff --git a/sound/pcmcia/vx/vxpocket.c b/sound/pcmcia/vx/vxpocket.c
index 1e8f16b4c073..009629714140 100644
--- a/sound/pcmcia/vx/vxpocket.c
+++ b/sound/pcmcia/vx/vxpocket.c
@@ -83,9 +83,9 @@ static void vxpocket_release(dev_link_t *link)
83/* 83/*
84 * destructor, called from snd_card_free_in_thread() 84 * destructor, called from snd_card_free_in_thread()
85 */ 85 */
86static int snd_vxpocket_dev_free(snd_device_t *device) 86static int snd_vxpocket_dev_free(struct snd_device *device)
87{ 87{
88 vx_core_t *chip = device->device_data; 88 struct vx_core *chip = device->device_data;
89 89
90 snd_vx_free_firmware(chip); 90 snd_vx_free_firmware(chip);
91 kfree(chip); 91 kfree(chip);
@@ -142,19 +142,19 @@ static struct snd_vx_hardware vxp440_hw = {
142/* 142/*
143 * create vxpocket instance 143 * create vxpocket instance
144 */ 144 */
145static struct snd_vxpocket *snd_vxpocket_new(snd_card_t *card, int ibl) 145static struct snd_vxpocket *snd_vxpocket_new(struct snd_card *card, int ibl)
146{ 146{
147 client_reg_t client_reg; /* Register with cardmgr */ 147 client_reg_t client_reg; /* Register with cardmgr */
148 dev_link_t *link; /* Info for cardmgr */ 148 dev_link_t *link; /* Info for cardmgr */
149 vx_core_t *chip; 149 struct vx_core *chip;
150 struct snd_vxpocket *vxp; 150 struct snd_vxpocket *vxp;
151 int ret; 151 int ret;
152 static snd_device_ops_t ops = { 152 static struct snd_device_ops ops = {
153 .dev_free = snd_vxpocket_dev_free, 153 .dev_free = snd_vxpocket_dev_free,
154 }; 154 };
155 155
156 chip = snd_vx_create(card, &vxpocket_hw, &snd_vxpocket_ops, 156 chip = snd_vx_create(card, &vxpocket_hw, &snd_vxpocket_ops,
157 sizeof(struct snd_vxpocket) - sizeof(vx_core_t)); 157 sizeof(struct snd_vxpocket) - sizeof(struct vx_core));
158 if (! chip) 158 if (! chip)
159 return NULL; 159 return NULL;
160 160
@@ -218,10 +218,10 @@ static struct snd_vxpocket *snd_vxpocket_new(snd_card_t *card, int ibl)
218 * 218 *
219 * returns 0 if successful, or a negative error code. 219 * returns 0 if successful, or a negative error code.
220 */ 220 */
221static int snd_vxpocket_assign_resources(vx_core_t *chip, int port, int irq) 221static int snd_vxpocket_assign_resources(struct vx_core *chip, int port, int irq)
222{ 222{
223 int err; 223 int err;
224 snd_card_t *card = chip->card; 224 struct snd_card *card = chip->card;
225 struct snd_vxpocket *vxp = (struct snd_vxpocket *)chip; 225 struct snd_vxpocket *vxp = (struct snd_vxpocket *)chip;
226 226
227 snd_printdd(KERN_DEBUG "vxpocket assign resources: port = 0x%x, irq = %d\n", port, irq); 227 snd_printdd(KERN_DEBUG "vxpocket assign resources: port = 0x%x, irq = %d\n", port, irq);
@@ -250,7 +250,7 @@ do { last_fn = (fn); if ((last_ret = (ret)) != 0) goto cs_failed; } while (0)
250static void vxpocket_config(dev_link_t *link) 250static void vxpocket_config(dev_link_t *link)
251{ 251{
252 client_handle_t handle = link->handle; 252 client_handle_t handle = link->handle;
253 vx_core_t *chip = link->priv; 253 struct vx_core *chip = link->priv;
254 struct snd_vxpocket *vxp = (struct snd_vxpocket *)chip; 254 struct snd_vxpocket *vxp = (struct snd_vxpocket *)chip;
255 tuple_t tuple; 255 tuple_t tuple;
256 cisparse_t *parse; 256 cisparse_t *parse;
@@ -324,7 +324,7 @@ failed:
324static int vxpocket_event(event_t event, int priority, event_callback_args_t *args) 324static int vxpocket_event(event_t event, int priority, event_callback_args_t *args)
325{ 325{
326 dev_link_t *link = args->client_data; 326 dev_link_t *link = args->client_data;
327 vx_core_t *chip = link->priv; 327 struct vx_core *chip = link->priv;
328 328
329 switch (event) { 329 switch (event) {
330 case CS_EVENT_CARD_REMOVAL: 330 case CS_EVENT_CARD_REMOVAL:
@@ -379,7 +379,7 @@ static int vxpocket_event(event_t event, int priority, event_callback_args_t *ar
379 */ 379 */
380static dev_link_t *vxpocket_attach(void) 380static dev_link_t *vxpocket_attach(void)
381{ 381{
382 snd_card_t *card; 382 struct snd_card *card;
383 struct snd_vxpocket *vxp; 383 struct snd_vxpocket *vxp;
384 int i; 384 int i;
385 385
@@ -421,14 +421,14 @@ static dev_link_t *vxpocket_attach(void)
421static void vxpocket_detach(dev_link_t *link) 421static void vxpocket_detach(dev_link_t *link)
422{ 422{
423 struct snd_vxpocket *vxp; 423 struct snd_vxpocket *vxp;
424 vx_core_t *chip; 424 struct vx_core *chip;
425 dev_link_t **linkp; 425 dev_link_t **linkp;
426 426
427 if (! link) 427 if (! link)
428 return; 428 return;
429 429
430 vxp = link->priv; 430 vxp = link->priv;
431 chip = (vx_core_t *)vxp; 431 chip = (struct vx_core *)vxp;
432 card_alloc &= ~(1 << vxp->index); 432 card_alloc &= ~(1 << vxp->index);
433 433
434 /* Remove the interface data from the linked list */ 434 /* Remove the interface data from the linked list */
diff --git a/sound/pcmcia/vx/vxpocket.h b/sound/pcmcia/vx/vxpocket.h
index 70754aa3dd11..67efae3f6c8d 100644
--- a/sound/pcmcia/vx/vxpocket.h
+++ b/sound/pcmcia/vx/vxpocket.h
@@ -30,7 +30,7 @@
30 30
31struct snd_vxpocket { 31struct snd_vxpocket {
32 32
33 vx_core_t core; 33 struct vx_core core;
34 34
35 unsigned long port; 35 unsigned long port;
36 36
@@ -48,10 +48,10 @@ struct snd_vxpocket {
48 48
49extern struct snd_vx_ops snd_vxpocket_ops; 49extern struct snd_vx_ops snd_vxpocket_ops;
50 50
51void vx_set_mic_boost(vx_core_t *chip, int boost); 51void vx_set_mic_boost(struct vx_core *chip, int boost);
52void vx_set_mic_level(vx_core_t *chip, int level); 52void vx_set_mic_level(struct vx_core *chip, int level);
53 53
54int vxp_add_mic_controls(vx_core_t *chip); 54int vxp_add_mic_controls(struct vx_core *chip);
55 55
56/* Constants used to access the CDSP register (0x08). */ 56/* Constants used to access the CDSP register (0x08). */
57#define CDSP_MAGIC 0xA7 /* magic value (for read) */ 57#define CDSP_MAGIC 0xA7 /* magic value (for read) */