Lines Matching refs:emu
91 struct snd_emu10k1 *emu;
115 &emu)) < 0)
117 card->private_data = emu;
118 emu->delay_pcm_irq = delay_pcm_irq[dev] & 0x1f;
119 if ((err = snd_emu10k1_pcm(emu, 0)) < 0)
121 if ((err = snd_emu10k1_pcm_mic(emu, 1)) < 0)
123 if ((err = snd_emu10k1_pcm_efx(emu, 2)) < 0)
126 if (emu->card_capabilities->ca0151_chip) { /* P16V */
128 1024, &emu->p16v_buffer);
133 if ((err = snd_emu10k1_mixer(emu, 0, 3)) < 0)
136 if ((err = snd_emu10k1_timer(emu, 0)) < 0)
139 if ((err = snd_emu10k1_pcm_multi(emu, 3)) < 0)
141 if (emu->card_capabilities->ca0151_chip) { /* P16V */
142 if ((err = snd_p16v_pcm(emu, 4)) < 0)
145 if (emu->audigy) {
146 if ((err = snd_emu10k1_audigy_midi(emu)) < 0)
149 if ((err = snd_emu10k1_midi(emu)) < 0)
152 if ((err = snd_emu10k1_fx8010_new(emu, 0)) < 0)
158 dev_warn(emu->card->dev,
164 arg->hwptr = emu;
171 strlcpy(card->driver, emu->card_capabilities->driver,
173 strlcpy(card->shortname, emu->card_capabilities->name,
177 card->shortname, emu->revision, emu->serial, emu->port, emu->irq);
182 if (emu->card_capabilities->emu_model)
183 schedule_delayed_work(&emu->emu1010.firmware_work, 0);
204 struct snd_emu10k1 *emu = card->private_data;
208 emu->suspend = 1;
210 cancel_delayed_work_sync(&emu->emu1010.firmware_work);
212 snd_ac97_suspend(emu->ac97);
214 snd_emu10k1_efx_suspend(emu);
215 snd_emu10k1_suspend_regs(emu);
216 if (emu->card_capabilities->ca0151_chip)
217 snd_p16v_suspend(emu);
219 snd_emu10k1_done(emu);
226 struct snd_emu10k1 *emu = card->private_data;
228 snd_emu10k1_resume_init(emu);
229 snd_emu10k1_efx_resume(emu);
230 snd_ac97_resume(emu->ac97);
231 snd_emu10k1_resume_regs(emu);
233 if (emu->card_capabilities->ca0151_chip)
234 snd_p16v_resume(emu);
236 emu->suspend = 0;
240 if (emu->card_capabilities->emu_model)
241 schedule_delayed_work(&emu->emu1010.firmware_work, 0);