/sound/core/oss/ |
D | mixer_oss.c | 249 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/ |
D | cros_ec_codec.c | 226 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 …]
|
D | wm_hubs.c | 144 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()
|
D | cs4270.c | 444 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/ |
D | ak4531_codec.c | 147 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 …]
|
D | sonicvibes.c | 924 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/ |
D | ctdaio.c | 29 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/ |
D | msnd_pinnacle_mixer.c | 183 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/ |
D | hdac_regmap.c | 160 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/ |
D | dsp_spos.h | 205 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()
|
D | cs46xx_lib.h | 193 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);
|
D | dsp_spos.c | 1858 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/ |
D | au88x0_a3d.c | 162 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 …]
|
D | au88x0_xtalk.c | 558 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/ |
D | miro.c | 478 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/ |
D | sb_mixer.c | 117 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/ |
D | harmony.c | 701 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/ |
D | dummy.c | 752 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/ |
D | gus_mixer.c | 80 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/ |
D | tas.c | 158 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/ |
D | dmasound_paula.c | 170 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/ |
D | hal2.h | 218 u32 right; /* Right volume */ member
|
/sound/isa/es1688/ |
D | es1688_lib.c | 863 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/ |
D | vx_mixer.c | 91 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/ |
D | xonar_dg_mixer.c | 185 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()
|