Home
last modified time | relevance | path

Searched refs:gain (Results 1 – 25 of 35) sorted by relevance

12

/sound/pci/echoaudio/
Dindigoio_dsp.c33 int gain);
105 int gain) in set_vmixer_gain() argument
116 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
118 chip->comm_page->vmixer[index] = gain; in set_vmixer_gain()
121 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
Dindigo_dsp.c33 int gain);
135 int gain) in set_vmixer_gain() argument
146 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
148 chip->comm_page->vmixer[index] = gain; in set_vmixer_gain()
151 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
Dindigodj_dsp.c33 int gain);
135 int gain) in set_vmixer_gain() argument
146 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
148 chip->comm_page->vmixer[index] = gain; in set_vmixer_gain()
151 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
Dindigo_express_dsp.c78 int gain) in set_vmixer_gain() argument
89 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
91 chip->comm_page->vmixer[index] = gain; in set_vmixer_gain()
94 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
Dmia_dsp.c36 int gain);
169 int gain) in set_vmixer_gain() argument
180 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
182 chip->comm_page->vmixer[index] = gain; in set_vmixer_gain()
185 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
Dgina20_dsp.c178 static int set_input_gain(struct echoaudio *chip, u16 input, int gain) in set_input_gain() argument
186 chip->input_gain[input] = gain; in set_input_gain()
187 gain += GL20_INPUT_GAIN_MAGIC_NUMBER; in set_input_gain()
188 chip->comm_page->line_in_level[input] = gain; in set_input_gain()
Dlayla20_dsp.c252 static int set_input_gain(struct echoaudio *chip, u16 input, int gain) in set_input_gain() argument
260 chip->input_gain[input] = gain; in set_input_gain()
261 gain += GL20_INPUT_GAIN_MAGIC_NUMBER; in set_input_gain()
262 chip->comm_page->line_in_level[input] = gain; in set_input_gain()
Dechoaudio.c1006 int c, changed, gain; in snd_echo_output_gain_put() local
1012 gain = ucontrol->value.integer.value[c]; in snd_echo_output_gain_put()
1014 if (gain < ECHOGAIN_MINOUT || gain > ECHOGAIN_MAXOUT) in snd_echo_output_gain_put()
1016 if (chip->output_gain[c] != gain) { in snd_echo_output_gain_put()
1017 set_output_gain(chip, c, gain); in snd_echo_output_gain_put()
1087 int c, gain, changed; in snd_echo_input_gain_put() local
1093 gain = ucontrol->value.integer.value[c]; in snd_echo_input_gain_put()
1095 if (gain < ECHOGAIN_MININP || gain > ECHOGAIN_MAXINP) in snd_echo_input_gain_put()
1097 if (chip->input_gain[c] != gain) { in snd_echo_input_gain_put()
1098 set_input_gain(chip, c, gain); in snd_echo_input_gain_put()
[all …]
Dechoaudio_dsp.c552 static int set_output_gain(struct echoaudio *chip, u16 channel, s8 gain) in set_output_gain() argument
561 chip->output_gain[channel] = gain; in set_output_gain()
562 chip->comm_page->line_out_level[channel] = gain; in set_output_gain()
571 s8 gain) in set_monitor_gain() argument
580 chip->monitor_gain[output][input] = gain; in set_monitor_gain()
581 chip->comm_page->monitors[monitor_index(chip, output, input)] = gain; in set_monitor_gain()
Dindigoiox_dsp.c31 u16 pipe, int gain);
Dindigodjx_dsp.c31 u16 pipe, int gain);
/sound/soc/codecs/
Dmax9759.c22 unsigned int gain; member
48 ucontrol->value.integer.value[0] = priv->gain; in speaker_gain_control_get()
71 priv->gain = ucontrol->value.integer.value[0]; in speaker_gain_control_put()
75 speaker_gain_table[priv->gain][0]); in speaker_gain_control_put()
78 speaker_gain_table[priv->gain][1]); in speaker_gain_control_put()
176 priv->gain = 0; in max9759_probe()
Dwcd-clsh-v2.c225 int val = 0, gain = 0, res_val; in wcd_clsh_set_hph_mode() local
233 gain = DAC_GAIN_0DB; in wcd_clsh_set_hph_mode()
238 gain = DAC_GAIN_0DB; in wcd_clsh_set_hph_mode()
243 gain = DAC_GAIN_M0P2DB; in wcd_clsh_set_hph_mode()
261 gain); in wcd_clsh_set_hph_mode()
Dmadera.c3400 int gain; /* main gain */ member
3586 cfg->gain = gains[i].gain; in madera_find_fll_gain()
3685 madera_fll_dbg(fll, "GAIN=0x%x(%d)\n", cfg->gain, 1 << cfg->gain); in madera_calc_fll()
3692 bool sync, int gain) in madera_write_fll() argument
3726 gain << MADERA_FLL1_GAIN_SHIFT, in madera_write_fll()
3733 gain << MADERA_FLL1_GAIN_SHIFT, in madera_write_fll()
3862 int gain, ret; in madera_enable_fll() local
3917 true, cfg.gain); in madera_enable_fll()
3937 gain = cfg.gain; in madera_enable_fll()
3944 gain = cfg.alt_gain; in madera_enable_fll()
[all …]
Dcros_ec_codec.c271 param.gain.left = left; in set_ec_mic_gain()
272 param.gain.right = right; in set_ec_mic_gain()
Darizona.c2087 u16 gain; member
2101 int gain; member
2308 cfg->gain = fll_gains[i].gain; in arizona_calc_fll()
2323 arizona_fll_dbg(fll, "GAIN=0x%x(%d)\n", cfg->gain, 1 << cfg->gain); in arizona_calc_fll()
2348 cfg->gain << ARIZONA_FLL1_GAIN_SHIFT); in arizona_apply_fll()
2355 cfg->gain << ARIZONA_FLL1_GAIN_SHIFT); in arizona_apply_fll()
/sound/parisc/
Dharmony.c158 harmony_write(h, HARMONY_GAINCTL, h->st.gain); in harmony_unmute()
672 harmony_write(h, HARMONY_GAINCTL, h->st.gain); in snd_harmony_set_new_gain()
705 left = (h->st.gain >> shift_left) & mask; in snd_harmony_volume_get()
706 right = (h->st.gain >> shift_right) & mask; in snd_harmony_volume_get()
731 int old_gain = h->st.gain; in snd_harmony_volume_put()
738 h->st.gain &= ~( (mask << shift_left ) ); in snd_harmony_volume_put()
739 h->st.gain |= (left << shift_left); in snd_harmony_volume_put()
745 h->st.gain &= ~( (mask << shift_right) ); in snd_harmony_volume_put()
746 h->st.gain |= (right << shift_right); in snd_harmony_volume_put()
753 return h->st.gain != old_gain; in snd_harmony_volume_put()
[all …]
Dharmony.h26 u32 gain; member
/sound/pci/au88x0/
Dau88x0_eq.c39 static void vortex_EqHw_SetTimeConsts(vortex_t * vortex, u16 gain, u16 level) in vortex_EqHw_SetTimeConsts() argument
41 hwwrite(vortex->mmio, 0x2b3c4, gain); in vortex_EqHw_SetTimeConsts()
493 static int vortex_Eqlzr_GetLeftGain(vortex_t * vortex, u16 index, u16 * gain) in vortex_Eqlzr_GetLeftGain() argument
498 *gain = eq->this130[index]; in vortex_Eqlzr_GetLeftGain()
504 static void vortex_Eqlzr_SetLeftGain(vortex_t * vortex, u16 index, u16 gain) in vortex_Eqlzr_SetLeftGain() argument
511 eq->this130[index] = gain; in vortex_Eqlzr_SetLeftGain()
515 vortex_EqHw_SetLeftGainsSingleTarget(vortex, index, gain); in vortex_Eqlzr_SetLeftGain()
518 static int vortex_Eqlzr_GetRightGain(vortex_t * vortex, u16 index, u16 * gain) in vortex_Eqlzr_GetRightGain() argument
523 *gain = eq->this130[index + eq->this10]; in vortex_Eqlzr_GetRightGain()
529 static void vortex_Eqlzr_SetRightGain(vortex_t * vortex, u16 index, u16 gain) in vortex_Eqlzr_SetRightGain() argument
[all …]
/sound/oss/dmasound/
Ddmasound.h171 int gain; member
202 static inline int dmasound_set_gain(int gain) in dmasound_set_gain() argument
204 return dmasound.mach.setGain ? dmasound.mach.setGain(gain) : 100; in dmasound_set_gain()
Ddmasound_atari.c130 static int TTSetGain(int gain);
1005 static int TTSetGain(int gain) in TTSetGain() argument
1007 dmasound.gain = GAIN_VOXWARE_TO_DB(gain); in TTSetGain()
1008 atari_microwire_cmd(MW_LM1992_VOLUME(dmasound.gain)); in TTSetGain()
1009 return GAIN_DB_TO_VOXWARE(dmasound.gain); in TTSetGain()
1417 return IOCTL_OUT(arg, GAIN_DB_TO_VOXWARE(dmasound.gain)); in TTMixerIoctl()
/sound/pci/lola/
Dlola_mixer.c209 unsigned short gain, bool on) in lola_mixer_set_src_gain() argument
222 (gain == readw(&chip->mixer.array->src_gain[id]))) in lola_mixer_set_src_gain()
227 id, gain, val); in lola_mixer_set_src_gain()
228 writew(gain, &chip->mixer.array->src_gain[id]); in lola_mixer_set_src_gain()
270 unsigned short gain, bool on) in lola_mixer_set_mapping_gain() argument
278 writew(gain, &chip->mixer.array->dest_mix_gain[dest][src]); in lola_mixer_set_mapping_gain()
/sound/firewire/
Disight.c489 __be32 gain; in isight_gain_get() local
492 err = reg_read(isight, REG_GAIN, &gain); in isight_gain_get()
496 value->value.integer.value[0] = (s32)be32_to_cpu(gain); in isight_gain_get()
/sound/pci/rme9652/
Dhdspm.c1785 unsigned int gain; in all_in_all_mixer() local
1788 gain = UNITY_GAIN; in all_in_all_mixer()
1790 gain = 0; in all_in_all_mixer()
1792 gain = sgain; in all_in_all_mixer()
1796 hdspm_write_in_gain(hdspm, i, j, gain); in all_in_all_mixer()
1797 hdspm_write_pb_gain(hdspm, i, j, gain); in all_in_all_mixer()
3682 int gain; in snd_hdspm_put_mixer() local
3695 gain = ucontrol->value.integer.value[2]; in snd_hdspm_put_mixer()
3700 change = gain != hdspm_read_pb_gain(hdspm, destination, in snd_hdspm_put_mixer()
3704 change = gain != hdspm_read_in_gain(hdspm, destination, in snd_hdspm_put_mixer()
[all …]
/sound/pci/ctxfi/
Dcthw20k2.c1783 u32 adcmc, gain; in hw_wm8775_input_select() local
1798 gain = gain_in_db * MIC_BOOST_STEPS_PER_DB + MIC_BOOST_0DB; in hw_wm8775_input_select()
1800 hw20k2_i2c_write(hw, MAKE_WM8775_ADDR(WM8775_AADCL, gain), in hw_wm8775_input_select()
1801 MAKE_WM8775_DATA(gain)); in hw_wm8775_input_select()
1803 hw20k2_i2c_write(hw, MAKE_WM8775_ADDR(WM8775_AADCR, gain), in hw_wm8775_input_select()
1804 MAKE_WM8775_DATA(gain)); in hw_wm8775_input_select()

12