Searched refs:galaxy (Results 1 - 4 of 4) sorted by relevance
/linux-4.4.14/sound/isa/galaxy/ |
H A D | galaxy.c | 382 static int galaxy_init(struct snd_galaxy *galaxy, u8 *type) galaxy_init() argument 388 err = dsp_reset(galaxy->port); galaxy_init() 392 err = dsp_get_version(galaxy->port, &major, &minor); galaxy_init() 399 err = dsp_command(galaxy->port, DSP_COMMAND_GALAXY_8); galaxy_init() 403 err = dsp_command(galaxy->port, GALAXY_COMMAND_GET_TYPE); galaxy_init() 407 err = dsp_get_byte(galaxy->port, type); galaxy_init() 414 static int galaxy_set_mode(struct snd_galaxy *galaxy, u8 mode) galaxy_set_mode() argument 418 err = dsp_command(galaxy->port, DSP_COMMAND_GALAXY_9); galaxy_set_mode() 422 err = dsp_command(galaxy->port, mode); galaxy_set_mode() 430 err = dsp_reset(galaxy->port); galaxy_set_mode() 438 static void galaxy_set_config(struct snd_galaxy *galaxy, u32 config) galaxy_set_config() argument 440 u8 tmp = ioread8(galaxy->config_port + CONFIG_PORT_SET); galaxy_set_config() 443 iowrite8(tmp | 0x80, galaxy->config_port + CONFIG_PORT_SET); galaxy_set_config() 445 iowrite8(config, galaxy->config_port + i); galaxy_set_config() 448 iowrite8(tmp & 0x7f, galaxy->config_port + CONFIG_PORT_SET); galaxy_set_config() 452 static void galaxy_config(struct snd_galaxy *galaxy, u32 config) galaxy_config() argument 457 u8 tmp = ioread8(galaxy->config_port + i - 1); galaxy_config() 458 galaxy->config = (galaxy->config << 8) | tmp; galaxy_config() 460 config |= galaxy->config & GALAXY_CONFIG_MASK; galaxy_config() 461 galaxy_set_config(galaxy, config); galaxy_config() 464 static int galaxy_wss_config(struct snd_galaxy *galaxy, u8 wss_config) galaxy_wss_config() argument 468 err = wss_detect(galaxy->wss_port); galaxy_wss_config() 472 wss_set_config(galaxy->wss_port, wss_config); galaxy_wss_config() 474 err = galaxy_set_mode(galaxy, GALAXY_MODE_WSS); galaxy_wss_config() 483 struct snd_galaxy *galaxy = card->private_data; snd_galaxy_free() local 485 if (galaxy->wss_port) { snd_galaxy_free() 486 wss_set_config(galaxy->wss_port, 0); snd_galaxy_free() 487 ioport_unmap(galaxy->wss_port); snd_galaxy_free() 488 release_and_free_resource(galaxy->res_wss_port); snd_galaxy_free() 490 if (galaxy->config_port) { snd_galaxy_free() 491 galaxy_set_config(galaxy, galaxy->config); snd_galaxy_free() 492 ioport_unmap(galaxy->config_port); snd_galaxy_free() 493 release_and_free_resource(galaxy->res_config_port); snd_galaxy_free() 495 if (galaxy->port) { snd_galaxy_free() 496 ioport_unmap(galaxy->port); snd_galaxy_free() 497 release_and_free_resource(galaxy->res_port); snd_galaxy_free() 503 struct snd_galaxy *galaxy; snd_galaxy_probe() local 510 sizeof(*galaxy), &card); snd_galaxy_probe() 515 galaxy = card->private_data; snd_galaxy_probe() 517 galaxy->res_port = request_region(port[n], 16, DRV_NAME); snd_galaxy_probe() 518 if (!galaxy->res_port) { snd_galaxy_probe() 524 galaxy->port = ioport_map(port[n], 16); snd_galaxy_probe() 526 err = galaxy_init(galaxy, &type); snd_galaxy_probe() 533 galaxy->res_config_port = request_region(port[n] + GALAXY_PORT_CONFIG, snd_galaxy_probe() 535 if (!galaxy->res_config_port) { snd_galaxy_probe() 542 galaxy->config_port = ioport_map(port[n] + GALAXY_PORT_CONFIG, 16); snd_galaxy_probe() 544 galaxy_config(galaxy, config[n]); snd_galaxy_probe() 546 galaxy->res_wss_port = request_region(wss_port[n], 4, DRV_NAME); snd_galaxy_probe() 547 if (!galaxy->res_wss_port) { snd_galaxy_probe() 553 galaxy->wss_port = ioport_map(wss_port[n], 4); snd_galaxy_probe() 555 err = galaxy_wss_config(galaxy, wss_config[n]); snd_galaxy_probe()
|
H A D | azt1605.c | 91 #include "galaxy.c"
|
H A D | azt2316.c | 111 #include "galaxy.c"
|
/linux-4.4.14/sound/isa/ |
H A D | Makefile | 27 obj-$(CONFIG_SND) += ad1816a/ ad1848/ cs423x/ es1688/ galaxy/ gus/ msnd/ opti9xx/ \
|
Completed in 256 milliseconds