Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sound/pci/maestro3.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
} | } | ||||
for (i=0 ; i<adcn ; i++) { | for (i=0 ; i<adcn ; i++) { | ||||
if (pcm_addchan(dev, PCMDIR_REC, &m3_rch_class, sc)) { | if (pcm_addchan(dev, PCMDIR_REC, &m3_rch_class, sc)) { | ||||
device_printf(dev, "pcm_addchan (rec) error\n"); | device_printf(dev, "pcm_addchan (rec) error\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", | ||||
(sc->regtype == SYS_RES_IOPORT)? "io" : "memory", | (sc->regtype == SYS_RES_IOPORT)? "io" : "memory", | ||||
rman_get_start(sc->reg), rman_get_start(sc->irq), | rman_get_start(sc->reg), rman_get_start(sc->irq), | ||||
PCM_KLDSTRING(snd_maestro3)); | PCM_KLDSTRING(snd_maestro3)); | ||||
if (pcm_setstatus(dev, status)) { | if (pcm_setstatus(dev, status)) { | ||||
device_printf(dev, "attach: pcm_setstatus error\n"); | device_printf(dev, "attach: pcm_setstatus error\n"); | ||||
goto bad; | goto bad; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |