Lines Matching refs:chip
61 struct snd_sb *chip;
66 struct snd_sb *chip = dev_id;
68 if (chip->open & SB_OPEN_PCM) {
69 return snd_sb8dsp_interrupt(chip);
71 return snd_sb8dsp_midi_interrupt(chip);
101 struct snd_sb *chip;
123 &chip)) < 0)
138 &chip);
147 acard->chip = chip;
149 if (chip->hardware >= SB_HW_16) {
150 if (chip->hardware == SB_HW_ALS100)
151 snd_printk(KERN_WARNING "ALS100 chip detected at 0x%lx, try snd-als100 module\n",
154 snd_printk(KERN_WARNING "SB 16 chip detected at 0x%lx, try snd-sb16 module\n",
160 if ((err = snd_sb8dsp_pcm(chip, 0, NULL)) < 0)
163 if ((err = snd_sbmixer_new(chip)) < 0)
166 if (chip->hardware == SB_HW_10 || chip->hardware == SB_HW_20) {
167 if ((err = snd_opl3_create(card, chip->port + 8, 0,
170 snd_printk(KERN_WARNING "sb8: no OPL device at 0x%lx\n", chip->port + 8);
173 if ((err = snd_opl3_create(card, chip->port, chip->port + 2,
177 chip->port, chip->port + 2);
185 if ((err = snd_sb8dsp_midi(chip, 0, NULL)) < 0)
188 strcpy(card->driver, chip->hardware == SB_HW_PRO ? "SB Pro" : "SB8");
189 strcpy(card->shortname, chip->name);
191 chip->name,
192 chip->port,
221 struct snd_sb *chip = acard->chip;
224 snd_pcm_suspend_all(chip->pcm);
225 snd_sbmixer_suspend(chip);
233 struct snd_sb *chip = acard->chip;
235 snd_sbdsp_reset(chip);
236 snd_sbmixer_resume(chip);