Lines Matching full:gain
32 u32 gain[2]; member
82 int gain; in admfm2000_read_raw() local
87 gain = ~(st->gain[chan->channel]) * -1000; in admfm2000_read_raw()
88 *val = gain / 1000; in admfm2000_read_raw()
89 *val2 = (gain % 1000) * 1000; in admfm2000_read_raw()
103 int gain, ret; in admfm2000_write_raw() local
106 gain = (val * 1000) - (val2 / 1000); in admfm2000_write_raw()
108 gain = (val * 1000) + (val2 / 1000); in admfm2000_write_raw()
110 if (gain > ADMFM2000_MAX_GAIN || gain < ADMFM2000_MIN_GAIN) in admfm2000_write_raw()
116 st->gain[chan->channel] = ~((abs(gain) / 1000) & 0x1F); in admfm2000_write_raw()
119 st->gain[chan->channel]); in admfm2000_write_raw()
241 st->gain[0] = ADMFM2000_DEFAULT_GAIN; in admfm2000_probe()
242 st->gain[1] = ADMFM2000_DEFAULT_GAIN; in admfm2000_probe()