Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/sound/pci/aureal.c
Show First 20 Lines • Show All 639 Lines • ▼ Show 20 Lines | if (bus_dma_tag_create(/*parent*/bus_get_dma_tag(dev), /*alignment*/2, | ||||
/*filter*/NULL, /*filterarg*/NULL, | /*filter*/NULL, /*filterarg*/NULL, | ||||
/*maxsize*/AU_BUFFSIZE, /*nsegments*/1, /*maxsegz*/0x3ffff, | /*maxsize*/AU_BUFFSIZE, /*nsegments*/1, /*maxsegz*/0x3ffff, | ||||
/*flags*/0, /*lockfunc*/busdma_lock_mutex, | /*flags*/0, /*lockfunc*/busdma_lock_mutex, | ||||
/*lockarg*/&Giant, &au->parent_dmat) != 0) { | /*lockarg*/&Giant, &au->parent_dmat) != 0) { | ||||
device_printf(dev, "unable to create dma tag\n"); | device_printf(dev, "unable to create dma tag\n"); | ||||
goto bad; | goto bad; | ||||
} | } | ||||
snprintf(status, SND_STATUSLEN, "at %s 0x%lx irq %ld %s", | snprintf(status, SND_STATUSLEN, "at %s 0x%jx irq %jd %s", | ||||
(type[0] == SYS_RES_IOPORT)? "io" : "memory", | (type[0] == SYS_RES_IOPORT)? "io" : "memory", | ||||
rman_get_start(reg[0]), rman_get_start(irq),PCM_KLDSTRING(snd_aureal)); | rman_get_start(reg[0]), rman_get_start(irq),PCM_KLDSTRING(snd_aureal)); | ||||
if (pcm_register(dev, au, 1, 1)) goto bad; | if (pcm_register(dev, au, 1, 1)) goto bad; | ||||
/* pcm_addchan(dev, PCMDIR_REC, &au_chantemplate, au); */ | /* pcm_addchan(dev, PCMDIR_REC, &au_chantemplate, au); */ | ||||
pcm_addchan(dev, PCMDIR_PLAY, &auchan_class, au); | pcm_addchan(dev, PCMDIR_PLAY, &auchan_class, au); | ||||
pcm_setstatus(dev, status); | pcm_setstatus(dev, status); | ||||
Show All 28 Lines |