Searched refs:balance (Results 1 - 13 of 13) sorted by relevance

/drivers/media/radio/
H A Dradio-sf16fmr2.c31 struct v4l2_ctrl *balance; member in struct:fmr2
142 int volume, balance, left, right; local
147 balance = fmr2->balance->cur.val;
150 balance = ctrl->val;
158 if (balance < 0)
159 right = max(0, right + balance);
160 if (balance > 0)
161 left = max(0, left - balance);
179 fmr2->balance
[all...]
/drivers/media/video/
H A Dwm8739.c61 struct v4l2_ctrl *balance; member in struct:wm8739_state::__anon1683
116 work_l = (min(65536 - state->balance->val, 32768) * state->volume->val) / 32768;
117 work_r = (min(state->balance->val, 32768) * state->volume->val) / 32768;
233 state->balance = v4l2_ctrl_new_std(&state->hdl, &wm8739_ctrl_ops,
H A Dwm8775.c101 u16 balance = (u16)state->bal->val; local
104 vol_l = (min(65536 - balance, 32768) * volume) >> 23;
105 vol_r = (min(balance, (u16)32768) * volume) >> 23;
H A Dtvaudio.c1675 int volume,balance; local
1682 balance=(32768*min(chip->left,chip->right))/volume;
1684 balance=32768;
1687 chip->left = (min(65536 - balance,32768) * volume) / 32768;
1688 chip->right = (min(balance,volume *(__u16)32768)) / 32768;
1697 int volume, balance; local
1703 balance = ctrl->value;
1704 chip->left = (min(65536 - balance, 32768) * volume) / 32768;
1705 chip->right = (min(balance, volume * (__u16)32768)) / 32768;
/drivers/media/video/cx18/
H A Dcx18-av-audio.c373 static void set_balance(struct cx18 *cx, int balance) argument
375 int bal = balance >> 8;
/drivers/media/video/cx25840/
H A Dcx25840-audio.c501 static void set_balance(struct i2c_client *client, int balance) argument
503 int bal = balance >> 8;
/drivers/media/video/pvrusb2/
H A Dpvrusb2-hdw-internal.h372 VCREATE_DATA(balance);
H A Dpvrusb2-hdw.c1018 VCREATE_FUNCS(balance)
1071 .name = "balance",
1073 DEFREF(balance),
3051 PVR2_SUBDEV_SET_CONTROL(hdw, V4L2_CID_AUDIO_BALANCE, balance);
/drivers/media/dvb/ttpci/
H A Dav7110_av.c285 int err, vol, val, balance = 0; local
315 balance = ((volright - volleft) * 127) / vol;
316 msp_writereg(av7110, MSP_WR_DSP, 0x0001, balance << 8);
325 balance = ((volright - volleft) * 127) / vol;
326 msp_writereg(av7110, MSP_WR_DSP, 0x0001, balance << 8);
/drivers/usb/host/
H A Dohci-q.c91 static int balance (struct ohci_hcd *ohci, int interval, int load) function
234 branch = balance (ohci, ed->interval, ed->load);
H A Disp116x-hcd.c651 static int balance(struct isp116x *isp116x, u16 period, u16 load) function
783 ep->branch = ret = balance(isp116x, ep->period, ep->load);
H A Dsl811-hcd.c761 static int balance(struct sl811 *sl811, u16 period, u16 load) function
908 retval = balance(sl811, ep->period, ep->load);
H A Disp1362-hcd.c1188 static int balance(struct isp1362_hcd *isp1362_hcd, u16 interval, u16 load) function
1332 retval = balance(isp1362_hcd, ep->interval, ep->load);
1334 pr_err("%s: balance returned %d\n", __func__, retval);

Completed in 332 milliseconds