Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sound/isa/ess.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
/*maxsegz*/0x3ffff, | /*maxsegz*/0x3ffff, | ||||
/*flags*/0, /*lockfunc*/busdma_lock_mutex, | /*flags*/0, /*lockfunc*/busdma_lock_mutex, | ||||
/*lockarg*/&Giant, &sc->parent_dmat) != 0) { | /*lockarg*/&Giant, &sc->parent_dmat) != 0) { | ||||
device_printf(dev, "unable to create dma tag\n"); | device_printf(dev, "unable to create dma tag\n"); | ||||
goto no; | goto no; | ||||
} | } | ||||
if (sc->drq2) | if (sc->drq2) | ||||
snprintf(buf, SND_STATUSLEN, ":%ld", rman_get_start(sc->drq2)); | snprintf(buf, SND_STATUSLEN, ":%jd", rman_get_start(sc->drq2)); | ||||
else | else | ||||
buf[0] = '\0'; | buf[0] = '\0'; | ||||
snprintf(status, SND_STATUSLEN, "at io 0x%lx irq %ld drq %ld%s bufsz %u %s", | snprintf(status, SND_STATUSLEN, "at io 0x%jx irq %jd drq %jd%s bufsz %u %s", | ||||
rman_get_start(sc->io_base), rman_get_start(sc->irq), | rman_get_start(sc->io_base), rman_get_start(sc->irq), | ||||
rman_get_start(sc->drq1), buf, sc->bufsize, | rman_get_start(sc->drq1), buf, sc->bufsize, | ||||
PCM_KLDSTRING(snd_ess)); | PCM_KLDSTRING(snd_ess)); | ||||
if (pcm_register(dev, sc, 1, 1)) | if (pcm_register(dev, sc, 1, 1)) | ||||
goto no; | goto no; | ||||
pcm_addchan(dev, PCMDIR_REC, &esschan_class, sc); | pcm_addchan(dev, PCMDIR_REC, &esschan_class, sc); | ||||
pcm_addchan(dev, PCMDIR_PLAY, &esschan_class, sc); | pcm_addchan(dev, PCMDIR_PLAY, &esschan_class, sc); | ||||
pcm_setstatus(dev, status); | pcm_setstatus(dev, status); | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |