Lines Matching refs:right

261 	int result = 0, left, right;  in snd_mixer_oss_get_volume()  local
268 right = pslot->volume[1]; in snd_mixer_oss_get_volume()
270 result = pslot->get_volume(fmixer, pslot, &left, &right); in snd_mixer_oss_get_volume()
272 right = left; in snd_mixer_oss_get_volume()
277 if (snd_BUG_ON(right < 0 || right > 100)) { in snd_mixer_oss_get_volume()
283 pslot->volume[1] = right; in snd_mixer_oss_get_volume()
284 result = (left & 0xff) | ((right & 0xff) << 8); in snd_mixer_oss_get_volume()
296 int result = 0, left = volume & 0xff, right = (volume >> 8) & 0xff; in snd_mixer_oss_set_volume() local
304 if (right > 100) in snd_mixer_oss_set_volume()
305 right = 100; in snd_mixer_oss_set_volume()
307 right = left; in snd_mixer_oss_set_volume()
309 result = pslot->put_volume(fmixer, pslot, left, right); in snd_mixer_oss_set_volume()
313 pslot->volume[1] = right; in snd_mixer_oss_set_volume()
314 result = (left & 0xff) | ((right & 0xff) << 8); in snd_mixer_oss_set_volume()
533 int *left, int *right) in snd_mixer_oss_get_volume1_vol() argument
561 …*right = snd_mixer_oss_conv1(uctl->value.integer.value[1], uinfo->value.integer.min, uinfo->value.… in snd_mixer_oss_get_volume1_vol()
571 int *left, int *right, in snd_mixer_oss_get_volume1_sw() argument
598 *right = 0; in snd_mixer_oss_get_volume1_sw()
601 *right = 0; in snd_mixer_oss_get_volume1_sw()
610 int *left, int *right) in snd_mixer_oss_get_volume1() argument
614 *left = *right = 100; in snd_mixer_oss_get_volume1()
616 …d_mixer_oss_get_volume1_vol(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_PVOLUME], left, right); in snd_mixer_oss_get_volume1()
618 …d_mixer_oss_get_volume1_vol(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_GVOLUME], left, right); in snd_mixer_oss_get_volume1()
620 …nd_mixer_oss_get_volume1_vol(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_GLOBAL], left, right); in snd_mixer_oss_get_volume1()
623 …mixer_oss_get_volume1_sw(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_PSWITCH], left, right, 0); in snd_mixer_oss_get_volume1()
625 …mixer_oss_get_volume1_sw(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_GSWITCH], left, right, 0); in snd_mixer_oss_get_volume1()
627 …snd_mixer_oss_get_volume1_sw(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_PROUTE], left, right,… in snd_mixer_oss_get_volume1()
629 …snd_mixer_oss_get_volume1_sw(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_GROUTE], left, right,… in snd_mixer_oss_get_volume1()
637 int left, int right) in snd_mixer_oss_put_volume1_vol() argument
664 …uctl->value.integer.value[1] = snd_mixer_oss_conv2(right, uinfo->value.integer.min, uinfo->value.i… in snd_mixer_oss_put_volume1_vol()
679 int left, int right, in snd_mixer_oss_put_volume1_sw() argument
704 uctl->value.integer.value[route ? 3 : 1] = right > 0 ? 1 : 0; in snd_mixer_oss_put_volume1_sw()
710 uctl->value.integer.value[0] = (left > 0 || right > 0) ? 1 : 0; in snd_mixer_oss_put_volume1_sw()
725 int left, int right) in snd_mixer_oss_put_volume1() argument
730 …d_mixer_oss_put_volume1_vol(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_PVOLUME], left, right); in snd_mixer_oss_put_volume1()
732 …d_mixer_oss_put_volume1_vol(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_CVOLUME], left, right); in snd_mixer_oss_put_volume1()
735 slot->numid[SNDRV_MIXER_OSS_ITEM_CVOLUME], left, right); in snd_mixer_oss_put_volume1()
737 …d_mixer_oss_put_volume1_vol(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_GVOLUME], left, right); in snd_mixer_oss_put_volume1()
739 …nd_mixer_oss_put_volume1_vol(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_GLOBAL], left, right); in snd_mixer_oss_put_volume1()
741 if (left || right) { in snd_mixer_oss_put_volume1()
743 …mixer_oss_put_volume1_sw(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_PSWITCH], left, right, 0); in snd_mixer_oss_put_volume1()
745 …mixer_oss_put_volume1_sw(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_CSWITCH], left, right, 0); in snd_mixer_oss_put_volume1()
747 …mixer_oss_put_volume1_sw(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_GSWITCH], left, right, 0); in snd_mixer_oss_put_volume1()
749 …_mixer_oss_put_volume1_sw(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_PROUTE], left, right, 1); in snd_mixer_oss_put_volume1()
751 …_mixer_oss_put_volume1_sw(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_CROUTE], left, right, 1); in snd_mixer_oss_put_volume1()
753 …_mixer_oss_put_volume1_sw(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_GROUTE], left, right, 1); in snd_mixer_oss_put_volume1()
756 …mixer_oss_put_volume1_sw(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_PSWITCH], left, right, 0); in snd_mixer_oss_put_volume1()
758 …mixer_oss_put_volume1_sw(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_CSWITCH], left, right, 0); in snd_mixer_oss_put_volume1()
760 …mixer_oss_put_volume1_sw(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_GSWITCH], left, right, 0); in snd_mixer_oss_put_volume1()
762 …_mixer_oss_put_volume1_sw(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_PROUTE], left, right, 1); in snd_mixer_oss_put_volume1()
764 …_mixer_oss_put_volume1_sw(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_CROUTE], left, right, 1); in snd_mixer_oss_put_volume1()
766 …_mixer_oss_put_volume1_sw(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_GROUTE], left, right, 1); in snd_mixer_oss_put_volume1()
777 int left, right; in snd_mixer_oss_get_recsrc1_sw() local
779 left = right = 1; in snd_mixer_oss_get_recsrc1_sw()
780 …xer_oss_get_volume1_sw(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_CSWITCH], &left, &right, 0); in snd_mixer_oss_get_recsrc1_sw()
781 *active = (left || right) ? 1 : 0; in snd_mixer_oss_get_recsrc1_sw()
790 int left, right; in snd_mixer_oss_get_recsrc1_route() local
792 left = right = 1; in snd_mixer_oss_get_recsrc1_route()
793 …ixer_oss_get_volume1_sw(fmixer, pslot, slot->numid[SNDRV_MIXER_OSS_ITEM_CROUTE], &left, &right, 1); in snd_mixer_oss_get_recsrc1_route()
794 *active = (left || right) ? 1 : 0; in snd_mixer_oss_get_recsrc1_route()