Lines Matching refs:volright
280 int av7110_set_volume(struct av7110 *av7110, int volleft, int volright)
287 av7110->mixer.volume_right = volright;
292 volright = (volright * 256) / 1036;
295 if (volright > 0x3f)
296 volright = 0x3f;
299 return SendDAC(av7110, 4, volright);
303 volright = 127 - volright / 2;
305 i2c_writereg(av7110, 0x20, 0x04, volright);
309 vol = (volleft > volright) ? volleft : volright;
312 balance = ((volright - volleft) * 127) / vol;
319 vol = (volleft > volright) ? volleft : volright;
322 balance = ((volright - volleft) * 127) / vol;