Lines Matching defs:ngain
113 unsigned int ngain, ogain;
117 ngain = emu->i2c_capture_volume[val][0]; /* Left */
119 if (force || ngain != ogain)
120 snd_ca0106_i2c_write(emu, ADC_ATTEN_ADCL, ngain & 0xff);
121 ngain = emu->i2c_capture_volume[val][1]; /* Right */
123 if (force || ngain != ogain)
124 snd_ca0106_i2c_write(emu, ADC_ATTEN_ADCR, ngain & 0xff);
511 unsigned int ngain;
517 ngain = ucontrol->value.integer.value[0];
518 if (ngain > 0xff)
520 if (ogain != ngain) {
522 snd_ca0106_i2c_write(emu, ADC_ATTEN_ADCL, ((ngain) & 0xff) );
527 ngain = ucontrol->value.integer.value[1];
528 if (ngain > 0xff)
530 if (ogain != ngain) {
532 snd_ca0106_i2c_write(emu, ADC_ATTEN_ADCR, ((ngain) & 0xff));