Lines Matching refs:volleft
280 int av7110_set_volume(struct av7110 *av7110, int volleft, int volright)
286 av7110->mixer.volume_left = volleft;
291 volleft = (volleft * 256) / 1036;
293 if (volleft > 0x3f)
294 volleft = 0x3f;
297 if ((err = SendDAC(av7110, 3, 0x80 + volleft)))
302 volleft = 127 - volleft / 2;
304 i2c_writereg(av7110, 0x20, 0x03, volleft);
309 vol = (volleft > volright) ? volleft : volright;
312 balance = ((volright - volleft) * 127) / vol;
319 vol = (volleft > volright) ? volleft : volright;
322 balance = ((volright - volleft) * 127) / vol;