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 */
172170enum { 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 */
182180struct 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}
0 commit comments