Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sound/pci/atiixp.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
for (i = 0; i < ATI_IXP_NRCHAN; i++) | for (i = 0; i < ATI_IXP_NRCHAN; i++) | ||||
pcm_addchan(sc->dev, PCMDIR_REC, &atiixp_chan_class, sc); | pcm_addchan(sc->dev, PCMDIR_REC, &atiixp_chan_class, sc); | ||||
SYSCTL_ADD_PROC(device_get_sysctl_ctx(sc->dev), | SYSCTL_ADD_PROC(device_get_sysctl_ctx(sc->dev), | ||||
SYSCTL_CHILDREN(device_get_sysctl_tree(sc->dev)), OID_AUTO, | SYSCTL_CHILDREN(device_get_sysctl_tree(sc->dev)), OID_AUTO, | ||||
"polling", CTLTYPE_INT | CTLFLAG_RW, sc->dev, sizeof(sc->dev), | "polling", CTLTYPE_INT | CTLFLAG_RW, sc->dev, sizeof(sc->dev), | ||||
sysctl_atiixp_polling, "I", "Enable polling mode"); | sysctl_atiixp_polling, "I", "Enable polling mode"); | ||||
snprintf(status, SND_STATUSLEN, "at memory 0x%lx irq %ld %s", | snprintf(status, SND_STATUSLEN, "at memory 0x%jx irq %jd %s", | ||||
rman_get_start(sc->reg), rman_get_start(sc->irq), | rman_get_start(sc->reg), rman_get_start(sc->irq), | ||||
PCM_KLDSTRING(snd_atiixp)); | PCM_KLDSTRING(snd_atiixp)); | ||||
pcm_setstatus(sc->dev, status); | pcm_setstatus(sc->dev, status); | ||||
atiixp_lock(sc); | atiixp_lock(sc); | ||||
if (sc->polling == 0) | if (sc->polling == 0) | ||||
atiixp_enable_interrupts(sc); | atiixp_enable_interrupts(sc); | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |