Skip to content

Commit d3a7e47

Browse files
tiwaiJaroslav Kysela
authored andcommitted
[ALSA] Remove xxx_t typedefs: ISA ES1688
Modules: ES1688 driver Remove xxx_t typedefs from the ISA ES1688 driver. Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent ba2375a commit d3a7e47

3 files changed

Lines changed: 90 additions & 92 deletions

File tree

‎include/sound/es1688.h‎

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define ES1688_HW_688 0x0001
3131
#define ES1688_HW_1688 0x0002
3232

33-
struct _snd_es1688 {
33+
struct snd_es1688 {
3434
unsigned long port; /* port of ESS chip */
3535
struct resource *res_port;
3636
unsigned long mpu_port; /* MPU-401 port of ESS chip */
@@ -44,17 +44,15 @@ struct _snd_es1688 {
4444
unsigned char pad;
4545
unsigned int dma_size;
4646

47-
snd_card_t *card;
48-
snd_pcm_t *pcm;
49-
snd_pcm_substream_t *playback_substream;
50-
snd_pcm_substream_t *capture_substream;
47+
struct snd_card *card;
48+
struct snd_pcm *pcm;
49+
struct snd_pcm_substream *playback_substream;
50+
struct snd_pcm_substream *capture_substream;
5151

5252
spinlock_t reg_lock;
5353
spinlock_t mixer_lock;
5454
};
5555

56-
typedef struct _snd_es1688 es1688_t;
57-
5856
/* I/O ports */
5957

6058
#define ES1688P(codec, x) ((codec)->port + e_s_s_ESS1688##x)
@@ -107,17 +105,17 @@ typedef struct _snd_es1688 es1688_t;
107105
108106
*/
109107

110-
void snd_es1688_mixer_write(es1688_t *chip, unsigned char reg, unsigned char data);
108+
void snd_es1688_mixer_write(struct snd_es1688 *chip, unsigned char reg, unsigned char data);
111109

112-
int snd_es1688_create(snd_card_t * card,
110+
int snd_es1688_create(struct snd_card *card,
113111
unsigned long port,
114112
unsigned long mpu_port,
115113
int irq,
116114
int mpu_irq,
117115
int dma8,
118116
unsigned short hardware,
119-
es1688_t ** rchip);
120-
int snd_es1688_pcm(es1688_t *chip, int device, snd_pcm_t ** rpcm);
121-
int snd_es1688_mixer(es1688_t *chip);
117+
struct snd_es1688 ** rchip);
118+
int snd_es1688_pcm(struct snd_es1688 *chip, int device, struct snd_pcm ** rpcm);
119+
int snd_es1688_mixer(struct snd_es1688 *chip);
122120

123121
#endif /* __SOUND_ES1688_H */

‎sound/isa/es1688/es1688.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ MODULE_PARM_DESC(mpu_irq, "MPU-401 IRQ # for ESx688 driver.");
6868
module_param_array(dma8, int, NULL, 0444);
6969
MODULE_PARM_DESC(dma8, "8-bit DMA # for ESx688 driver.");
7070

71-
static snd_card_t *snd_audiodrive_cards[SNDRV_CARDS] = SNDRV_DEFAULT_PTR;
71+
static struct snd_card *snd_audiodrive_cards[SNDRV_CARDS] = SNDRV_DEFAULT_PTR;
7272

7373
#define PFX "es1688: "
7474

@@ -77,10 +77,10 @@ static int __init snd_audiodrive_probe(int dev)
7777
static int possible_irqs[] = {5, 9, 10, 7, -1};
7878
static int possible_dmas[] = {1, 3, 0, -1};
7979
int xirq, xdma, xmpu_irq;
80-
snd_card_t *card;
81-
es1688_t *chip;
82-
opl3_t *opl3;
83-
snd_pcm_t *pcm;
80+
struct snd_card *card;
81+
struct snd_es1688 *chip;
82+
struct snd_opl3 *opl3;
83+
struct snd_pcm *pcm;
8484
int err;
8585

8686
card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0);

0 commit comments

Comments
 (0)