Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/sound/pci/es137x.c
Show First 20 Lines • Show All 1,850 Lines • ▼ Show 20 Lines | if (bus_dma_tag_create(/*parent*/bus_get_dma_tag(dev), | ||||
/*filter*/NULL, /*filterarg*/NULL, | /*filter*/NULL, /*filterarg*/NULL, | ||||
/*maxsize*/es->bufsz, /*nsegments*/1, /*maxsegz*/0x3ffff, | /*maxsize*/es->bufsz, /*nsegments*/1, /*maxsegz*/0x3ffff, | ||||
/*flags*/0, /*lockfunc*/NULL, | /*flags*/0, /*lockfunc*/NULL, | ||||
/*lockarg*/NULL, &es->parent_dmat) != 0) { | /*lockarg*/NULL, &es->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", | ||||
(es->regtype == SYS_RES_IOPORT)? "io" : "memory", | (es->regtype == SYS_RES_IOPORT)? "io" : "memory", | ||||
rman_get_start(es->reg), rman_get_start(es->irq), | rman_get_start(es->reg), rman_get_start(es->irq), | ||||
PCM_KLDSTRING(snd_es137x)); | PCM_KLDSTRING(snd_es137x)); | ||||
if (pcm_register(dev, es, numplay, 1)) | if (pcm_register(dev, es, numplay, 1)) | ||||
goto bad; | goto bad; | ||||
for (i = 0; i < numplay; i++) | for (i = 0; i < numplay; i++) | ||||
pcm_addchan(dev, PCMDIR_PLAY, ct, es); | pcm_addchan(dev, PCMDIR_PLAY, ct, es); | ||||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |