Lines Matching defs:snd_sb
65 struct snd_sb { struct
66 unsigned long port; /* base port of DSP chip */
67 struct resource *res_port;
68 unsigned long mpu_port; /* MPU port for SB DSP 4.0+ */
69 int irq; /* IRQ number of DSP chip */
70 int dma8; /* 8-bit DMA */
71 int dma16; /* 16-bit DMA */
72 unsigned short version; /* version of DSP chip */
73 enum sb_hw_type hardware; /* see to SB_HW_XXXX */
75 unsigned long alt_port; /* alternate port (ALS4000) */
76 struct pci_dev *pci; /* ALS4000 */
78 unsigned int open; /* see to SB_OPEN_XXXX for sb8 */
80 unsigned int mode; /* current mode of stream */
81 unsigned int force_mode16; /* force 16-bit mode of streams */
82 unsigned int locked_rate; /* sb16 duplex */
83 unsigned int playback_format;
84 unsigned int capture_format;
85 struct timer_list midi_timer;
86 unsigned int p_dma_size;
87 unsigned int p_period_size;
88 unsigned int c_dma_size;
89 unsigned int c_period_size;
91 spinlock_t mixer_lock;
93 char name[32];
95 void *csp; /* used only when CONFIG_SND_SB16_CSP is set */
97 struct snd_card *card;
98 struct snd_pcm *pcm;
99 struct snd_pcm_substream *playback_substream;
100 struct snd_pcm_substream *capture_substream;
102 struct snd_rawmidi *rmidi;
103 struct snd_rawmidi_substream *midi_substream_input;
104 struct snd_rawmidi_substream *midi_substream_output;
105 irq_handler_t rmidi_callback;
107 spinlock_t reg_lock;
108 spinlock_t open_lock;
109 spinlock_t midi_input_lock;
111 struct snd_info_entry *proc_entry;
114 unsigned char saved_regs[0x20];