Lines Matching refs:err
129 int err; in dsp_get_version() local
131 err = dsp_command(port, DSP_COMMAND_GET_VERSION); in dsp_get_version()
132 if (err < 0) in dsp_get_version()
133 return err; in dsp_get_version()
135 err = dsp_get_byte(port, major); in dsp_get_version()
136 if (err < 0) in dsp_get_version()
137 return err; in dsp_get_version()
139 err = dsp_get_byte(port, minor); in dsp_get_version()
140 if (err < 0) in dsp_get_version()
141 return err; in dsp_get_version()
386 int err; in galaxy_init() local
388 err = dsp_reset(galaxy->port); in galaxy_init()
389 if (err < 0) in galaxy_init()
390 return err; in galaxy_init()
392 err = dsp_get_version(galaxy->port, &major, &minor); in galaxy_init()
393 if (err < 0) in galaxy_init()
394 return err; in galaxy_init()
399 err = dsp_command(galaxy->port, DSP_COMMAND_GALAXY_8); in galaxy_init()
400 if (err < 0) in galaxy_init()
401 return err; in galaxy_init()
403 err = dsp_command(galaxy->port, GALAXY_COMMAND_GET_TYPE); in galaxy_init()
404 if (err < 0) in galaxy_init()
405 return err; in galaxy_init()
407 err = dsp_get_byte(galaxy->port, type); in galaxy_init()
408 if (err < 0) in galaxy_init()
409 return err; in galaxy_init()
416 int err; in galaxy_set_mode() local
418 err = dsp_command(galaxy->port, DSP_COMMAND_GALAXY_9); in galaxy_set_mode()
419 if (err < 0) in galaxy_set_mode()
420 return err; in galaxy_set_mode()
422 err = dsp_command(galaxy->port, mode); in galaxy_set_mode()
423 if (err < 0) in galaxy_set_mode()
424 return err; in galaxy_set_mode()
430 err = dsp_reset(galaxy->port); in galaxy_set_mode()
431 if (err < 0) in galaxy_set_mode()
432 return err; in galaxy_set_mode()
466 int err; in galaxy_wss_config() local
468 err = wss_detect(galaxy->wss_port); in galaxy_wss_config()
469 if (err < 0) in galaxy_wss_config()
470 return err; in galaxy_wss_config()
474 err = galaxy_set_mode(galaxy, GALAXY_MODE_WSS); in galaxy_wss_config()
475 if (err < 0) in galaxy_wss_config()
476 return err; in galaxy_wss_config()
507 int err; in snd_galaxy_probe() local
509 err = snd_card_new(dev, index[n], id[n], THIS_MODULE, in snd_galaxy_probe()
511 if (err < 0) in snd_galaxy_probe()
512 return err; in snd_galaxy_probe()
521 err = -EBUSY; in snd_galaxy_probe()
526 err = galaxy_init(galaxy, &type); in snd_galaxy_probe()
527 if (err < 0) { in snd_galaxy_probe()
539 err = -EBUSY; in snd_galaxy_probe()
550 err = -EBUSY; in snd_galaxy_probe()
555 err = galaxy_wss_config(galaxy, wss_config[n]); in snd_galaxy_probe()
556 if (err < 0) { in snd_galaxy_probe()
567 err = snd_wss_create(card, wss_port[n] + 4, -1, irq[n], dma1[n], in snd_galaxy_probe()
569 if (err < 0) in snd_galaxy_probe()
572 err = snd_wss_pcm(chip, 0); in snd_galaxy_probe()
573 if (err < 0) in snd_galaxy_probe()
576 err = snd_wss_mixer(chip); in snd_galaxy_probe()
577 if (err < 0) in snd_galaxy_probe()
580 err = snd_wss_timer(chip, 0); in snd_galaxy_probe()
581 if (err < 0) in snd_galaxy_probe()
585 err = snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, in snd_galaxy_probe()
587 if (err < 0) in snd_galaxy_probe()
594 err = snd_opl3_create(card, fm_port[n], fm_port[n] + 2, in snd_galaxy_probe()
596 if (err < 0) { in snd_galaxy_probe()
600 err = snd_opl3_timer_new(opl3, 1, 2); in snd_galaxy_probe()
601 if (err < 0) in snd_galaxy_probe()
604 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_galaxy_probe()
605 if (err < 0) in snd_galaxy_probe()
609 err = snd_card_register(card); in snd_galaxy_probe()
610 if (err < 0) in snd_galaxy_probe()
618 return err; in snd_galaxy_probe()