Lines Matching refs:gv
407 static int sst_send_gain_cmd(struct sst_data *drv, struct sst_gain_value *gv, in sst_send_gain_cmd() argument
418 if (mute || gv->mute) { in sst_send_gain_cmd()
422 cmd.cell_gains[0].cell_gain_left = gv->l_gain; in sst_send_gain_cmd()
423 cmd.cell_gains[0].cell_gain_right = gv->r_gain; in sst_send_gain_cmd()
428 cmd.cell_gains[0].gain_time_constant = gv->ramp_duration; in sst_send_gain_cmd()
444 struct sst_gain_value *gv = mc->gain_val; in sst_gain_get() local
448 ucontrol->value.integer.value[0] = gv->l_gain; in sst_gain_get()
449 ucontrol->value.integer.value[1] = gv->r_gain; in sst_gain_get()
453 ucontrol->value.integer.value[0] = gv->mute ? 0 : 1; in sst_gain_get()
457 ucontrol->value.integer.value[0] = gv->ramp_duration; in sst_gain_get()
476 struct sst_gain_value *gv = mc->gain_val; in sst_gain_put() local
482 gv->l_gain = ucontrol->value.integer.value[0]; in sst_gain_put()
483 gv->r_gain = ucontrol->value.integer.value[1]; in sst_gain_put()
485 mc->pname, gv->l_gain, gv->r_gain); in sst_gain_put()
489 gv->mute = !ucontrol->value.integer.value[0]; in sst_gain_put()
490 dev_dbg(cmpnt->dev, "%s: Mute %d\n", mc->pname, gv->mute); in sst_gain_put()
494 gv->ramp_duration = ucontrol->value.integer.value[0]; in sst_gain_put()
496 mc->pname, gv->ramp_duration); in sst_gain_put()
507 ret = sst_send_gain_cmd(drv, gv, mc->task_id, in sst_gain_put()
604 struct sst_gain_value *gv; in sst_set_pipe_gain() local
612 gv = mc->gain_val; in sst_set_pipe_gain()
614 ret = sst_send_gain_cmd(drv, gv, mc->task_id, in sst_set_pipe_gain()