/sound/core/oss/ |
D | mixer_oss.c | 261 int result = 0, left, right; in snd_mixer_oss_get_volume() local 267 left = pslot->volume[0]; in snd_mixer_oss_get_volume() 270 result = pslot->get_volume(fmixer, pslot, &left, &right); in snd_mixer_oss_get_volume() 272 right = left; in snd_mixer_oss_get_volume() 273 if (snd_BUG_ON(left < 0 || left > 100)) { in snd_mixer_oss_get_volume() 282 pslot->volume[0] = left; in snd_mixer_oss_get_volume() 284 result = (left & 0xff) | ((right & 0xff) << 8); in snd_mixer_oss_get_volume() 296 int result = 0, left = volume & 0xff, right = (volume >> 8) & 0xff; in snd_mixer_oss_set_volume() local 302 if (left > 100) in snd_mixer_oss_set_volume() 303 left = 100; in snd_mixer_oss_set_volume() [all …]
|
/sound/pci/ |
D | ak4531_codec.c | 147 int left, right; in snd_ak4531_get_double() local 150 left = (ak4531->regs[left_reg] >> left_shift) & mask; in snd_ak4531_get_double() 154 left = mask - left; in snd_ak4531_get_double() 157 ucontrol->value.integer.value[0] = left; in snd_ak4531_get_double() 172 int left, right; in snd_ak4531_put_double() local 174 left = ucontrol->value.integer.value[0] & mask; in snd_ak4531_put_double() 177 left = mask - left; in snd_ak4531_put_double() 180 left <<= left_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() 185 change = left != ak4531->regs[left_reg]; in snd_ak4531_put_double() [all …]
|
D | sonicvibes.c | 907 unsigned short left, right, oval1, oval2; in snd_sonicvibes_put_mux() local 913 left = (ucontrol->value.enumerated.item[0] + 1) << 5; in snd_sonicvibes_put_mux() 918 left = (oval1 & ~SV_RECSRC_OUT) | left; in snd_sonicvibes_put_mux() 920 change = left != oval1 || right != oval2; in snd_sonicvibes_put_mux() 921 snd_sonicvibes_out1(sonic, SV_IREG_LEFT_ADC, left); in snd_sonicvibes_put_mux()
|
/sound/pci/ctxfi/ |
D | ctdaio.c | 28 unsigned short left; 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 192 bLeft = left * 0xff / 100; in snd_msndmix_set() 193 wLeft = left * 0xffff / 100; in snd_msndmix_set() 255 int left, right; in snd_msndmix_volume_put() local 258 left = ucontrol->value.integer.value[0] % 101; in snd_msndmix_volume_put() 261 change = msnd->left_levels[addr] != left in snd_msndmix_volume_put() 263 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 164 err = snd_hdac_exec_verb(codec, reg | AC_AMP_GET_LEFT, 0, &left); 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 188 left = val & 0xff; in hda_reg_write_stereo_amp() 190 if (left == right) { in hda_reg_write_stereo_amp() 192 return snd_hdac_exec_verb(codec, reg | left, 0, NULL); in hda_reg_write_stereo_amp() 195 err = snd_hdac_exec_verb(codec, reg | AC_AMP_SET_LEFT | left, 0, NULL); in hda_reg_write_stereo_amp()
|
/sound/isa/sb/ |
D | sb_mixer.c | 117 unsigned char left, right; in snd_sbmixer_get_double() local 120 left = (snd_sbmixer_read(sb, left_reg) >> left_shift) & mask; in snd_sbmixer_get_double() 123 ucontrol->value.integer.value[0] = left; in snd_sbmixer_get_double() 138 unsigned char left, right, oleft, oright; in snd_sbmixer_put_double() local 140 left = (ucontrol->value.integer.value[0] & mask) << left_shift; in snd_sbmixer_put_double() 145 left = (oleft & ~((mask << left_shift) | (mask << right_shift))) | left | right; in snd_sbmixer_put_double() 146 change = left != oleft; in snd_sbmixer_put_double() 148 snd_sbmixer_write(sb, left_reg, left); in snd_sbmixer_put_double() 152 left = (oleft & ~(mask << left_shift)) | left; in snd_sbmixer_put_double() 154 change = left != oleft || right != oright; in snd_sbmixer_put_double() [all …]
|
/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() 212 scb->volume[0] = left; 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() 1879 ins->dac_volume_left = left; 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() 1897 ins->spdif_input_volume_left = left; 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 166 a3d_addrA(a->slice, a->source, A3D_A_HrtfOutL), left); in a3dsrc_SetHrtfOutput() 223 static void a3dsrc_GetHrtfOutput(a3dsrc_t * a, short *left, short *right) 226 *left = 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) 350 *left = [all …]
|
D | au88x0_xtalk.c | 559 unsigned short left) in vortex_XtalkHw_SetDelay() argument 566 esp0 = (esp0 & 0xfffc1fff) | ((left & 0x1F) << 0xd); in vortex_XtalkHw_SetDelay() 596 unsigned short *left) 602 *left = (esp0 >> 0xd) & 0x1f;
|
/sound/isa/opti9xx/ |
D | miro.c | 478 int left, right, left_old, right_old; in snd_miro_put_double() local 482 left = ucontrol->value.integer.value[0]; in snd_miro_put_double() 509 if (left < -0x7f || left > 0x7f || in snd_miro_put_double() 518 if (left >= 0) { in snd_miro_put_double() 519 error = aci_setvalue(aci, setreg_left, left); in snd_miro_put_double() 522 left, error); in snd_miro_put_double() 526 error = aci_setvalue(aci, setreg_left, 0x80 - left); in snd_miro_put_double() 529 0x80 - left, error); in snd_miro_put_double() 554 if (left < 0 || left > 0x20 || in snd_miro_put_double() 561 error = aci_setvalue(aci, setreg_left, 0x20 - left); in snd_miro_put_double() [all …]
|
/sound/parisc/ |
D | harmony.c | 689 int left, right; in snd_harmony_volume_get() local 693 left = (h->st.gain >> shift_left) & mask; in snd_harmony_volume_get() 696 left = mask - left; in snd_harmony_volume_get() 700 ucontrol->value.integer.value[0] = left; in snd_harmony_volume_get() 718 int left, right; in snd_harmony_volume_put() local 723 left = ucontrol->value.integer.value[0] & mask; in snd_harmony_volume_put() 725 left = mask - left; in snd_harmony_volume_put() 727 h->st.gain |= (left << shift_left); in snd_harmony_volume_put()
|
/sound/drivers/ |
D | dummy.c | 740 int left, right; in snd_dummy_volume_put() local 742 left = ucontrol->value.integer.value[0]; in snd_dummy_volume_put() 743 if (left < -50) in snd_dummy_volume_put() 744 left = -50; in snd_dummy_volume_put() 745 if (left > 100) in snd_dummy_volume_put() 746 left = 100; in snd_dummy_volume_put() 753 change = dummy->mixer_volume[addr][0] != left || in snd_dummy_volume_put() 755 dummy->mixer_volume[addr][0] = left; in snd_dummy_volume_put() 788 int left, right; in snd_dummy_capsrc_put() local 790 left = ucontrol->value.integer.value[0] & 1; in snd_dummy_capsrc_put() [all …]
|
/sound/soc/codecs/ |
D | wm_hubs.c | 143 unsigned int left; member 153 unsigned int left, right; in wm_hubs_dcs_cache_get() local 155 left = snd_soc_component_read(component, WM8993_LEFT_OUTPUT_VOLUME); in wm_hubs_dcs_cache_get() 156 left &= WM8993_HPOUT1L_VOL_MASK; in wm_hubs_dcs_cache_get() 162 if (cache->left != left || cache->right != right) in wm_hubs_dcs_cache_get() 184 cache->left = snd_soc_component_read(component, WM8993_LEFT_OUTPUT_VOLUME); in wm_hubs_dcs_cache_set() 185 cache->left &= WM8993_HPOUT1L_VOL_MASK; in wm_hubs_dcs_cache_set() 262 cache->dcs_cfg, cache->left, cache->right); in enable_dc_servo()
|
D | cros_ec_codec.c | 148 int left = ucontrol->value.integer.value[0]; in dmic_put_gain() local 153 if (left > max_dmic_gain || right > max_dmic_gain) in dmic_put_gain() 156 dev_dbg(component->dev, "set mic gain to %u, %u\n", left, right); in dmic_put_gain() 160 p.set_gain_idx_param.gain = left; in dmic_put_gain()
|
D | cs4270.c | 446 int left = !ucontrol->value.integer.value[0]; in cs4270_soc_put_mute() local 449 cs4270->manual_mute = (left ? CS4270_MUTE_DAC_A : 0) | in cs4270_soc_put_mute()
|
/sound/oss/dmasound/ |
D | dmasound_paula.c | 169 u_char *left = &frame[*frameUsed>>1]; in ami_ct_s8() local 170 u_char *right = left+write_sq_block_size_half; in ami_ct_s8() 174 if (get_user(*left++, userPtr++) in ami_ct_s8() 208 u_char *left = &frame[*frameUsed>>1]; \ 209 u_char *right = left+write_sq_block_size_half; \ 216 *left++ = convsample(data); \
|
/sound/isa/gus/ |
D | gus_mixer.c | 80 unsigned char left, right; in snd_ics_get_double() local 83 left = gus->gf1.ics_regs[addr][0]; in snd_ics_get_double() 86 ucontrol->value.integer.value[0] = left & 127; in snd_ics_get_double()
|
/sound/aoa/codecs/ |
D | tas.c | 158 u8 left, right; in tas_set_volume() local 160 left = tas->cached_volume_l; in tas_set_volume() 163 if (left > 177) left = 177; in tas_set_volume() 166 if (tas->mute_l) left = 0; in tas_set_volume() 175 tmp = tas_gaintable[left]; in tas_set_volume()
|
/sound/isa/es1688/ |
D | es1688_lib.c | 840 unsigned char left, right; in snd_es1688_get_double() local 844 left = snd_es1688_mixer_read(chip, left_reg); in snd_es1688_get_double() 846 left = snd_es1688_read(chip, left_reg); in snd_es1688_get_double() 853 right = left; in snd_es1688_get_double() 855 ucontrol->value.integer.value[0] = (left >> shift_left) & mask; in snd_es1688_get_double()
|
/sound/mips/ |
D | hal2.h | 219 u32 left; /* Left volume */ member
|
/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 93 left = chip->hw->output_level_max - left; in vx_set_analog_output_level() 97 chip->ops->akm_write(chip, XX_CODEC_LEVEL_LEFT_REGISTER, left); in vx_set_analog_output_level() 101 vx_set_codec_reg(chip, codec, XX_CODEC_LEVEL_LEFT_REGISTER, left); in vx_set_analog_output_level()
|
/sound/synth/emux/ |
D | soundfont.c | 896 int left = 1, right = 127, mid; in calc_parm_search() local 897 while (left < right) { in calc_parm_search() 898 mid = (left + right) / 2; in calc_parm_search() 900 left = mid + 1; in calc_parm_search() 904 return left; in calc_parm_search()
|