Skip to content

Commit 542172f

Browse files
tiwaiJaroslav Kysela
authored andcommitted
[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>
1 parent 346c7a6 commit 542172f

5 files changed

Lines changed: 56 additions & 56 deletions

File tree

‎include/sound/snd_wavefront.h‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ struct _snd_wavefront_midi {
2626
snd_wavefront_mpu_id output_mpu; /* most-recently-used */
2727
snd_wavefront_mpu_id input_mpu; /* most-recently-used */
2828
unsigned int mode[2]; /* MPU401_MODE_XXX */
29-
snd_rawmidi_substream_t *substream_output[2];
30-
snd_rawmidi_substream_t *substream_input[2];
29+
struct snd_rawmidi_substream *substream_output[2];
30+
struct snd_rawmidi_substream *substream_input[2];
3131
struct timer_list timer;
3232
spinlock_t open;
3333
spinlock_t virtual; /* protects isvirtual */
@@ -38,8 +38,8 @@ struct _snd_wavefront_midi {
3838
#define MPU_ACK 0xFE
3939
#define UART_MODE_ON 0x3F
4040

41-
extern snd_rawmidi_ops_t snd_wavefront_midi_output;
42-
extern snd_rawmidi_ops_t snd_wavefront_midi_input;
41+
extern struct snd_rawmidi_ops snd_wavefront_midi_output;
42+
extern struct snd_rawmidi_ops snd_wavefront_midi_input;
4343

4444
extern void snd_wavefront_midi_enable_virtual (snd_wavefront_card_t *);
4545
extern void snd_wavefront_midi_disable_virtual (snd_wavefront_card_t *);
@@ -116,23 +116,23 @@ extern int snd_wavefront_config_midi (snd_wavefront_t *dev) ;
116116
extern int snd_wavefront_cmd (snd_wavefront_t *, int, unsigned char *,
117117
unsigned char *);
118118

119-
extern int snd_wavefront_synth_ioctl (snd_hwdep_t *,
119+
extern int snd_wavefront_synth_ioctl (struct snd_hwdep *,
120120
struct file *,
121121
unsigned int cmd,
122122
unsigned long arg);
123-
extern int snd_wavefront_synth_open (snd_hwdep_t *, struct file *);
124-
extern int snd_wavefront_synth_release (snd_hwdep_t *, struct file *);
123+
extern int snd_wavefront_synth_open (struct snd_hwdep *, struct file *);
124+
extern int snd_wavefront_synth_release (struct snd_hwdep *, struct file *);
125125

126126
/* FX processor - see also yss225.[ch] */
127127

128128
extern int snd_wavefront_fx_start (snd_wavefront_t *);
129129
extern int snd_wavefront_fx_detect (snd_wavefront_t *);
130-
extern int snd_wavefront_fx_ioctl (snd_hwdep_t *,
130+
extern int snd_wavefront_fx_ioctl (struct snd_hwdep *,
131131
struct file *,
132132
unsigned int cmd,
133133
unsigned long arg);
134-
extern int snd_wavefront_fx_open (snd_hwdep_t *, struct file *);
135-
extern int snd_wavefront_fx_release (snd_hwdep_t *, struct file *);
134+
extern int snd_wavefront_fx_open (struct snd_hwdep *, struct file *);
135+
extern int snd_wavefront_fx_release (struct snd_hwdep *, struct file *);
136136

137137
/* prefix in all snd_printk() delivered messages */
138138

‎sound/isa/wavefront/wavefront.c‎

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ MODULE_PARM_DESC(fm_port, "FM port #.");
8181
module_param_array(use_cs4232_midi, bool, NULL, 0444);
8282
MODULE_PARM_DESC(use_cs4232_midi, "Use CS4232 MPU-401 interface (inaccessibly located inside your computer)");
8383

84-
static snd_card_t *snd_wavefront_legacy[SNDRV_CARDS] = SNDRV_DEFAULT_PTR;
84+
static struct snd_card *snd_wavefront_legacy[SNDRV_CARDS] = SNDRV_DEFAULT_PTR;
8585

8686
#ifdef CONFIG_PNP
8787

@@ -279,12 +279,12 @@ static irqreturn_t snd_wavefront_ics2115_interrupt(int irq,
279279
return IRQ_HANDLED;
280280
}
281281

282-
static snd_hwdep_t * __devinit
283-
snd_wavefront_new_synth (snd_card_t *card,
282+
static struct snd_hwdep * __devinit
283+
snd_wavefront_new_synth (struct snd_card *card,
284284
int hw_dev,
285285
snd_wavefront_card_t *acard)
286286
{
287-
snd_hwdep_t *wavefront_synth;
287+
struct snd_hwdep *wavefront_synth;
288288

289289
if (snd_wavefront_detect (acard) < 0) {
290290
return NULL;
@@ -305,14 +305,14 @@ snd_wavefront_new_synth (snd_card_t *card,
305305
return wavefront_synth;
306306
}
307307

308-
static snd_hwdep_t * __devinit
309-
snd_wavefront_new_fx (snd_card_t *card,
308+
static struct snd_hwdep * __devinit
309+
snd_wavefront_new_fx (struct snd_card *card,
310310
int hw_dev,
311311
snd_wavefront_card_t *acard,
312312
unsigned long port)
313313

314314
{
315-
snd_hwdep_t *fx_processor;
315+
struct snd_hwdep *fx_processor;
316316

317317
if (snd_wavefront_fx_start (&acard->wavefront)) {
318318
snd_printk ("cannot initialize YSS225 FX processor");
@@ -332,15 +332,15 @@ snd_wavefront_new_fx (snd_card_t *card,
332332
static snd_wavefront_mpu_id internal_id = internal_mpu;
333333
static snd_wavefront_mpu_id external_id = external_mpu;
334334

335-
static snd_rawmidi_t * __devinit
336-
snd_wavefront_new_midi (snd_card_t *card,
335+
static struct snd_rawmidi *__devinit
336+
snd_wavefront_new_midi (struct snd_card *card,
337337
int midi_dev,
338338
snd_wavefront_card_t *acard,
339339
unsigned long port,
340340
snd_wavefront_mpu_id mpu)
341341

342342
{
343-
snd_rawmidi_t *rmidi;
343+
struct snd_rawmidi *rmidi;
344344
static int first = 1;
345345

346346
if (first) {
@@ -374,7 +374,7 @@ snd_wavefront_new_midi (snd_card_t *card,
374374
}
375375

376376
static void
377-
snd_wavefront_free(snd_card_t *card)
377+
snd_wavefront_free(struct snd_card *card)
378378
{
379379
snd_wavefront_card_t *acard = (snd_wavefront_card_t *)card->private_data;
380380

@@ -389,13 +389,13 @@ static int __devinit
389389
snd_wavefront_probe (int dev, struct pnp_card_link *pcard,
390390
const struct pnp_card_device_id *pid)
391391
{
392-
snd_card_t *card;
392+
struct snd_card *card;
393393
snd_wavefront_card_t *acard;
394-
cs4231_t *chip;
395-
snd_hwdep_t *wavefront_synth;
396-
snd_rawmidi_t *ics2115_internal_rmidi = NULL;
397-
snd_rawmidi_t *ics2115_external_rmidi = NULL;
398-
snd_hwdep_t *fx_processor;
394+
struct snd_cs4231 *chip;
395+
struct snd_hwdep *wavefront_synth;
396+
struct snd_rawmidi *ics2115_internal_rmidi = NULL;
397+
struct snd_rawmidi *ics2115_external_rmidi = NULL;
398+
struct snd_hwdep *fx_processor;
399399
int hw_dev = 0, midi_dev = 0, err;
400400

401401
#ifdef CONFIG_PNP
@@ -467,7 +467,7 @@ snd_wavefront_probe (int dev, struct pnp_card_link *pcard,
467467
/* ---------- OPL3 synth --------- */
468468

469469
if (fm_port[dev] > 0 && fm_port[dev] != SNDRV_AUTO_PORT) {
470-
opl3_t *opl3;
470+
struct snd_opl3 *opl3;
471471

472472
if ((err = snd_opl3_create(card,
473473
fm_port[dev],
@@ -658,7 +658,7 @@ static int __devinit snd_wavefront_pnp_detect(struct pnp_card_link *card,
658658

659659
static void __devexit snd_wavefront_pnp_remove(struct pnp_card_link * pcard)
660660
{
661-
snd_card_t *card = (snd_card_t *) pnp_get_card_drvdata(pcard);
661+
struct snd_card *card = (struct snd_card *) pnp_get_card_drvdata(pcard);
662662

663663
snd_card_disconnect(card);
664664
snd_card_free_in_thread(card);

‎sound/isa/wavefront/wavefront_fx.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ snd_wavefront_fx_detect (snd_wavefront_t *dev)
460460
}
461461

462462
int
463-
snd_wavefront_fx_open (snd_hwdep_t *hw, struct file *file)
463+
snd_wavefront_fx_open (struct snd_hwdep *hw, struct file *file)
464464

465465
{
466466
if (!try_module_get(hw->card->module))
@@ -470,19 +470,19 @@ snd_wavefront_fx_open (snd_hwdep_t *hw, struct file *file)
470470
}
471471

472472
int
473-
snd_wavefront_fx_release (snd_hwdep_t *hw, struct file *file)
473+
snd_wavefront_fx_release (struct snd_hwdep *hw, struct file *file)
474474

475475
{
476476
module_put(hw->card->module);
477477
return 0;
478478
}
479479

480480
int
481-
snd_wavefront_fx_ioctl (snd_hwdep_t *sdev, struct file *file,
481+
snd_wavefront_fx_ioctl (struct snd_hwdep *sdev, struct file *file,
482482
unsigned int cmd, unsigned long arg)
483483

484484
{
485-
snd_card_t *card;
485+
struct snd_card *card;
486486
snd_wavefront_card_t *acard;
487487
snd_wavefront_t *dev;
488488
wavefront_fx_info r;

‎sound/isa/wavefront/wavefront_midi.c‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ write_data (snd_wavefront_midi_t *midi, unsigned char byte)
9191
}
9292

9393
static snd_wavefront_midi_t *
94-
get_wavefront_midi (snd_rawmidi_substream_t *substream)
94+
get_wavefront_midi (struct snd_rawmidi_substream *substream)
9595

9696
{
97-
snd_card_t *card;
97+
struct snd_card *card;
9898
snd_wavefront_card_t *acard;
9999

100100
if (substream == NULL || substream->rmidi == NULL)
@@ -230,7 +230,7 @@ static void snd_wavefront_midi_output_write(snd_wavefront_card_t *card)
230230
}
231231
}
232232

233-
static int snd_wavefront_midi_input_open(snd_rawmidi_substream_t * substream)
233+
static int snd_wavefront_midi_input_open(struct snd_rawmidi_substream *substream)
234234
{
235235
unsigned long flags;
236236
snd_wavefront_midi_t *midi;
@@ -252,7 +252,7 @@ static int snd_wavefront_midi_input_open(snd_rawmidi_substream_t * substream)
252252
return 0;
253253
}
254254

255-
static int snd_wavefront_midi_output_open(snd_rawmidi_substream_t * substream)
255+
static int snd_wavefront_midi_output_open(struct snd_rawmidi_substream *substream)
256256
{
257257
unsigned long flags;
258258
snd_wavefront_midi_t *midi;
@@ -274,7 +274,7 @@ static int snd_wavefront_midi_output_open(snd_rawmidi_substream_t * substream)
274274
return 0;
275275
}
276276

277-
static int snd_wavefront_midi_input_close(snd_rawmidi_substream_t * substream)
277+
static int snd_wavefront_midi_input_close(struct snd_rawmidi_substream *substream)
278278
{
279279
unsigned long flags;
280280
snd_wavefront_midi_t *midi;
@@ -295,7 +295,7 @@ static int snd_wavefront_midi_input_close(snd_rawmidi_substream_t * substream)
295295
return 0;
296296
}
297297

298-
static int snd_wavefront_midi_output_close(snd_rawmidi_substream_t * substream)
298+
static int snd_wavefront_midi_output_close(struct snd_rawmidi_substream *substream)
299299
{
300300
unsigned long flags;
301301
snd_wavefront_midi_t *midi;
@@ -315,7 +315,7 @@ static int snd_wavefront_midi_output_close(snd_rawmidi_substream_t * substream)
315315
return 0;
316316
}
317317

318-
static void snd_wavefront_midi_input_trigger(snd_rawmidi_substream_t * substream, int up)
318+
static void snd_wavefront_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
319319
{
320320
unsigned long flags;
321321
snd_wavefront_midi_t *midi;
@@ -355,7 +355,7 @@ static void snd_wavefront_midi_output_timer(unsigned long data)
355355
snd_wavefront_midi_output_write(card);
356356
}
357357

358-
static void snd_wavefront_midi_output_trigger(snd_rawmidi_substream_t * substream, int up)
358+
static void snd_wavefront_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
359359
{
360360
unsigned long flags;
361361
snd_wavefront_midi_t *midi;
@@ -401,7 +401,7 @@ snd_wavefront_midi_interrupt (snd_wavefront_card_t *card)
401401
{
402402
unsigned long flags;
403403
snd_wavefront_midi_t *midi;
404-
static snd_rawmidi_substream_t *substream = NULL;
404+
static struct snd_rawmidi_substream *substream = NULL;
405405
static int mpu = external_mpu;
406406
int max = 128;
407407
unsigned char byte;
@@ -554,14 +554,14 @@ snd_wavefront_midi_start (snd_wavefront_card_t *card)
554554
return 0;
555555
}
556556

557-
snd_rawmidi_ops_t snd_wavefront_midi_output =
557+
struct snd_rawmidi_ops snd_wavefront_midi_output =
558558
{
559559
.open = snd_wavefront_midi_output_open,
560560
.close = snd_wavefront_midi_output_close,
561561
.trigger = snd_wavefront_midi_output_trigger,
562562
};
563563

564-
snd_rawmidi_ops_t snd_wavefront_midi_input =
564+
struct snd_rawmidi_ops snd_wavefront_midi_input =
565565
{
566566
.open = snd_wavefront_midi_input_open,
567567
.close = snd_wavefront_midi_input_close,

‎sound/isa/wavefront/wavefront_synth.c‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ MODULE_PARM_DESC(osrun_time, "how many seconds to wait for the ICS2115 OS");
144144
static int wavefront_delete_sample (snd_wavefront_t *, int sampnum);
145145
static int wavefront_find_free_sample (snd_wavefront_t *);
146146

147-
typedef struct {
147+
struct wavefront_command {
148148
int cmd;
149149
char *action;
150150
unsigned int read_cnt;
151151
unsigned int write_cnt;
152152
int need_ack;
153-
} wavefront_command;
153+
};
154154

155155
static struct {
156156
int errno;
@@ -170,7 +170,7 @@ static struct {
170170

171171
#define NEEDS_ACK 1
172172

173-
static wavefront_command wavefront_commands[] = {
173+
static struct wavefront_command wavefront_commands[] = {
174174
{ WFC_SET_SYNTHVOL, "set synthesizer volume", 0, 1, NEEDS_ACK },
175175
{ WFC_GET_SYNTHVOL, "get synthesizer volume", 1, 0, 0},
176176
{ WFC_SET_NVOICES, "set number of voices", 0, 1, NEEDS_ACK },
@@ -249,7 +249,7 @@ wavefront_errorstr (int errnum)
249249
return "Unknown WaveFront error";
250250
}
251251

252-
static wavefront_command *
252+
static struct wavefront_command *
253253
wavefront_get_command (int cmd)
254254

255255
{
@@ -261,7 +261,7 @@ wavefront_get_command (int cmd)
261261
}
262262
}
263263

264-
return (wavefront_command *) 0;
264+
return NULL;
265265
}
266266

267267
static inline int
@@ -345,9 +345,9 @@ snd_wavefront_cmd (snd_wavefront_t *dev,
345345
int ack;
346346
unsigned int i;
347347
int c;
348-
wavefront_command *wfcmd;
348+
struct wavefront_command *wfcmd;
349349

350-
if ((wfcmd = wavefront_get_command (cmd)) == (wavefront_command *) 0) {
350+
if ((wfcmd = wavefront_get_command (cmd)) == NULL) {
351351
snd_printk ("command 0x%x not supported.\n",
352352
cmd);
353353
return 1;
@@ -1625,7 +1625,7 @@ wavefront_synth_control (snd_wavefront_card_t *acard,
16251625
}
16261626

16271627
int
1628-
snd_wavefront_synth_open (snd_hwdep_t *hw, struct file *file)
1628+
snd_wavefront_synth_open (struct snd_hwdep *hw, struct file *file)
16291629

16301630
{
16311631
if (!try_module_get(hw->card->module))
@@ -1635,26 +1635,26 @@ snd_wavefront_synth_open (snd_hwdep_t *hw, struct file *file)
16351635
}
16361636

16371637
int
1638-
snd_wavefront_synth_release (snd_hwdep_t *hw, struct file *file)
1638+
snd_wavefront_synth_release (struct snd_hwdep *hw, struct file *file)
16391639

16401640
{
16411641
module_put(hw->card->module);
16421642
return 0;
16431643
}
16441644

16451645
int
1646-
snd_wavefront_synth_ioctl (snd_hwdep_t *hw, struct file *file,
1646+
snd_wavefront_synth_ioctl (struct snd_hwdep *hw, struct file *file,
16471647
unsigned int cmd, unsigned long arg)
16481648

16491649
{
1650-
snd_card_t *card;
1650+
struct snd_card *card;
16511651
snd_wavefront_t *dev;
16521652
snd_wavefront_card_t *acard;
16531653
wavefront_control *wc;
16541654
void __user *argp = (void __user *)arg;
16551655
int err;
16561656

1657-
card = (snd_card_t *) hw->card;
1657+
card = (struct snd_card *) hw->card;
16581658

16591659
snd_assert(card != NULL, return -ENODEV);
16601660

0 commit comments

Comments
 (0)