Lines Matching refs:gv

392 static int sst_send_gain_cmd(struct sst_data *drv, struct sst_gain_value *gv,  in sst_send_gain_cmd()  argument
403 if (mute || gv->mute) { in sst_send_gain_cmd()
407 cmd.cell_gains[0].cell_gain_left = gv->l_gain; in sst_send_gain_cmd()
408 cmd.cell_gains[0].cell_gain_right = gv->r_gain; in sst_send_gain_cmd()
413 cmd.cell_gains[0].gain_time_constant = gv->ramp_duration; in sst_send_gain_cmd()
429 struct sst_gain_value *gv = mc->gain_val; in sst_gain_get() local
433 ucontrol->value.integer.value[0] = gv->l_gain; in sst_gain_get()
434 ucontrol->value.integer.value[1] = gv->r_gain; in sst_gain_get()
438 ucontrol->value.integer.value[0] = gv->mute ? 0 : 1; in sst_gain_get()
442 ucontrol->value.integer.value[0] = gv->ramp_duration; in sst_gain_get()
461 struct sst_gain_value *gv = mc->gain_val; in sst_gain_put() local
467 gv->l_gain = ucontrol->value.integer.value[0]; in sst_gain_put()
468 gv->r_gain = ucontrol->value.integer.value[1]; in sst_gain_put()
470 mc->pname, gv->l_gain, gv->r_gain); in sst_gain_put()
474 gv->mute = !ucontrol->value.integer.value[0]; in sst_gain_put()
475 dev_dbg(cmpnt->dev, "%s: Mute %d\n", mc->pname, gv->mute); in sst_gain_put()
479 gv->ramp_duration = ucontrol->value.integer.value[0]; in sst_gain_put()
481 mc->pname, gv->ramp_duration); in sst_gain_put()
492 ret = sst_send_gain_cmd(drv, gv, mc->task_id, in sst_gain_put()
586 struct sst_gain_value *gv; in sst_set_pipe_gain() local
594 gv = mc->gain_val; in sst_set_pipe_gain()
596 ret = sst_send_gain_cmd(drv, gv, mc->task_id, in sst_set_pipe_gain()