@@ -60,7 +60,7 @@ enum sb_hw_type {
6060
6161#define SB_MPU_INPUT 1
6262
63- struct _snd_sb {
63+ struct snd_sb {
6464 unsigned long port ; /* base port of DSP chip */
6565 struct resource * res_port ;
6666 unsigned long mpu_port ; /* MPU port for SB DSP 4.0+ */
@@ -92,25 +92,23 @@ struct _snd_sb {
9292
9393 void * csp ; /* used only when CONFIG_SND_SB16_CSP is set */
9494
95- snd_card_t * card ;
96- snd_pcm_t * pcm ;
97- snd_pcm_substream_t * playback_substream ;
98- snd_pcm_substream_t * capture_substream ;
95+ struct snd_card * card ;
96+ struct snd_pcm * pcm ;
97+ struct snd_pcm_substream * playback_substream ;
98+ struct snd_pcm_substream * capture_substream ;
9999
100- snd_rawmidi_t * rmidi ;
101- snd_rawmidi_substream_t * midi_substream_input ;
102- snd_rawmidi_substream_t * midi_substream_output ;
100+ struct snd_rawmidi * rmidi ;
101+ struct snd_rawmidi_substream * midi_substream_input ;
102+ struct snd_rawmidi_substream * midi_substream_output ;
103103 irqreturn_t (* rmidi_callback )(int irq , void * dev_id , struct pt_regs * regs );
104104
105105 spinlock_t reg_lock ;
106106 spinlock_t open_lock ;
107107 spinlock_t midi_input_lock ;
108108
109- snd_info_entry_t * proc_entry ;
109+ struct snd_info_entry * proc_entry ;
110110};
111111
112- typedef struct _snd_sb sb_t ;
113-
114112/* I/O ports */
115113
116114#define SBP (chip , x ) ((chip)->port + s_b_SB_##x)
@@ -267,48 +265,48 @@ typedef struct _snd_sb sb_t;
267265 *
268266 */
269267
270- static inline void snd_sb_ack_8bit (sb_t * chip )
268+ static inline void snd_sb_ack_8bit (struct snd_sb * chip )
271269{
272270 inb (SBP (chip , DATA_AVAIL ));
273271}
274272
275- static inline void snd_sb_ack_16bit (sb_t * chip )
273+ static inline void snd_sb_ack_16bit (struct snd_sb * chip )
276274{
277275 inb (SBP (chip , DATA_AVAIL_16 ));
278276}
279277
280278/* sb_common.c */
281- int snd_sbdsp_command (sb_t * chip , unsigned char val );
282- int snd_sbdsp_get_byte (sb_t * chip );
283- int snd_sbdsp_reset (sb_t * chip );
284- int snd_sbdsp_create (snd_card_t * card ,
279+ int snd_sbdsp_command (struct snd_sb * chip , unsigned char val );
280+ int snd_sbdsp_get_byte (struct snd_sb * chip );
281+ int snd_sbdsp_reset (struct snd_sb * chip );
282+ int snd_sbdsp_create (struct snd_card * card ,
285283 unsigned long port ,
286284 int irq ,
287285 irqreturn_t (* irq_handler )(int , void * , struct pt_regs * ),
288286 int dma8 , int dma16 ,
289287 unsigned short hardware ,
290- sb_t * * r_chip );
288+ struct snd_sb * * r_chip );
291289/* sb_mixer.c */
292- void snd_sbmixer_write (sb_t * chip , unsigned char reg , unsigned char data );
293- unsigned char snd_sbmixer_read (sb_t * chip , unsigned char reg );
294- int snd_sbmixer_new (sb_t * chip );
290+ void snd_sbmixer_write (struct snd_sb * chip , unsigned char reg , unsigned char data );
291+ unsigned char snd_sbmixer_read (struct snd_sb * chip , unsigned char reg );
292+ int snd_sbmixer_new (struct snd_sb * chip );
295293
296294/* sb8_init.c */
297- int snd_sb8dsp_pcm (sb_t * chip , int device , snd_pcm_t * * rpcm );
295+ int snd_sb8dsp_pcm (struct snd_sb * chip , int device , struct snd_pcm * * rpcm );
298296/* sb8.c */
299- irqreturn_t snd_sb8dsp_interrupt (sb_t * chip );
300- int snd_sb8_playback_open (snd_pcm_substream_t * substream );
301- int snd_sb8_capture_open (snd_pcm_substream_t * substream );
302- int snd_sb8_playback_close (snd_pcm_substream_t * substream );
303- int snd_sb8_capture_close (snd_pcm_substream_t * substream );
297+ irqreturn_t snd_sb8dsp_interrupt (struct snd_sb * chip );
298+ int snd_sb8_playback_open (struct snd_pcm_substream * substream );
299+ int snd_sb8_capture_open (struct snd_pcm_substream * substream );
300+ int snd_sb8_playback_close (struct snd_pcm_substream * substream );
301+ int snd_sb8_capture_close (struct snd_pcm_substream * substream );
304302/* midi8.c */
305- irqreturn_t snd_sb8dsp_midi_interrupt (sb_t * chip );
306- int snd_sb8dsp_midi (sb_t * chip , int device , snd_rawmidi_t * * rrawmidi );
303+ irqreturn_t snd_sb8dsp_midi_interrupt (struct snd_sb * chip );
304+ int snd_sb8dsp_midi (struct snd_sb * chip , int device , struct snd_rawmidi * * rrawmidi );
307305
308306/* sb16_init.c */
309- int snd_sb16dsp_pcm (sb_t * chip , int device , snd_pcm_t * * rpcm );
310- const snd_pcm_ops_t * snd_sb16dsp_get_pcm_ops (int direction );
311- int snd_sb16dsp_configure (sb_t * chip );
307+ int snd_sb16dsp_pcm (struct snd_sb * chip , int device , struct snd_pcm * * rpcm );
308+ const struct snd_pcm_ops * snd_sb16dsp_get_pcm_ops (int direction );
309+ int snd_sb16dsp_configure (struct snd_sb * chip );
312310/* sb16.c */
313311irqreturn_t snd_sb16dsp_interrupt (int irq , void * dev_id , struct pt_regs * regs );
314312
@@ -328,7 +326,7 @@ enum {
328326#define SB_MIXVAL_INPUT_SW (reg1 , reg2 , left_shift , right_shift ) \
329327 ((reg1) | ((reg2) << 8) | ((left_shift) << 16) | ((right_shift) << 24))
330328
331- int snd_sbmixer_add_ctl (sb_t * chip , const char * name , int index , int type , unsigned long value );
329+ int snd_sbmixer_add_ctl (struct snd_sb * chip , const char * name , int index , int type , unsigned long value );
332330
333331/* for ease of use */
334332struct sbmix_elem {
@@ -352,7 +350,7 @@ struct sbmix_elem {
352350 .type = SB_MIX_INPUT_SW, \
353351 .private_value = SB_MIXVAL_INPUT_SW(reg1, reg2, left_shift, right_shift) }
354352
355- static inline int snd_sbmixer_add_ctl_elem (sb_t * chip , const struct sbmix_elem * c )
353+ static inline int snd_sbmixer_add_ctl_elem (struct snd_sb * chip , const struct sbmix_elem * c )
356354{
357355 return snd_sbmixer_add_ctl (chip , c -> name , 0 , c -> type , c -> private_value );
358356}
0 commit comments