Skip to content

Commit c8ff664

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

3 files changed

Lines changed: 105 additions & 107 deletions

File tree

‎include/sound/ad1848.h‎

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
#define AD1848_THINKPAD_CTL_PORT2 0x15e9
128128
#define AD1848_THINKPAD_CS4248_ENABLE_BIT 0x02
129129

130-
struct _snd_ad1848 {
130+
struct snd_ad1848 {
131131
unsigned long port; /* i/o port */
132132
struct resource *res_port;
133133
int irq; /* IRQ line */
@@ -137,10 +137,10 @@ struct _snd_ad1848 {
137137
unsigned short hardware; /* see to AD1848_HW_XXXX */
138138
unsigned short single_dma:1; /* forced single DMA mode (GUS 16-bit daughter board) or dma1 == dma2 */
139139

140-
snd_pcm_t *pcm;
141-
snd_pcm_substream_t *playback_substream;
142-
snd_pcm_substream_t *capture_substream;
143-
snd_card_t *card;
140+
struct snd_pcm *pcm;
141+
struct snd_pcm_substream *playback_substream;
142+
struct snd_pcm_substream *capture_substream;
143+
struct snd_card *card;
144144

145145
unsigned char image[32]; /* SGalaxy needs an access to extended registers */
146146
int mce_bit;
@@ -152,21 +152,19 @@ struct _snd_ad1848 {
152152
struct semaphore open_mutex;
153153
};
154154

155-
typedef struct _snd_ad1848 ad1848_t;
156-
157155
/* exported functions */
158156

159-
void snd_ad1848_out(ad1848_t *chip, unsigned char reg, unsigned char value);
157+
void snd_ad1848_out(struct snd_ad1848 *chip, unsigned char reg, unsigned char value);
160158

161-
int snd_ad1848_create(snd_card_t * card,
159+
int snd_ad1848_create(struct snd_card *card,
162160
unsigned long port,
163161
int irq, int dma,
164162
unsigned short hardware,
165-
ad1848_t ** chip);
163+
struct snd_ad1848 ** chip);
166164

167-
int snd_ad1848_pcm(ad1848_t * chip, int device, snd_pcm_t **rpcm);
168-
const snd_pcm_ops_t *snd_ad1848_get_pcm_ops(int direction);
169-
int snd_ad1848_mixer(ad1848_t * chip);
165+
int snd_ad1848_pcm(struct snd_ad1848 * chip, int device, struct snd_pcm **rpcm);
166+
const struct snd_pcm_ops *snd_ad1848_get_pcm_ops(int direction);
167+
int snd_ad1848_mixer(struct snd_ad1848 * chip);
170168

171169
/* exported mixer stuffs */
172170
enum { AD1848_MIX_SINGLE, AD1848_MIX_DOUBLE, AD1848_MIX_CAPTURE };
@@ -176,7 +174,7 @@ enum { AD1848_MIX_SINGLE, AD1848_MIX_DOUBLE, AD1848_MIX_CAPTURE };
176174
#define AD1848_MIXVAL_DOUBLE(left_reg, right_reg, shift_left, shift_right, mask, invert) \
177175
((left_reg) | ((right_reg) << 8) | ((shift_left) << 16) | ((shift_right) << 19) | ((mask) << 24) | ((invert) << 22))
178176

179-
int snd_ad1848_add_ctl(ad1848_t *chip, const char *name, int index, int type, unsigned long value);
177+
int snd_ad1848_add_ctl(struct snd_ad1848 *chip, const char *name, int index, int type, unsigned long value);
180178

181179
/* for ease of use */
182180
struct ad1848_mix_elem {
@@ -198,7 +196,7 @@ struct ad1848_mix_elem {
198196
.type = AD1848_MIX_DOUBLE, \
199197
.private_value = AD1848_MIXVAL_DOUBLE(left_reg, right_reg, shift_left, shift_right, mask, invert) }
200198

201-
static inline int snd_ad1848_add_ctl_elem(ad1848_t *chip, const struct ad1848_mix_elem *c)
199+
static inline int snd_ad1848_add_ctl_elem(struct snd_ad1848 *chip, const struct ad1848_mix_elem *c)
202200
{
203201
return snd_ad1848_add_ctl(chip, c->name, c->index, c->type, c->private_value);
204202
}

‎sound/isa/ad1848/ad1848.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ MODULE_PARM_DESC(dma1, "DMA1 # for AD1848 driver.");
6060
module_param_array(thinkpad, bool, NULL, 0444);
6161
MODULE_PARM_DESC(thinkpad, "Enable only for the onboard CS4248 of IBM Thinkpad 360/750/755 series.");
6262

63-
static snd_card_t *snd_ad1848_cards[SNDRV_CARDS] = SNDRV_DEFAULT_PTR;
63+
static struct snd_card *snd_ad1848_cards[SNDRV_CARDS] = SNDRV_DEFAULT_PTR;
6464

6565

6666
static int __init snd_card_ad1848_probe(int dev)
6767
{
68-
snd_card_t *card;
69-
ad1848_t *chip;
70-
snd_pcm_t *pcm;
68+
struct snd_card *card;
69+
struct snd_ad1848 *chip;
70+
struct snd_pcm *pcm;
7171
int err;
7272

7373
if (port[dev] == SNDRV_AUTO_PORT) {

0 commit comments

Comments
 (0)