Skip to content

Commit cbdd0dd

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

3 files changed

Lines changed: 102 additions & 104 deletions

File tree

‎include/sound/ad1816a.h‎

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@
123123
#define AD1816A_CAPTURE_NOT_EQUAL 0x1000
124124
#define AD1816A_WSS_ENABLE 0x8000
125125

126-
typedef struct _snd_ad1816a ad1816a_t;
127-
128-
struct _snd_ad1816a {
126+
struct snd_ad1816a {
129127
unsigned long port;
130128
struct resource *res_port;
131129
int irq;
@@ -140,15 +138,15 @@ struct _snd_ad1816a {
140138
unsigned short mode;
141139
unsigned int clock_freq;
142140

143-
snd_card_t *card;
144-
snd_pcm_t *pcm;
141+
struct snd_card *card;
142+
struct snd_pcm *pcm;
145143

146-
snd_pcm_substream_t *playback_substream;
147-
snd_pcm_substream_t *capture_substream;
144+
struct snd_pcm_substream *playback_substream;
145+
struct snd_pcm_substream *capture_substream;
148146
unsigned int p_dma_size;
149147
unsigned int c_dma_size;
150148

151-
snd_timer_t *timer;
149+
struct snd_timer *timer;
152150
};
153151

154152

@@ -165,11 +163,11 @@ struct _snd_ad1816a {
165163
AD1816A_MODE_TIMER)
166164

167165

168-
extern int snd_ad1816a_create(snd_card_t *card, unsigned long port,
166+
extern int snd_ad1816a_create(struct snd_card *card, unsigned long port,
169167
int irq, int dma1, int dma2,
170-
ad1816a_t **chip);
168+
struct snd_ad1816a **chip);
171169

172-
extern int snd_ad1816a_pcm(ad1816a_t *chip, int device, snd_pcm_t **rpcm);
173-
extern int snd_ad1816a_mixer(ad1816a_t *chip);
170+
extern int snd_ad1816a_pcm(struct snd_ad1816a *chip, int device, struct snd_pcm **rpcm);
171+
extern int snd_ad1816a_mixer(struct snd_ad1816a *chip);
174172

175173
#endif /* __SOUND_AD1816A_H */

‎sound/isa/ad1816a/ad1816a.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ static int __devinit snd_card_ad1816a_probe(int dev, struct pnp_card_link *pcard
188188
const struct pnp_card_device_id *pid)
189189
{
190190
int error;
191-
snd_card_t *card;
191+
struct snd_card *card;
192192
struct snd_card_ad1816a *acard;
193-
ad1816a_t *chip;
194-
opl3_t *opl3;
193+
struct snd_ad1816a *chip;
194+
struct snd_opl3 *opl3;
195195

196196
if ((card = snd_card_new(index[dev], id[dev], THIS_MODULE,
197197
sizeof(struct snd_card_ad1816a))) == NULL)
@@ -282,7 +282,7 @@ static int __devinit snd_ad1816a_pnp_detect(struct pnp_card_link *card,
282282

283283
static void __devexit snd_ad1816a_pnp_remove(struct pnp_card_link * pcard)
284284
{
285-
snd_card_t *card = (snd_card_t *) pnp_get_card_drvdata(pcard);
285+
struct snd_card *card = (struct snd_card *) pnp_get_card_drvdata(pcard);
286286

287287
snd_card_disconnect(card);
288288
snd_card_free_in_thread(card);

0 commit comments

Comments
 (0)