Lines Matching defs:devunit
274 pid_t pid, char *comm, int devunit)
279 KASSERT(d != NULL && ch != NULL && (devunit == -1 ||
280 !(devunit & ~(SND_U_MASK | SND_D_MASK | SND_C_MASK))) &&
282 ("%s(): invalid d=%p ch=%p direction=%d pid=%d devunit=%d",
283 __func__, d, ch, direction, pid, devunit));
287 if (devunit != -1) {
288 switch (snd_unit2d(devunit)) {
317 if (devunit == -1 && c->direction == direction &&
327 (devunit == -1 || devunit == -2 || c->unit == devunit)) {
334 } else if (c->unit == devunit) {
343 } else if ((devunit == -1 || devunit == -2) &&
349 if (devunit == -2)
354 if (devunit == -1 || snd_unit2d(devunit) == SND_DEV_DSPHW_VPLAY ||
355 snd_unit2d(devunit) == SND_DEV_DSPHW_VREC) {
357 (devunit == -1 || snd_unit2c(devunit) < snd_maxautovchans))
360 (devunit == -1) ? -1 : snd_unit2c(devunit));
362 if (devunit == -1)
363 devunit = -2;