aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-11-17 08:55:19 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:18:59 -0500
commit2fd16874aa6322e8b61879a78f3b485999506833 (patch)
tree3d7033f5e9a7873f0c7b871b8b097c79c1cec5e6 /sound
parent208a1b4cb5ad97510aa9cbe51d09e55656691cb4 (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')
-rw-r--r--sound/pci/au88x0/au88x0.c8
-rw-r--r--sound/pci/au88x0/au88x0.h20
-rw-r--r--sound/pci/au88x0/au88x0_a3d.c32
-rw-r--r--sound/pci/au88x0/au88x0_core.c8
-rw-r--r--sound/pci/au88x0/au88x0_eq.c28
-rw-r--r--sound/pci/au88x0/au88x0_mixer.c6
-rw-r--r--sound/pci/au88x0/au88x0_mpu401.c4
-rw-r--r--sound/pci/au88x0/au88x0_pcm.c50
8 files changed, 78 insertions, 78 deletions
diff --git a/sound/pci/au88x0/au88x0.c b/sound/pci/au88x0/au88x0.c
index d965609d8b38..7c547859ae00 100644
--- a/sound/pci/au88x0/au88x0.c
+++ b/sound/pci/au88x0/au88x0.c
@@ -118,7 +118,7 @@ static void __devinit snd_vortex_workaround(struct pci_dev *vortex, int fix)
118 118
119// component-destructor 119// component-destructor
120// (see "Management of Cards and Components") 120// (see "Management of Cards and Components")
121static int snd_vortex_dev_free(snd_device_t * device) 121static int snd_vortex_dev_free(struct snd_device *device)
122{ 122{
123 vortex_t *vortex = device->device_data; 123 vortex_t *vortex = device->device_data;
124 124
@@ -137,11 +137,11 @@ static int snd_vortex_dev_free(snd_device_t * device)
137// chip-specific constructor 137// chip-specific constructor
138// (see "Management of Cards and Components") 138// (see "Management of Cards and Components")
139static int __devinit 139static int __devinit
140snd_vortex_create(snd_card_t * card, struct pci_dev *pci, vortex_t ** rchip) 140snd_vortex_create(struct snd_card *card, struct pci_dev *pci, vortex_t ** rchip)
141{ 141{
142 vortex_t *chip; 142 vortex_t *chip;
143 int err; 143 int err;
144 static snd_device_ops_t ops = { 144 static struct snd_device_ops ops = {
145 .dev_free = snd_vortex_dev_free, 145 .dev_free = snd_vortex_dev_free,
146 }; 146 };
147 147
@@ -233,7 +233,7 @@ static int __devinit
233snd_vortex_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) 233snd_vortex_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
234{ 234{
235 static int dev; 235 static int dev;
236 snd_card_t *card; 236 struct snd_card *card;
237 vortex_t *chip; 237 vortex_t *chip;
238 int err; 238 int err;
239 239
diff --git a/sound/pci/au88x0/au88x0.h b/sound/pci/au88x0/au88x0.h
index b1197cfab3fb..745f995a20dd 100644
--- a/sound/pci/au88x0/au88x0.h
+++ b/sound/pci/au88x0/au88x0.h
@@ -129,21 +129,21 @@ typedef struct {
129 /* Virtual page extender stuff */ 129 /* Virtual page extender stuff */
130 int nr_periods; 130 int nr_periods;
131 int period_bytes; 131 int period_bytes;
132 snd_pcm_sgbuf_t *sgbuf; /* DMA Scatter Gather struct */ 132 struct snd_sg_buf *sgbuf; /* DMA Scatter Gather struct */
133 int period_real; 133 int period_real;
134 int period_virt; 134 int period_virt;
135 135
136 snd_pcm_substream_t *substream; 136 struct snd_pcm_substream *substream;
137} stream_t; 137} stream_t;
138 138
139typedef struct snd_vortex vortex_t; 139typedef struct snd_vortex vortex_t;
140struct snd_vortex { 140struct snd_vortex {
141 /* ALSA structs. */ 141 /* ALSA structs. */
142 snd_card_t *card; 142 struct snd_card *card;
143 snd_pcm_t *pcm[VORTEX_PCM_LAST]; 143 struct snd_pcm *pcm[VORTEX_PCM_LAST];
144 144
145 snd_rawmidi_t *rmidi; /* Legacy Midi interface. */ 145 struct snd_rawmidi *rmidi; /* Legacy Midi interface. */
146 ac97_t *codec; 146 struct snd_ac97 *codec;
147 147
148 /* Stream structs. */ 148 /* Stream structs. */
149 stream_t dma_adb[NR_ADB]; 149 stream_t dma_adb[NR_ADB];
@@ -199,7 +199,7 @@ static void vortex_adb_setsrc(vortex_t * vortex, int adbdma,
199 199
200/* DMA Engines. */ 200/* DMA Engines. */
201static void vortex_adbdma_setbuffers(vortex_t * vortex, int adbdma, 201static void vortex_adbdma_setbuffers(vortex_t * vortex, int adbdma,
202 snd_pcm_sgbuf_t * sgbuf, int size, 202 struct snd_sg_buf * sgbuf, int size,
203 int count); 203 int count);
204static void vortex_adbdma_setmode(vortex_t * vortex, int adbdma, int ie, 204static void vortex_adbdma_setmode(vortex_t * vortex, int adbdma, int ie,
205 int dir, int fmt, int d, 205 int dir, int fmt, int d,
@@ -207,7 +207,7 @@ static void vortex_adbdma_setmode(vortex_t * vortex, int adbdma, int ie,
207static void vortex_adbdma_setstartbuffer(vortex_t * vortex, int adbdma, int sb); 207static void vortex_adbdma_setstartbuffer(vortex_t * vortex, int adbdma, int sb);
208#ifndef CHIP_AU8810 208#ifndef CHIP_AU8810
209static void vortex_wtdma_setbuffers(vortex_t * vortex, int wtdma, 209static void vortex_wtdma_setbuffers(vortex_t * vortex, int wtdma,
210 snd_pcm_sgbuf_t * sgbuf, int size, 210 struct snd_sg_buf * sgbuf, int size,
211 int count); 211 int count);
212static void vortex_wtdma_setmode(vortex_t * vortex, int wtdma, int ie, int fmt, int d, /*int e, */ 212static void vortex_wtdma_setmode(vortex_t * vortex, int wtdma, int ie, int fmt, int d, /*int e, */
213 unsigned long offset); 213 unsigned long offset);
@@ -231,9 +231,9 @@ static int inline vortex_wtdma_getlinearpos(vortex_t * vortex, int wtdma);
231 231
232/* global stuff. */ 232/* global stuff. */
233static void vortex_codec_init(vortex_t * vortex); 233static void vortex_codec_init(vortex_t * vortex);
234static void vortex_codec_write(ac97_t * codec, unsigned short addr, 234static void vortex_codec_write(struct snd_ac97 * codec, unsigned short addr,
235 unsigned short data); 235 unsigned short data);
236static unsigned short vortex_codec_read(ac97_t * codec, unsigned short addr); 236static unsigned short vortex_codec_read(struct snd_ac97 * codec, unsigned short addr);
237static void vortex_spdif_init(vortex_t * vortex, int spdif_sr, int spdif_mode); 237static void vortex_spdif_init(vortex_t * vortex, int spdif_sr, int spdif_mode);
238 238
239static int vortex_core_init(vortex_t * card); 239static int vortex_core_init(vortex_t * card);
diff --git a/sound/pci/au88x0/au88x0_a3d.c b/sound/pci/au88x0/au88x0_a3d.c
index d5755db5141f..d215f393ea64 100644
--- a/sound/pci/au88x0/au88x0_a3d.c
+++ b/sound/pci/au88x0/au88x0_a3d.c
@@ -725,7 +725,7 @@ static void vortex_a3d_translate_filter(a3d_atmos_t filter, int *params)
725/* ALSA control interface. */ 725/* ALSA control interface. */
726 726
727static int 727static int
728snd_vortex_a3d_hrtf_info(snd_kcontrol_t * kcontrol, snd_ctl_elem_info_t * uinfo) 728snd_vortex_a3d_hrtf_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
729{ 729{
730 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; 730 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
731 uinfo->count = 6; 731 uinfo->count = 6;
@@ -734,7 +734,7 @@ snd_vortex_a3d_hrtf_info(snd_kcontrol_t * kcontrol, snd_ctl_elem_info_t * uinfo)
734 return 0; 734 return 0;
735} 735}
736static int 736static int
737snd_vortex_a3d_itd_info(snd_kcontrol_t * kcontrol, snd_ctl_elem_info_t * uinfo) 737snd_vortex_a3d_itd_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
738{ 738{
739 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; 739 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
740 uinfo->count = 2; 740 uinfo->count = 2;
@@ -743,7 +743,7 @@ snd_vortex_a3d_itd_info(snd_kcontrol_t * kcontrol, snd_ctl_elem_info_t * uinfo)
743 return 0; 743 return 0;
744} 744}
745static int 745static int
746snd_vortex_a3d_ild_info(snd_kcontrol_t * kcontrol, snd_ctl_elem_info_t * uinfo) 746snd_vortex_a3d_ild_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
747{ 747{
748 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; 748 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
749 uinfo->count = 2; 749 uinfo->count = 2;
@@ -752,8 +752,8 @@ snd_vortex_a3d_ild_info(snd_kcontrol_t * kcontrol, snd_ctl_elem_info_t * uinfo)
752 return 0; 752 return 0;
753} 753}
754static int 754static int
755snd_vortex_a3d_filter_info(snd_kcontrol_t * 755snd_vortex_a3d_filter_info(struct snd_kcontrol *kcontrol,
756 kcontrol, snd_ctl_elem_info_t * uinfo) 756 struct snd_ctl_elem_info *uinfo)
757{ 757{
758 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; 758 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
759 uinfo->count = 4; 759 uinfo->count = 4;
@@ -763,7 +763,7 @@ snd_vortex_a3d_filter_info(snd_kcontrol_t *
763} 763}
764 764
765static int 765static int
766snd_vortex_a3d_get(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) 766snd_vortex_a3d_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
767{ 767{
768 //a3dsrc_t *a = kcontrol->private_data; 768 //a3dsrc_t *a = kcontrol->private_data;
769 /* No read yet. Would this be really useable/needed ? */ 769 /* No read yet. Would this be really useable/needed ? */
@@ -772,8 +772,8 @@ snd_vortex_a3d_get(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol)
772} 772}
773 773
774static int 774static int
775snd_vortex_a3d_hrtf_put(snd_kcontrol_t * 775snd_vortex_a3d_hrtf_put(struct snd_kcontrol *kcontrol,
776 kcontrol, snd_ctl_elem_value_t * ucontrol) 776 struct snd_ctl_elem_value *ucontrol)
777{ 777{
778 a3dsrc_t *a = kcontrol->private_data; 778 a3dsrc_t *a = kcontrol->private_data;
779 int changed = 1, i; 779 int changed = 1, i;
@@ -789,8 +789,8 @@ snd_vortex_a3d_hrtf_put(snd_kcontrol_t *
789} 789}
790 790
791static int 791static int
792snd_vortex_a3d_itd_put(snd_kcontrol_t * 792snd_vortex_a3d_itd_put(struct snd_kcontrol *kcontrol,
793 kcontrol, snd_ctl_elem_value_t * ucontrol) 793 struct snd_ctl_elem_value *ucontrol)
794{ 794{
795 a3dsrc_t *a = kcontrol->private_data; 795 a3dsrc_t *a = kcontrol->private_data;
796 int coord[6]; 796 int coord[6];
@@ -808,8 +808,8 @@ snd_vortex_a3d_itd_put(snd_kcontrol_t *
808} 808}
809 809
810static int 810static int
811snd_vortex_a3d_ild_put(snd_kcontrol_t * 811snd_vortex_a3d_ild_put(struct snd_kcontrol *kcontrol,
812 kcontrol, snd_ctl_elem_value_t * ucontrol) 812 struct snd_ctl_elem_value *ucontrol)
813{ 813{
814 a3dsrc_t *a = kcontrol->private_data; 814 a3dsrc_t *a = kcontrol->private_data;
815 int changed = 1; 815 int changed = 1;
@@ -825,8 +825,8 @@ snd_vortex_a3d_ild_put(snd_kcontrol_t *
825} 825}
826 826
827static int 827static int
828snd_vortex_a3d_filter_put(snd_kcontrol_t 828snd_vortex_a3d_filter_put(struct snd_kcontrol *kcontrol,
829 * kcontrol, snd_ctl_elem_value_t * ucontrol) 829 struct snd_ctl_elem_value *ucontrol)
830{ 830{
831 a3dsrc_t *a = kcontrol->private_data; 831 a3dsrc_t *a = kcontrol->private_data;
832 int i, changed = 1; 832 int i, changed = 1;
@@ -845,7 +845,7 @@ snd_vortex_a3d_filter_put(snd_kcontrol_t
845 return changed; 845 return changed;
846} 846}
847 847
848static snd_kcontrol_new_t vortex_a3d_kcontrol __devinitdata = { 848static struct snd_kcontrol_new vortex_a3d_kcontrol __devinitdata = {
849 .iface = SNDRV_CTL_ELEM_IFACE_PCM, 849 .iface = SNDRV_CTL_ELEM_IFACE_PCM,
850 .name = "Playback PCM advanced processing", 850 .name = "Playback PCM advanced processing",
851 .access = SNDRV_CTL_ELEM_ACCESS_READWRITE, 851 .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
@@ -857,7 +857,7 @@ static snd_kcontrol_new_t vortex_a3d_kcontrol __devinitdata = {
857/* Control (un)registration. */ 857/* Control (un)registration. */
858static int vortex_a3d_register_controls(vortex_t * vortex) 858static int vortex_a3d_register_controls(vortex_t * vortex)
859{ 859{
860 snd_kcontrol_t *kcontrol; 860 struct snd_kcontrol *kcontrol;
861 int err, i; 861 int err, i;
862 /* HRTF controls. */ 862 /* HRTF controls. */
863 for (i = 0; i < NR_A3D; i++) { 863 for (i = 0; i < NR_A3D; i++) {
diff --git a/sound/pci/au88x0/au88x0_core.c b/sound/pci/au88x0/au88x0_core.c
index 5905188d06b5..e3394fe63253 100644
--- a/sound/pci/au88x0/au88x0_core.c
+++ b/sound/pci/au88x0/au88x0_core.c
@@ -1097,7 +1097,7 @@ static void vortex_adbdma_setstartbuffer(vortex_t * vortex, int adbdma, int sb)
1097 1097
1098static void 1098static void
1099vortex_adbdma_setbuffers(vortex_t * vortex, int adbdma, 1099vortex_adbdma_setbuffers(vortex_t * vortex, int adbdma,
1100 snd_pcm_sgbuf_t * sgbuf, int psize, int count) 1100 struct snd_sg_buf * sgbuf, int psize, int count)
1101{ 1101{
1102 stream_t *dma = &vortex->dma_adb[adbdma]; 1102 stream_t *dma = &vortex->dma_adb[adbdma];
1103 1103
@@ -1367,7 +1367,7 @@ static void vortex_wtdma_setstartbuffer(vortex_t * vortex, int wtdma, int sb)
1367 1367
1368static void 1368static void
1369vortex_wtdma_setbuffers(vortex_t * vortex, int wtdma, 1369vortex_wtdma_setbuffers(vortex_t * vortex, int wtdma,
1370 snd_pcm_sgbuf_t * sgbuf, int psize, int count) 1370 struct snd_sg_buf * sgbuf, int psize, int count)
1371{ 1371{
1372 stream_t *dma = &vortex->dma_wt[wtdma]; 1372 stream_t *dma = &vortex->dma_wt[wtdma];
1373 1373
@@ -2514,7 +2514,7 @@ static void vortex_codec_init(vortex_t * vortex)
2514} 2514}
2515 2515
2516static void 2516static void
2517vortex_codec_write(ac97_t * codec, unsigned short addr, unsigned short data) 2517vortex_codec_write(struct snd_ac97 * codec, unsigned short addr, unsigned short data)
2518{ 2518{
2519 2519
2520 vortex_t *card = (vortex_t *) codec->private_data; 2520 vortex_t *card = (vortex_t *) codec->private_data;
@@ -2539,7 +2539,7 @@ vortex_codec_write(ac97_t * codec, unsigned short addr, unsigned short data)
2539 hwread(card->mmio, VORTEX_CODEC_IO); 2539 hwread(card->mmio, VORTEX_CODEC_IO);
2540} 2540}
2541 2541
2542static unsigned short vortex_codec_read(ac97_t * codec, unsigned short addr) 2542static unsigned short vortex_codec_read(struct snd_ac97 * codec, unsigned short addr)
2543{ 2543{
2544 2544
2545 vortex_t *card = (vortex_t *) codec->private_data; 2545 vortex_t *card = (vortex_t *) codec->private_data;
diff --git a/sound/pci/au88x0/au88x0_eq.c b/sound/pci/au88x0/au88x0_eq.c
index 9d933cc0ea0b..13bc8ed301c5 100644
--- a/sound/pci/au88x0/au88x0_eq.c
+++ b/sound/pci/au88x0/au88x0_eq.c
@@ -730,7 +730,7 @@ static void vortex_Eqlzr_shutdown(vortex_t * vortex)
730 730
731/* Control interface */ 731/* Control interface */
732static int 732static int
733snd_vortex_eqtoggle_info(snd_kcontrol_t * kcontrol, snd_ctl_elem_info_t * uinfo) 733snd_vortex_eqtoggle_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
734{ 734{
735 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; 735 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
736 uinfo->count = 1; 736 uinfo->count = 1;
@@ -740,8 +740,8 @@ snd_vortex_eqtoggle_info(snd_kcontrol_t * kcontrol, snd_ctl_elem_info_t * uinfo)
740} 740}
741 741
742static int 742static int
743snd_vortex_eqtoggle_get(snd_kcontrol_t * kcontrol, 743snd_vortex_eqtoggle_get(struct snd_kcontrol *kcontrol,
744 snd_ctl_elem_value_t * ucontrol) 744 struct snd_ctl_elem_value *ucontrol)
745{ 745{
746 vortex_t *vortex = snd_kcontrol_chip(kcontrol); 746 vortex_t *vortex = snd_kcontrol_chip(kcontrol);
747 eqlzr_t *eq = &(vortex->eq); 747 eqlzr_t *eq = &(vortex->eq);
@@ -753,8 +753,8 @@ snd_vortex_eqtoggle_get(snd_kcontrol_t * kcontrol,
753} 753}
754 754
755static int 755static int
756snd_vortex_eqtoggle_put(snd_kcontrol_t * kcontrol, 756snd_vortex_eqtoggle_put(struct snd_kcontrol *kcontrol,
757 snd_ctl_elem_value_t * ucontrol) 757 struct snd_ctl_elem_value *ucontrol)
758{ 758{
759 vortex_t *vortex = snd_kcontrol_chip(kcontrol); 759 vortex_t *vortex = snd_kcontrol_chip(kcontrol);
760 eqlzr_t *eq = &(vortex->eq); 760 eqlzr_t *eq = &(vortex->eq);
@@ -766,7 +766,7 @@ snd_vortex_eqtoggle_put(snd_kcontrol_t * kcontrol,
766 return 1; /* Allways changes */ 766 return 1; /* Allways changes */
767} 767}
768 768
769static snd_kcontrol_new_t vortex_eqtoggle_kcontrol __devinitdata = { 769static struct snd_kcontrol_new vortex_eqtoggle_kcontrol __devinitdata = {
770 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 770 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
771 .name = "EQ Enable", 771 .name = "EQ Enable",
772 .index = 0, 772 .index = 0,
@@ -778,7 +778,7 @@ static snd_kcontrol_new_t vortex_eqtoggle_kcontrol __devinitdata = {
778}; 778};
779 779
780static int 780static int
781snd_vortex_eq_info(snd_kcontrol_t * kcontrol, snd_ctl_elem_info_t * uinfo) 781snd_vortex_eq_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
782{ 782{
783 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; 783 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
784 uinfo->count = 2; 784 uinfo->count = 2;
@@ -788,7 +788,7 @@ snd_vortex_eq_info(snd_kcontrol_t * kcontrol, snd_ctl_elem_info_t * uinfo)
788} 788}
789 789
790static int 790static int
791snd_vortex_eq_get(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) 791snd_vortex_eq_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
792{ 792{
793 vortex_t *vortex = snd_kcontrol_chip(kcontrol); 793 vortex_t *vortex = snd_kcontrol_chip(kcontrol);
794 int i = kcontrol->private_value; 794 int i = kcontrol->private_value;
@@ -802,7 +802,7 @@ snd_vortex_eq_get(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol)
802} 802}
803 803
804static int 804static int
805snd_vortex_eq_put(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) 805snd_vortex_eq_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
806{ 806{
807 vortex_t *vortex = snd_kcontrol_chip(kcontrol); 807 vortex_t *vortex = snd_kcontrol_chip(kcontrol);
808 int changed = 0, i = kcontrol->private_value; 808 int changed = 0, i = kcontrol->private_value;
@@ -824,7 +824,7 @@ snd_vortex_eq_put(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol)
824 return changed; 824 return changed;
825} 825}
826 826
827static snd_kcontrol_new_t vortex_eq_kcontrol __devinitdata = { 827static struct snd_kcontrol_new vortex_eq_kcontrol __devinitdata = {
828 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 828 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
829 .name = " .", 829 .name = " .",
830 .index = 0, 830 .index = 0,
@@ -836,7 +836,7 @@ static snd_kcontrol_new_t vortex_eq_kcontrol __devinitdata = {
836}; 836};
837 837
838static int 838static int
839snd_vortex_peaks_info(snd_kcontrol_t * kcontrol, snd_ctl_elem_info_t * uinfo) 839snd_vortex_peaks_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
840{ 840{
841 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; 841 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
842 uinfo->count = 20; 842 uinfo->count = 20;
@@ -846,7 +846,7 @@ snd_vortex_peaks_info(snd_kcontrol_t * kcontrol, snd_ctl_elem_info_t * uinfo)
846} 846}
847 847
848static int 848static int
849snd_vortex_peaks_get(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) 849snd_vortex_peaks_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
850{ 850{
851 vortex_t *vortex = snd_kcontrol_chip(kcontrol); 851 vortex_t *vortex = snd_kcontrol_chip(kcontrol);
852 int i, count; 852 int i, count;
@@ -863,7 +863,7 @@ snd_vortex_peaks_get(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol)
863 return 0; 863 return 0;
864} 864}
865 865
866static snd_kcontrol_new_t vortex_levels_kcontrol __devinitdata = { 866static struct snd_kcontrol_new vortex_levels_kcontrol __devinitdata = {
867 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 867 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
868 .name = "EQ Peaks", 868 .name = "EQ Peaks",
869 .access = SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE, 869 .access = SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE,
@@ -888,7 +888,7 @@ static char *EqBandLabels[10] __devinitdata = {
888/* ALSA driver entry points. Init and exit. */ 888/* ALSA driver entry points. Init and exit. */
889static int vortex_eq_init(vortex_t * vortex) 889static int vortex_eq_init(vortex_t * vortex)
890{ 890{
891 snd_kcontrol_t *kcontrol; 891 struct snd_kcontrol *kcontrol;
892 int err, i; 892 int err, i;
893 893
894 vortex_Eqlzr_init(vortex); 894 vortex_Eqlzr_init(vortex);
diff --git a/sound/pci/au88x0/au88x0_mixer.c b/sound/pci/au88x0/au88x0_mixer.c
index 86e27d695c37..c96da1dab863 100644
--- a/sound/pci/au88x0/au88x0_mixer.c
+++ b/sound/pci/au88x0/au88x0_mixer.c
@@ -13,10 +13,10 @@
13 13
14static int __devinit snd_vortex_mixer(vortex_t * vortex) 14static int __devinit snd_vortex_mixer(vortex_t * vortex)
15{ 15{
16 ac97_bus_t *pbus; 16 struct snd_ac97_bus *pbus;
17 ac97_template_t ac97; 17 struct snd_ac97_template ac97;
18 int err; 18 int err;
19 static ac97_bus_ops_t ops = { 19 static struct snd_ac97_bus_ops ops = {
20 .write = vortex_codec_write, 20 .write = vortex_codec_write,
21 .read = vortex_codec_read, 21 .read = vortex_codec_read,
22 }; 22 };
diff --git a/sound/pci/au88x0/au88x0_mpu401.c b/sound/pci/au88x0/au88x0_mpu401.c
index c0c23466eb0e..8ba6dd36222b 100644
--- a/sound/pci/au88x0/au88x0_mpu401.c
+++ b/sound/pci/au88x0/au88x0_mpu401.c
@@ -44,9 +44,9 @@
44 44
45static int __devinit snd_vortex_midi(vortex_t * vortex) 45static int __devinit snd_vortex_midi(vortex_t * vortex)
46{ 46{
47 snd_rawmidi_t *rmidi; 47 struct snd_rawmidi *rmidi;
48 int temp, mode; 48 int temp, mode;
49 mpu401_t *mpu; 49 struct snd_mpu401 *mpu;
50 int port; 50 int port;
51 51
52#ifdef VORTEX_MPU401_LEGACY 52#ifdef VORTEX_MPU401_LEGACY
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 */
34static snd_pcm_hardware_t snd_vortex_playback_hw_adb = { 34static 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
59static snd_pcm_hardware_t snd_vortex_playback_hw_a3d = { 59static 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
79static snd_pcm_hardware_t snd_vortex_playback_hw_spdif = { 79static 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
102static snd_pcm_hardware_t snd_vortex_playback_hw_wt = { 102static 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 */
120static int snd_vortex_pcm_open(snd_pcm_substream_t * substream) 120static 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 */
172static int snd_vortex_pcm_close(snd_pcm_substream_t * substream) 172static 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 */
187static int 187static int
188snd_vortex_pcm_hw_params(snd_pcm_substream_t * substream, 188snd_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 */
254static int snd_vortex_pcm_hw_free(snd_pcm_substream_t * substream) 254static 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 */
280static int snd_vortex_pcm_prepare(snd_pcm_substream_t * substream) 280static 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 */
313static int snd_vortex_pcm_trigger(snd_pcm_substream_t * substream, int cmd) 313static 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 */
377static snd_pcm_uframes_t snd_vortex_pcm_pointer(snd_pcm_substream_t * substream) 377static 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/*
398static struct page *snd_pcm_sgbuf_ops_page(snd_pcm_substream_t *substream, unsigned long offset) { 398static 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 */
404static snd_pcm_ops_t snd_vortex_playback_ops = { 404static 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
437static int snd_vortex_spdif_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo) 437static 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
444static int snd_vortex_spdif_mask_get(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) 444static 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
453static int snd_vortex_spdif_get(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) 453static 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
467static int snd_vortex_spdif_put(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) 467static 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 */
484static snd_kcontrol_new_t snd_vortex_mixer_spdif[] __devinitdata = { 484static 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 */
502static int __devinit snd_vortex_new_pcm(vortex_t * chip, int idx, int nr) 502static 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