Home
last modified time | relevance | path

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

12

/sound/core/oss/
Dmixer_oss.c249 int result = 0, left, right; in snd_mixer_oss_get_volume() local
255 right = pslot->volume[1]; in snd_mixer_oss_get_volume()
257 result = pslot->get_volume(fmixer, pslot, &left, &right); in snd_mixer_oss_get_volume()
259 right = left; in snd_mixer_oss_get_volume()
262 if (snd_BUG_ON(right < 0 || right > 100)) in snd_mixer_oss_get_volume()
266 pslot->volume[1] = right; in snd_mixer_oss_get_volume()
267 result = (left & 0xff) | ((right & 0xff) << 8); in snd_mixer_oss_get_volume()
277 int result = 0, left = volume & 0xff, right = (volume >> 8) & 0xff; in snd_mixer_oss_set_volume() local
284 if (right > 100) in snd_mixer_oss_set_volume()
285 right = 100; in snd_mixer_oss_set_volume()
[all …]
/sound/soc/codecs/
Dcros_ec_codec.c226 u8 *left, u8 *right) in get_ec_mic_gain() argument
239 *right = resp.right; in get_ec_mic_gain()
249 u8 left, right; in mic_gain_get() local
252 ret = get_ec_mic_gain(component, &left, &right); in mic_gain_get()
257 ucontrol->value.integer.value[1] = right; in mic_gain_get()
263 u8 left, u8 right) in set_ec_mic_gain() argument
268 __func__, left, right); in set_ec_mic_gain()
272 param.gain.right = right; in set_ec_mic_gain()
285 int right = ucontrol->value.integer.value[1]; in mic_gain_put() local
288 if (left > max_dmic_gain || right > max_dmic_gain) in mic_gain_put()
[all …]
Dwm_hubs.c144 unsigned int right; member
153 unsigned int left, right; in wm_hubs_dcs_cache_get() local
158 right = snd_soc_component_read32(component, WM8993_RIGHT_OUTPUT_VOLUME); in wm_hubs_dcs_cache_get()
159 right &= WM8993_HPOUT1R_VOL_MASK; in wm_hubs_dcs_cache_get()
162 if (cache->left != left || cache->right != right) in wm_hubs_dcs_cache_get()
187 cache->right = snd_soc_component_read32(component, WM8993_RIGHT_OUTPUT_VOLUME); in wm_hubs_dcs_cache_set()
188 cache->right &= WM8993_HPOUT1R_VOL_MASK; in wm_hubs_dcs_cache_set()
262 cache->dcs_cfg, cache->left, cache->right); in enable_dc_servo()
Dcs4270.c444 int right = !ucontrol->value.integer.value[1]; in cs4270_soc_put_mute() local
447 (right ? CS4270_MUTE_DAC_B : 0); in cs4270_soc_put_mute()
/sound/pci/
Dak4531_codec.c147 int left, right; in snd_ak4531_get_double() local
151 right = (ak4531->regs[right_reg] >> right_shift) & mask; in snd_ak4531_get_double()
155 right = mask - right; in snd_ak4531_get_double()
158 ucontrol->value.integer.value[1] = right; in snd_ak4531_get_double()
172 int left, right; in snd_ak4531_put_double() local
175 right = ucontrol->value.integer.value[1] & mask; in snd_ak4531_put_double()
178 right = mask - right; in snd_ak4531_put_double()
181 right <<= right_shift; in snd_ak4531_put_double()
184 left = (ak4531->regs[left_reg] & ~((mask << left_shift) | (mask << right_shift))) | left | right; in snd_ak4531_put_double()
189 right = (ak4531->regs[right_reg] & ~(mask << right_shift)) | right; in snd_ak4531_put_double()
[all …]
Dsonicvibes.c924 unsigned short left, right, oval1, oval2; in snd_sonicvibes_put_mux() local
931 right = (ucontrol->value.enumerated.item[1] + 1) << 5; in snd_sonicvibes_put_mux()
936 right = (oval2 & ~SV_RECSRC_OUT) | right; in snd_sonicvibes_put_mux()
937 change = left != oval1 || right != oval2; in snd_sonicvibes_put_mux()
939 snd_sonicvibes_out1(sonic, SV_IREG_RIGHT_ADC, right); in snd_sonicvibes_put_mux()
/sound/pci/ctxfi/
Dctdaio.c29 unsigned short right; member
33 [LINEO1] = {.left = 0x00, .right = 0x01},
34 [LINEO2] = {.left = 0x18, .right = 0x19},
35 [LINEO3] = {.left = 0x08, .right = 0x09},
36 [LINEO4] = {.left = 0x10, .right = 0x11},
37 [LINEIM] = {.left = 0x1b5, .right = 0x1bd},
38 [SPDIFOO] = {.left = 0x20, .right = 0x21},
39 [SPDIFIO] = {.left = 0x15, .right = 0x1d},
40 [SPDIFI1] = {.left = 0x95, .right = 0x9d},
44 [LINEO1] = {.left = 0x40, .right = 0x41},
[all …]
/sound/isa/msnd/
Dmsnd_pinnacle_mixer.c183 static int snd_msndmix_set(struct snd_msnd *dev, int d, int left, int right) in snd_msndmix_set() argument
195 bRight = right * 0xff / 100; in snd_msndmix_set()
196 wRight = right * 0xffff / 100; in snd_msndmix_set()
257 int left, right; in snd_msndmix_volume_put() local
261 right = ucontrol->value.integer.value[1] % 101; in snd_msndmix_volume_put()
264 || msnd->right_levels[addr] != right; in snd_msndmix_volume_put()
265 snd_msndmix_set(msnd, addr, left, right); in snd_msndmix_volume_put()
/sound/hda/
Dhdac_regmap.c160 unsigned int left, right; in hda_reg_read_stereo_amp() local
167 err = snd_hdac_exec_verb(codec, reg | AC_AMP_GET_RIGHT, 0, &right); in hda_reg_read_stereo_amp()
170 *val = left | (right << 8); in hda_reg_read_stereo_amp()
179 unsigned int verb, left, right; in hda_reg_write_stereo_amp() local
189 right = (val >> 8) & 0xff; in hda_reg_write_stereo_amp()
190 if (left == right) { in hda_reg_write_stereo_amp()
198 err = snd_hdac_exec_verb(codec, reg | AC_AMP_SET_RIGHT | right, 0, NULL); in hda_reg_write_stereo_amp()
/sound/pci/cs46xx/
Ddsp_spos.h205 u16 left, u16 right) in cs46xx_dsp_scb_set_volume() argument
207 unsigned int val = ((0xffff - left) << 16 | (0xffff - right)); in cs46xx_dsp_scb_set_volume()
213 scb->volume[1] = right; in cs46xx_dsp_scb_set_volume()
Dcs46xx_lib.h193 int cs46xx_dsp_set_dac_volume (struct snd_cs46xx * chip, u16 left, u16 right);
194 int cs46xx_dsp_set_iec958_volume (struct snd_cs46xx * chip, u16 left, u16 right);
Ddsp_spos.c1858 int cs46xx_dsp_set_dac_volume (struct snd_cs46xx * chip, u16 left, u16 right) in cs46xx_dsp_set_dac_volume() argument
1868 cs46xx_dsp_scb_set_volume (chip,scb,left,right); in cs46xx_dsp_set_dac_volume()
1875 cs46xx_dsp_scb_set_volume (chip,scb,left,right); in cs46xx_dsp_set_dac_volume()
1880 ins->dac_volume_right = right; in cs46xx_dsp_set_dac_volume()
1887 int cs46xx_dsp_set_iec958_volume (struct snd_cs46xx * chip, u16 left, u16 right) in cs46xx_dsp_set_iec958_volume() argument
1895 left,right); in cs46xx_dsp_set_iec958_volume()
1898 ins->spdif_input_volume_right = right; in cs46xx_dsp_set_iec958_volume()
/sound/pci/au88x0/
Dau88x0_a3d.c162 static void a3dsrc_SetHrtfOutput(a3dsrc_t * a, short left, short right) in a3dsrc_SetHrtfOutput() argument
168 a3d_addrA(a->slice, a->source, A3D_A_HrtfOutR), right); in a3dsrc_SetHrtfOutput()
223 static void a3dsrc_GetHrtfOutput(a3dsrc_t * a, short *left, short *right)
229 *right =
327 static void a3dsrc_SetGainTarget(a3dsrc_t * a, short left, short right) in a3dsrc_SetGainTarget() argument
332 (right << 0x10) | left); in a3dsrc_SetGainTarget()
335 static void a3dsrc_SetGainCurrent(a3dsrc_t * a, short left, short right) in a3dsrc_SetGainCurrent() argument
340 (right << 0x10) | left); in a3dsrc_SetGainCurrent()
344 static void a3dsrc_GetGainTarget(a3dsrc_t * a, short *left, short *right)
347 *right =
[all …]
Dau88x0_xtalk.c558 vortex_XtalkHw_SetDelay(vortex_t * vortex, unsigned short right, in vortex_XtalkHw_SetDelay() argument
565 esp0 = (esp0 & 0xffffE0ff) | ((right & 0x1F) << 8); in vortex_XtalkHw_SetDelay()
595 vortex_XtalkHw_GetDelay(vortex_t * vortex, unsigned short *right,
601 *right = (esp0 >> 8) & 0x1f;
/sound/isa/opti9xx/
Dmiro.c478 int left, right, left_old, right_old; in snd_miro_put_double() local
483 right = ucontrol->value.integer.value[1]; in snd_miro_put_double()
510 right < -0x7f || right > 0x7f) in snd_miro_put_double()
534 if (right >= 0) { in snd_miro_put_double()
535 error = aci_setvalue(aci, setreg_right, right); in snd_miro_put_double()
538 right, error); in snd_miro_put_double()
542 error = aci_setvalue(aci, setreg_right, 0x80 - right); in snd_miro_put_double()
545 0x80 - right, error); in snd_miro_put_double()
555 right < 0 || right > 0x20) in snd_miro_put_double()
567 error = aci_setvalue(aci, setreg_right, 0x20 - right); in snd_miro_put_double()
[all …]
/sound/isa/sb/
Dsb_mixer.c117 unsigned char left, right; in snd_sbmixer_get_double() local
121 right = (snd_sbmixer_read(sb, right_reg) >> right_shift) & mask; in snd_sbmixer_get_double()
124 ucontrol->value.integer.value[1] = right; in snd_sbmixer_get_double()
138 unsigned char left, right, oleft, oright; in snd_sbmixer_put_double() local
141 right = (ucontrol->value.integer.value[1] & mask) << right_shift; in snd_sbmixer_put_double()
145 left = (oleft & ~((mask << left_shift) | (mask << right_shift))) | left | right; in snd_sbmixer_put_double()
153 right = (oright & ~(mask << right_shift)) | right; in snd_sbmixer_put_double()
154 change = left != oleft || right != oright; in snd_sbmixer_put_double()
157 snd_sbmixer_write(sb, right_reg, right); in snd_sbmixer_put_double()
/sound/parisc/
Dharmony.c701 int left, right; in snd_harmony_volume_get() local
706 right = (h->st.gain >> shift_right) & mask; in snd_harmony_volume_get()
709 right = mask - right; in snd_harmony_volume_get()
714 ucontrol->value.integer.value[1] = right; in snd_harmony_volume_get()
730 int left, right; in snd_harmony_volume_put() local
742 right = ucontrol->value.integer.value[1] & mask; in snd_harmony_volume_put()
744 right = mask - right; in snd_harmony_volume_put()
746 h->st.gain |= (right << shift_right); in snd_harmony_volume_put()
/sound/drivers/
Ddummy.c752 int left, right; in snd_dummy_volume_put() local
759 right = ucontrol->value.integer.value[1]; in snd_dummy_volume_put()
760 if (right < -50) in snd_dummy_volume_put()
761 right = -50; in snd_dummy_volume_put()
762 if (right > 100) in snd_dummy_volume_put()
763 right = 100; in snd_dummy_volume_put()
766 dummy->mixer_volume[addr][1] != right; in snd_dummy_volume_put()
768 dummy->mixer_volume[addr][1] = right; in snd_dummy_volume_put()
800 int left, right; in snd_dummy_capsrc_put() local
803 right = ucontrol->value.integer.value[1] & 1; in snd_dummy_capsrc_put()
[all …]
/sound/isa/gus/
Dgus_mixer.c80 unsigned char left, right; in snd_ics_get_double() local
84 right = gus->gf1.ics_regs[addr][1]; in snd_ics_get_double()
87 ucontrol->value.integer.value[1] = right & 127; in snd_ics_get_double()
/sound/aoa/codecs/
Dtas.c158 u8 left, right; in tas_set_volume() local
161 right = tas->cached_volume_r; in tas_set_volume()
164 if (right > 177) right = 177; in tas_set_volume()
167 if (tas->mute_r) right = 0; in tas_set_volume()
179 tmp = tas_gaintable[right]; in tas_set_volume()
/sound/oss/dmasound/
Ddmasound_paula.c170 u_char *right = left+write_sq_block_size_half; in ami_ct_s8() local
175 || get_user(*right++, userPtr++)) in ami_ct_s8()
209 u_char *right = left+write_sq_block_size_half; \
219 *right++ = convsample(data); \
/sound/mips/
Dhal2.h218 u32 right; /* Right volume */ member
/sound/isa/es1688/
Des1688_lib.c863 unsigned char left, right; in snd_es1688_get_double() local
872 right = snd_es1688_mixer_read(chip, right_reg); in snd_es1688_get_double()
874 right = snd_es1688_read(chip, right_reg); in snd_es1688_get_double()
876 right = left; in snd_es1688_get_double()
879 ucontrol->value.integer.value[1] = (right >> shift_right) & mask; in snd_es1688_get_double()
/sound/drivers/vx/
Dvx_mixer.c91 static void vx_set_analog_output_level(struct vx_core *chip, int codec, int left, int right) in vx_set_analog_output_level() argument
94 right = chip->hw->output_level_max - right; in vx_set_analog_output_level()
98 chip->ops->akm_write(chip, XX_CODEC_LEVEL_RIGHT_REGISTER, right); in vx_set_analog_output_level()
102 vx_set_codec_reg(chip, codec, XX_CODEC_LEVEL_RIGHT_REGISTER, right); in vx_set_analog_output_level()
/sound/pci/oxygen/
Dxonar_dg_mixer.c185 static int input_volume_apply(struct oxygen *chip, char left, char right) in input_volume_apply() argument
191 data->cs4245_shadow[CS4245_PGA_B_CTRL] = right; in input_volume_apply()

12