Lines Matching refs:devunit
273 pid_t pid, char *comm, int devunit)
278 KASSERT(d != NULL && ch != NULL && (devunit == -1 ||
279 !(devunit & ~(SND_U_MASK | SND_D_MASK | SND_C_MASK))) &&
281 ("%s(): invalid d=%p ch=%p direction=%d pid=%d devunit=%d",
282 __func__, d, ch, direction, pid, devunit));
286 if (devunit != -1) {
287 switch (snd_unit2d(devunit)) {
316 if (devunit == -1 && c->direction == direction &&
326 (devunit == -1 || devunit == -2 || c->unit == devunit)) {
333 } else if (c->unit == devunit) {
342 } else if ((devunit == -1 || devunit == -2) &&
348 if (devunit == -2)
353 if (devunit == -1 || snd_unit2d(devunit) == SND_DEV_DSPHW_VPLAY ||
354 snd_unit2d(devunit) == SND_DEV_DSPHW_VREC) {
356 (devunit == -1 || snd_unit2c(devunit) < snd_maxautovchans))
359 (devunit == -1) ? -1 : snd_unit2c(devunit));
361 if (devunit == -1)
362 devunit = -2;