Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sound/pci/emu10kx.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
if (emu_init(sc) != 0) { | if (emu_init(sc) != 0) { | ||||
device_printf(dev, "unable to initialize the card\n"); | device_printf(dev, "unable to initialize the card\n"); | ||||
goto bad; | goto bad; | ||||
} | } | ||||
if (emu10kx_dev_init(sc) != 0) { | if (emu10kx_dev_init(sc) != 0) { | ||||
device_printf(dev, "unable to create control device\n"); | device_printf(dev, "unable to create control device\n"); | ||||
goto bad; | goto bad; | ||||
} | } | ||||
snprintf(status, 255, "rev %d at io 0x%lx irq %ld", sc->rev, rman_get_start(sc->reg), rman_get_start(sc->irq)); | snprintf(status, 255, "rev %d at io 0x%jx irq %jd", sc->rev, rman_get_start(sc->reg), rman_get_start(sc->irq)); | ||||
/* Voices */ | /* Voices */ | ||||
for (i = 0; i < NUM_G; i++) { | for (i = 0; i < NUM_G; i++) { | ||||
sc->voice[i].vnum = i; | sc->voice[i].vnum = i; | ||||
sc->voice[i].slave = NULL; | sc->voice[i].slave = NULL; | ||||
sc->voice[i].busy = 0; | sc->voice[i].busy = 0; | ||||
sc->voice[i].ismaster = 0; | sc->voice[i].ismaster = 0; | ||||
sc->voice[i].running = 0; | sc->voice[i].running = 0; | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |