Lines Matching defs:value
216 static long to_user(selem_none_t *s, int dir, selem_ctl_t *c, long value)
221 n = (int64_t) (value - c->min) * (s->str[dir].max - s->str[dir].min);
225 static long from_user(selem_none_t *s, int dir, selem_ctl_t *c, long value)
230 n = (int64_t) (value - s->str[dir].min) * (c->max - c->min);
965 static int _snd_mixer_selem_set_volume(snd_mixer_elem_t *elem, int dir, snd_mixer_selem_channel_id_t channel, long value)
972 if (value < s->str[dir].min || value > s->str[dir].max)
977 if (value != s->str[dir].vol[channel]) {
978 s->str[dir].vol[channel] = value;
984 static int _snd_mixer_selem_set_switch(snd_mixer_elem_t *elem, int dir, snd_mixer_selem_channel_id_t channel, int value)
992 if (value) {
1085 snd_mixer_selem_channel_id_t channel, long *value)
1092 *value = s->str[dir].vol[channel];
1193 long db_gain, long *value, int xdir)
1199 db_gain, value, xdir);
1204 long value,
1213 int res = convert_to_dB(c->elem, &s->str[dir], value, dBvalue);
1220 long *value)
1237 *value = db_gain;
1243 snd_mixer_selem_channel_id_t channel, int *value)
1250 *value = !!(s->str[dir].sw & (1 << channel));
1255 snd_mixer_selem_channel_id_t channel, long value)
1258 changed = _snd_mixer_selem_set_volume(elem, dir, channel, value);
1267 long dbValue, long *value, int xdir)
1277 return convert_from_dB(c->elem, &s->str[dir], dbValue, value, xdir);
1286 long value;
1294 err = convert_from_dB(c->elem, &s->str[dir], db_gain, &value, xdir);
1297 return set_volume_ops(elem, dir, channel, value);
1301 snd_mixer_selem_channel_id_t channel, int value)
1314 changed = _snd_mixer_selem_set_switch(elem, dir, channel, value);
1427 unsigned int value)
1584 simple->capture_item = value;