aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa/wavefront/wavefront_synth.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-11-17 08:39:06 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:18:30 -0500
commit542172f31d41e689988aedcf0d6e67dfe757736a (patch)
treecaad40a7368afc0eb719491b09e84f279b1f9bf6 /sound/isa/wavefront/wavefront_synth.c
parent346c7a689542285aef9b899eda7693d4b912d60d (diff)
[ALSA] Remove xxx_t typedefs: ISA Wavefront
Modules: Wavefront drivers Remove xxx_t typedefs from the ISA Wavefront driver. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa/wavefront/wavefront_synth.c')
-rw-r--r--sound/isa/wavefront/wavefront_synth.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/sound/isa/wavefront/wavefront_synth.c b/sound/isa/wavefront/wavefront_synth.c
index abd79b781412..679d0ae97e4f 100644
--- a/sound/isa/wavefront/wavefront_synth.c
+++ b/sound/isa/wavefront/wavefront_synth.c
@@ -144,13 +144,13 @@ MODULE_PARM_DESC(osrun_time, "how many seconds to wait for the ICS2115 OS");
144static int wavefront_delete_sample (snd_wavefront_t *, int sampnum); 144static int wavefront_delete_sample (snd_wavefront_t *, int sampnum);
145static int wavefront_find_free_sample (snd_wavefront_t *); 145static int wavefront_find_free_sample (snd_wavefront_t *);
146 146
147typedef struct { 147struct wavefront_command {
148 int cmd; 148 int cmd;
149 char *action; 149 char *action;
150 unsigned int read_cnt; 150 unsigned int read_cnt;
151 unsigned int write_cnt; 151 unsigned int write_cnt;
152 int need_ack; 152 int need_ack;
153} wavefront_command; 153};
154 154
155static struct { 155static struct {
156 int errno; 156 int errno;
@@ -170,7 +170,7 @@ static struct {
170 170
171#define NEEDS_ACK 1 171#define NEEDS_ACK 1
172 172
173static wavefront_command wavefront_commands[] = { 173static struct wavefront_command wavefront_commands[] = {
174 { WFC_SET_SYNTHVOL, "set synthesizer volume", 0, 1, NEEDS_ACK }, 174 { WFC_SET_SYNTHVOL, "set synthesizer volume", 0, 1, NEEDS_ACK },
175 { WFC_GET_SYNTHVOL, "get synthesizer volume", 1, 0, 0}, 175 { WFC_GET_SYNTHVOL, "get synthesizer volume", 1, 0, 0},
176 { WFC_SET_NVOICES, "set number of voices", 0, 1, NEEDS_ACK }, 176 { WFC_SET_NVOICES, "set number of voices", 0, 1, NEEDS_ACK },
@@ -249,7 +249,7 @@ wavefront_errorstr (int errnum)
249 return "Unknown WaveFront error"; 249 return "Unknown WaveFront error";
250} 250}
251 251
252static wavefront_command * 252static struct wavefront_command *
253wavefront_get_command (int cmd) 253wavefront_get_command (int cmd)
254 254
255{ 255{
@@ -261,7 +261,7 @@ wavefront_get_command (int cmd)
261 } 261 }
262 } 262 }
263 263
264 return (wavefront_command *) 0; 264 return NULL;
265} 265}
266 266
267static inline int 267static inline int
@@ -345,9 +345,9 @@ snd_wavefront_cmd (snd_wavefront_t *dev,
345 int ack; 345 int ack;
346 unsigned int i; 346 unsigned int i;
347 int c; 347 int c;
348 wavefront_command *wfcmd; 348 struct wavefront_command *wfcmd;
349 349
350 if ((wfcmd = wavefront_get_command (cmd)) == (wavefront_command *) 0) { 350 if ((wfcmd = wavefront_get_command (cmd)) == NULL) {
351 snd_printk ("command 0x%x not supported.\n", 351 snd_printk ("command 0x%x not supported.\n",
352 cmd); 352 cmd);
353 return 1; 353 return 1;
@@ -1625,7 +1625,7 @@ wavefront_synth_control (snd_wavefront_card_t *acard,
1625} 1625}
1626 1626
1627int 1627int
1628snd_wavefront_synth_open (snd_hwdep_t *hw, struct file *file) 1628snd_wavefront_synth_open (struct snd_hwdep *hw, struct file *file)
1629 1629
1630{ 1630{
1631 if (!try_module_get(hw->card->module)) 1631 if (!try_module_get(hw->card->module))
@@ -1635,7 +1635,7 @@ snd_wavefront_synth_open (snd_hwdep_t *hw, struct file *file)
1635} 1635}
1636 1636
1637int 1637int
1638snd_wavefront_synth_release (snd_hwdep_t *hw, struct file *file) 1638snd_wavefront_synth_release (struct snd_hwdep *hw, struct file *file)
1639 1639
1640{ 1640{
1641 module_put(hw->card->module); 1641 module_put(hw->card->module);
@@ -1643,18 +1643,18 @@ snd_wavefront_synth_release (snd_hwdep_t *hw, struct file *file)
1643} 1643}
1644 1644
1645int 1645int
1646snd_wavefront_synth_ioctl (snd_hwdep_t *hw, struct file *file, 1646snd_wavefront_synth_ioctl (struct snd_hwdep *hw, struct file *file,
1647 unsigned int cmd, unsigned long arg) 1647 unsigned int cmd, unsigned long arg)
1648 1648
1649{ 1649{
1650 snd_card_t *card; 1650 struct snd_card *card;
1651 snd_wavefront_t *dev; 1651 snd_wavefront_t *dev;
1652 snd_wavefront_card_t *acard; 1652 snd_wavefront_card_t *acard;
1653 wavefront_control *wc; 1653 wavefront_control *wc;
1654 void __user *argp = (void __user *)arg; 1654 void __user *argp = (void __user *)arg;
1655 int err; 1655 int err;
1656 1656
1657 card = (snd_card_t *) hw->card; 1657 card = (struct snd_card *) hw->card;
1658 1658
1659 snd_assert(card != NULL, return -ENODEV); 1659 snd_assert(card != NULL, return -ENODEV);
1660 1660