Lines Matching full:vc
1412 chn_setvolume_multi(struct pcm_channel *c, int vc, int left, int right, in chn_setvolume_multi() argument
1421 ret |= chn_setvolume_matrix(c, vc, i, left); in chn_setvolume_multi()
1423 ret |= chn_setvolume_matrix(c, vc, i, right) << 8; in chn_setvolume_multi()
1425 ret |= chn_setvolume_matrix(c, vc, i, center) << 16; in chn_setvolume_multi()
1432 chn_setvolume_matrix(struct pcm_channel *c, int vc, int vt, int val) in chn_setvolume_matrix() argument
1436 KASSERT(c != NULL && vc >= SND_VOL_C_MASTER && vc < SND_VOL_C_MAX && in chn_setvolume_matrix()
1437 (vc == SND_VOL_C_MASTER || (vc & 1)) && in chn_setvolume_matrix()
1441 ("%s(): invalid volume matrix c=%p vc=%d vt=%d val=%d", in chn_setvolume_matrix()
1442 __func__, c, vc, vt, val)); in chn_setvolume_matrix()
1450 c->volume[vc][vt] = val; in chn_setvolume_matrix()
1456 if (vc == SND_VOL_C_MASTER) { in chn_setvolume_matrix()
1457 for (vc = SND_VOL_C_BEGIN; vc <= SND_VOL_C_END; in chn_setvolume_matrix()
1458 vc += SND_VOL_C_STEP) in chn_setvolume_matrix()
1459 c->volume[SND_VOL_C_VAL(vc)][vt] = in chn_setvolume_matrix()
1460 SND_VOL_CALC_VAL(c->volume, vc, vt); in chn_setvolume_matrix()
1461 } else if (vc & 1) { in chn_setvolume_matrix()
1465 c->volume[SND_VOL_C_VAL(vc)][i] = in chn_setvolume_matrix()
1466 SND_VOL_CALC_VAL(c->volume, vc, i); in chn_setvolume_matrix()
1469 c->volume[SND_VOL_C_VAL(vc)][vt] = in chn_setvolume_matrix()
1470 SND_VOL_CALC_VAL(c->volume, vc, vt); in chn_setvolume_matrix()
1477 chn_getvolume_matrix(struct pcm_channel *c, int vc, int vt) in chn_getvolume_matrix() argument
1479 KASSERT(c != NULL && vc >= SND_VOL_C_MASTER && vc < SND_VOL_C_MAX && in chn_getvolume_matrix()
1482 ("%s(): invalid volume matrix c=%p vc=%d vt=%d", in chn_getvolume_matrix()
1483 __func__, c, vc, vt)); in chn_getvolume_matrix()
1486 return (c->volume[vc][vt]); in chn_getvolume_matrix()
1490 chn_setmute_multi(struct pcm_channel *c, int vc, int mute) in chn_setmute_multi() argument
1498 ret |= chn_setmute_matrix(c, vc, i, mute); in chn_setmute_multi()
1500 ret |= chn_setmute_matrix(c, vc, i, mute) << 8; in chn_setmute_multi()
1502 ret |= chn_setmute_matrix(c, vc, i, mute) << 16; in chn_setmute_multi()
1508 chn_setmute_matrix(struct pcm_channel *c, int vc, int vt, int mute) in chn_setmute_matrix() argument
1512 KASSERT(c != NULL && vc >= SND_VOL_C_MASTER && vc < SND_VOL_C_MAX && in chn_setmute_matrix()
1513 (vc == SND_VOL_C_MASTER || (vc & 1)) && in chn_setmute_matrix()
1515 ("%s(): invalid mute matrix c=%p vc=%d vt=%d mute=%d", in chn_setmute_matrix()
1516 __func__, c, vc, vt, mute)); in chn_setmute_matrix()
1522 c->muted[vc][vt] = mute; in chn_setmute_matrix()
1528 if (vc == SND_VOL_C_MASTER) { in chn_setmute_matrix()
1529 for (vc = SND_VOL_C_BEGIN; vc <= SND_VOL_C_END; in chn_setmute_matrix()
1530 vc += SND_VOL_C_STEP) in chn_setmute_matrix()
1531 c->muted[SND_VOL_C_VAL(vc)][vt] = mute; in chn_setmute_matrix()
1532 } else if (vc & 1) { in chn_setmute_matrix()
1536 c->muted[SND_VOL_C_VAL(vc)][i] = mute; in chn_setmute_matrix()
1539 c->muted[SND_VOL_C_VAL(vc)][vt] = mute; in chn_setmute_matrix()
1546 chn_getmute_matrix(struct pcm_channel *c, int vc, int vt) in chn_getmute_matrix() argument
1548 KASSERT(c != NULL && vc >= SND_VOL_C_MASTER && vc < SND_VOL_C_MAX && in chn_getmute_matrix()
1551 ("%s(): invalid mute matrix c=%p vc=%d vt=%d", in chn_getmute_matrix()
1552 __func__, c, vc, vt)); in chn_getmute_matrix()
1555 return (c->muted[vc][vt]); in chn_getmute_matrix()
1674 chn_vpc_reset(struct pcm_channel *c, int vc, int force) in chn_vpc_reset() argument
1678 KASSERT(c != NULL && vc >= SND_VOL_C_BEGIN && vc <= SND_VOL_C_END, in chn_vpc_reset()
1679 ("%s(): invalid reset c=%p vc=%d", __func__, c, vc)); in chn_vpc_reset()
1686 CHN_SETVOLUME(c, vc, i, c->volume[vc][SND_CHN_T_VOL_0DB]); in chn_vpc_reset()