Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/sound/isa/sb8.c
Show First 20 Lines • Show All 743 Lines • ▼ Show 20 Lines | pcm_setflags(dev, pcm_getflags(dev) | SD_F_SIMPLEX); | ||||
/*maxsize*/sb->bufsize, /*nsegments*/1, | /*maxsize*/sb->bufsize, /*nsegments*/1, | ||||
/*maxsegz*/0x3ffff, /*flags*/0, | /*maxsegz*/0x3ffff, /*flags*/0, | ||||
/*lockfunc*/busdma_lock_mutex, /*lockarg*/&Giant, | /*lockfunc*/busdma_lock_mutex, /*lockarg*/&Giant, | ||||
&sb->parent_dmat) != 0) { | &sb->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; | ||||
} | } | ||||
snprintf(status, SND_STATUSLEN, "at io 0x%lx irq %ld drq %ld bufsz %u %s", | snprintf(status, SND_STATUSLEN, "at io 0x%jx irq %jd drq %jd bufsz %u %s", | ||||
rman_get_start(sb->io_base), rman_get_start(sb->irq), | rman_get_start(sb->io_base), rman_get_start(sb->irq), | ||||
rman_get_start(sb->drq), sb->bufsize, PCM_KLDSTRING(snd_sb8)); | rman_get_start(sb->drq), sb->bufsize, PCM_KLDSTRING(snd_sb8)); | ||||
if (pcm_register(dev, sb, 1, 1)) | if (pcm_register(dev, sb, 1, 1)) | ||||
goto no; | goto no; | ||||
pcm_addchan(dev, PCMDIR_REC, &sbchan_class, sb); | pcm_addchan(dev, PCMDIR_REC, &sbchan_class, sb); | ||||
pcm_addchan(dev, PCMDIR_PLAY, &sbchan_class, sb); | pcm_addchan(dev, PCMDIR_PLAY, &sbchan_class, sb); | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |