Lines Matching refs:wss_port
48 static long wss_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; variable
58 module_param_array(wss_port, long, NULL, 0444);
59 MODULE_PARM_DESC(wss_port, "WSS port # for " CRD_NAME " driver.");
164 static int wss_detect(void __iomem *wss_port) in wss_detect() argument
166 if ((ioread8(wss_port + WSS_PORT_SIGNATURE) & 0x3f) != WSS_SIGNATURE) in wss_detect()
172 static void wss_set_config(void __iomem *wss_port, u8 wss_config) in wss_set_config() argument
174 iowrite8(wss_config, wss_port + WSS_PORT_CONFIG); in wss_set_config()
197 void __iomem *wss_port; member
233 switch (wss_port[n]) { in snd_galaxy_match()
250 dev_err(dev, "invalid WSS port %#lx\n", wss_port[n]); in snd_galaxy_match()
468 err = wss_detect(galaxy->wss_port); in galaxy_wss_config()
472 wss_set_config(galaxy->wss_port, wss_config); in galaxy_wss_config()
485 if (galaxy->wss_port) { in snd_galaxy_free()
486 wss_set_config(galaxy->wss_port, 0); in snd_galaxy_free()
487 ioport_unmap(galaxy->wss_port); in snd_galaxy_free()
546 galaxy->res_wss_port = request_region(wss_port[n], 4, DRV_NAME); in snd_galaxy_probe()
548 dev_err(dev, "could not grab ports %#lx-%#lx\n", wss_port[n], in snd_galaxy_probe()
549 wss_port[n] + 3); in snd_galaxy_probe()
553 galaxy->wss_port = ioport_map(wss_port[n], 4); in snd_galaxy_probe()
564 card->shortname, port[n], wss_port[n], irq[n], dma1[n], in snd_galaxy_probe()
567 err = snd_wss_create(card, wss_port[n] + 4, -1, irq[n], dma1[n], in snd_galaxy_probe()