Lines Matching refs:cmi

222 	struct snd_cmi8328 *cmi;  in snd_cmi8328_probe()  local
301 cmi = card->private_data; in snd_cmi8328_probe()
302 cmi->card = card; in snd_cmi8328_probe()
303 cmi->port = port; in snd_cmi8328_probe()
304 cmi->wss_cfg = val; in snd_cmi8328_probe()
307 dma2[ndev], WSS_HW_DETECT, 0, &cmi->wss); in snd_cmi8328_probe()
311 err = snd_wss_pcm(cmi->wss, 0); in snd_cmi8328_probe()
315 err = snd_wss_mixer(cmi->wss); in snd_cmi8328_probe()
318 err = snd_cmi8328_mixer(cmi->wss); in snd_cmi8328_probe()
322 if (snd_wss_timer(cmi->wss, 0) < 0) in snd_cmi8328_probe()
368 card->shortname, cmi->wss->port, irq[ndev], dma1[ndev], in snd_cmi8328_probe()
383 struct gameport *gp = cmi->gameport = gameport_allocate_port(); in snd_cmi8328_probe()
384 if (!cmi->gameport) in snd_cmi8328_probe()
409 struct snd_cmi8328 *cmi = card->private_data; in snd_cmi8328_remove() local
412 if (cmi->gameport) { in snd_cmi8328_remove()
413 struct resource *res = gameport_get_port_data(cmi->gameport); in snd_cmi8328_remove()
414 gameport_unregister_port(cmi->gameport); in snd_cmi8328_remove()
419 snd_cmi8328_cfg_write(cmi->port, CFG1, CFG1_SB_DISABLE); in snd_cmi8328_remove()
420 snd_cmi8328_cfg_write(cmi->port, CFG2, 0); in snd_cmi8328_remove()
421 snd_cmi8328_cfg_write(cmi->port, CFG3, 0); in snd_cmi8328_remove()
431 struct snd_cmi8328 *cmi; in snd_cmi8328_suspend() local
435 cmi = card->private_data; in snd_cmi8328_suspend()
436 snd_cmi8328_cfg_save(cmi->port, cmi->cfg); in snd_cmi8328_suspend()
438 cmi->wss->suspend(cmi->wss); in snd_cmi8328_suspend()
446 struct snd_cmi8328 *cmi; in snd_cmi8328_resume() local
450 cmi = card->private_data; in snd_cmi8328_resume()
451 snd_cmi8328_cfg_restore(cmi->port, cmi->cfg); in snd_cmi8328_resume()
452 outb(cmi->wss_cfg, cmi->port); in snd_cmi8328_resume()
453 cmi->wss->resume(cmi->wss); in snd_cmi8328_resume()