Home
last modified time | relevance | path

Searched refs:ngain (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/sound/pci/ca0106/
Dca0106_mixer.c99 unsigned int ngain, ogain; in ca0106_set_i2c_capture_source() local
103 ngain = emu->i2c_capture_volume[val][0]; /* Left */ in ca0106_set_i2c_capture_source()
105 if (force || ngain != ogain) in ca0106_set_i2c_capture_source()
106 snd_ca0106_i2c_write(emu, ADC_ATTEN_ADCL, ngain & 0xff); in ca0106_set_i2c_capture_source()
107 ngain = emu->i2c_capture_volume[val][1]; /* Right */ in ca0106_set_i2c_capture_source()
109 if (force || ngain != ogain) in ca0106_set_i2c_capture_source()
110 snd_ca0106_i2c_write(emu, ADC_ATTEN_ADCR, ngain & 0xff); in ca0106_set_i2c_capture_source()
476 unsigned int ngain; in snd_ca0106_i2c_volume_put() local
482 ngain = ucontrol->value.integer.value[0]; in snd_ca0106_i2c_volume_put()
483 if (ngain > 0xff) in snd_ca0106_i2c_volume_put()
[all …]
/Linux-v5.10/sound/pci/emu10k1/
Demumixer.c926 unsigned int ngain, ogain; in snd_audigy_i2c_capture_source_put() local
951 ngain = emu->i2c_capture_volume[source_id][0]; /* Left */ in snd_audigy_i2c_capture_source_put()
953 if (ngain != ogain) in snd_audigy_i2c_capture_source_put()
954 snd_emu10k1_i2c_write(emu, ADC_ATTEN_ADCL, ((ngain) & 0xff)); in snd_audigy_i2c_capture_source_put()
955 ngain = emu->i2c_capture_volume[source_id][1]; /* Right */ in snd_audigy_i2c_capture_source_put()
957 if (ngain != ogain) in snd_audigy_i2c_capture_source_put()
958 snd_emu10k1_i2c_write(emu, ADC_ATTEN_ADCR, ((ngain) & 0xff)); in snd_audigy_i2c_capture_source_put()
1008 unsigned int ngain; in snd_audigy_i2c_volume_put() local
1018 ngain = ucontrol->value.integer.value[0]; in snd_audigy_i2c_volume_put()
1019 if (ngain > 0xff) in snd_audigy_i2c_volume_put()
[all …]