| /sound/core/oss/ |
| A D | mixer_oss.c | 266 right = left; in snd_mixer_oss_get_volume() 267 if (snd_BUG_ON(left < 0 || left > 100)) in snd_mixer_oss_get_volume() 290 if (left > 100) in snd_mixer_oss_set_volume() 291 left = 100; in snd_mixer_oss_set_volume() 295 right = left; in snd_mixer_oss_set_volume() 573 *left = 0; in snd_mixer_oss_get_volume1_sw() 702 if (left || right) { in snd_mixer_oss_put_volume1() 738 int left, right; in snd_mixer_oss_get_recsrc1_sw() local 740 left = right = 1; in snd_mixer_oss_get_recsrc1_sw() 751 int left, right; in snd_mixer_oss_get_recsrc1_route() local [all …]
|
| /sound/pci/ |
| A 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 …]
|
| A 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/ |
| A 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}, 44 [LINEO1] = {.left = 0x40, .right = 0x41}, 45 [LINEO2] = {.left = 0x60, .right = 0x61}, 46 [LINEO3] = {.left = 0x50, .right = 0x51}, 49 [MIC] = {.left = 0x55, .right = 0xd5}, 313 idx_l = idx_20k1[desc->type].left; in daio_rsc_init() [all …]
|
| /sound/isa/msnd/ |
| A 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/core/ |
| A D | regmap.c | 159 unsigned int left, right; in hda_reg_read_stereo_amp() local 163 err = snd_hdac_exec_verb(codec, reg | AC_AMP_GET_LEFT, 0, &left); in hda_reg_read_stereo_amp() 169 *val = left | (right << 8); in hda_reg_read_stereo_amp() 178 unsigned int verb, left, right; in hda_reg_write_stereo_amp() local 187 left = val & 0xff; in hda_reg_write_stereo_amp() 189 if (left == right) { in hda_reg_write_stereo_amp() 191 return snd_hdac_exec_verb(codec, reg | left, 0, NULL); in hda_reg_write_stereo_amp() 194 err = snd_hdac_exec_verb(codec, reg | AC_AMP_SET_LEFT | left, 0, NULL); in hda_reg_write_stereo_amp()
|
| /sound/isa/sb/ |
| A D | sb_mixer.c | 118 unsigned char left, right; in snd_sbmixer_get_double() local 121 left = (snd_sbmixer_read(sb, left_reg) >> left_shift) & mask; in snd_sbmixer_get_double() 124 ucontrol->value.integer.value[0] = left; in snd_sbmixer_get_double() 139 unsigned char left, right, oleft, oright; in snd_sbmixer_put_double() local 141 left = (ucontrol->value.integer.value[0] & mask) << left_shift; in snd_sbmixer_put_double() 146 left = (oleft & ~((mask << left_shift) | (mask << right_shift))) | left | right; in snd_sbmixer_put_double() 147 change = left != oleft; in snd_sbmixer_put_double() 149 snd_sbmixer_write(sb, left_reg, left); in snd_sbmixer_put_double() 153 left = (oleft & ~(mask << left_shift)) | left; in snd_sbmixer_put_double() 155 change = left != oleft || right != oright; in snd_sbmixer_put_double() [all …]
|
| /sound/pci/cs46xx/ |
| A 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()
|
| A 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);
|
| A D | dsp_spos.c | 1859 int cs46xx_dsp_set_dac_volume (struct snd_cs46xx * chip, u16 left, u16 right) in cs46xx_dsp_set_dac_volume() argument 1869 cs46xx_dsp_scb_set_volume (chip,scb,left,right); in cs46xx_dsp_set_dac_volume() 1876 cs46xx_dsp_scb_set_volume (chip,scb,left,right); in cs46xx_dsp_set_dac_volume() 1880 ins->dac_volume_left = left; in cs46xx_dsp_set_dac_volume() 1888 int cs46xx_dsp_set_iec958_volume (struct snd_cs46xx * chip, u16 left, u16 right) in cs46xx_dsp_set_iec958_volume() argument 1896 left,right); in cs46xx_dsp_set_iec958_volume() 1898 ins->spdif_input_volume_left = left; in cs46xx_dsp_set_iec958_volume()
|
| /sound/pci/au88x0/ |
| A 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 …]
|
| A 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/ |
| A D | miro.c | 480 int left, right, left_old, right_old; in snd_miro_put_double() local 484 left = ucontrol->value.integer.value[0]; in snd_miro_put_double() 513 if (left < -0x7f || left > 0x7f || in snd_miro_put_double() 522 if (left >= 0) { in snd_miro_put_double() 523 error = aci_setvalue(aci, setreg_left, left); in snd_miro_put_double() 526 left, error); in snd_miro_put_double() 533 0x80 - left, error); in snd_miro_put_double() 558 if (left < 0 || left > 0x20 || in snd_miro_put_double() 565 error = aci_setvalue(aci, setreg_left, 0x20 - left); in snd_miro_put_double() 568 0x20 - left, error); in snd_miro_put_double() [all …]
|
| /sound/parisc/ |
| A D | harmony.c | 675 int left, right; in snd_harmony_volume_get() local 679 left = (h->st.gain >> shift_left) & mask; in snd_harmony_volume_get() 682 left = mask - left; in snd_harmony_volume_get() 686 ucontrol->value.integer.value[0] = left; in snd_harmony_volume_get() 704 int left, right; in snd_harmony_volume_put() local 709 left = ucontrol->value.integer.value[0] & mask; in snd_harmony_volume_put() 711 left = mask - left; in snd_harmony_volume_put() 713 h->st.gain |= (left << shift_left); in snd_harmony_volume_put()
|
| /sound/drivers/ |
| A D | dummy.c | 739 int left, right; in snd_dummy_volume_put() local 741 left = ucontrol->value.integer.value[0]; in snd_dummy_volume_put() 742 if (left < mixer_volume_level_min) in snd_dummy_volume_put() 743 left = mixer_volume_level_min; in snd_dummy_volume_put() 744 if (left > mixer_volume_level_max) in snd_dummy_volume_put() 745 left = mixer_volume_level_max; in snd_dummy_volume_put() 752 change = dummy->mixer_volume[addr][0] != left || in snd_dummy_volume_put() 754 dummy->mixer_volume[addr][0] = left; in snd_dummy_volume_put() 787 int left, right; in snd_dummy_capsrc_put() local 789 left = ucontrol->value.integer.value[0] & 1; in snd_dummy_capsrc_put() [all …]
|
| /sound/soc/codecs/ |
| A D | wm_hubs.c | 144 unsigned int left; member 154 unsigned int left, right; in wm_hubs_dcs_cache_get() local 156 left = snd_soc_component_read(component, WM8993_LEFT_OUTPUT_VOLUME); in wm_hubs_dcs_cache_get() 157 left &= WM8993_HPOUT1L_VOL_MASK; in wm_hubs_dcs_cache_get() 163 if (cache->left != left || cache->right != right) in wm_hubs_dcs_cache_get() 185 cache->left = snd_soc_component_read(component, WM8993_LEFT_OUTPUT_VOLUME); in wm_hubs_dcs_cache_set() 186 cache->left &= WM8993_HPOUT1L_VOL_MASK; in wm_hubs_dcs_cache_set() 263 cache->dcs_cfg, cache->left, cache->right); in enable_dc_servo()
|
| A D | peb2466.c | 1442 size_t left; in peb2466_fw_parse() local 1468 left = size; in peb2466_fw_parse() 1471 if (left < 4) { in peb2466_fw_parse() 1483 left -= 2; in peb2466_fw_parse() 1492 left -= 2; in peb2466_fw_parse() 1494 while (left) { in peb2466_fw_parse() 1495 if (left < 6) { in peb2466_fw_parse() 1497 buf - data, size, left); in peb2466_fw_parse() 1515 left -= 6; in peb2466_fw_parse() 1516 if (left < lng) { in peb2466_fw_parse() [all …]
|
| A D | cros_ec_codec.c | 150 int left = ucontrol->value.integer.value[0]; in dmic_put_gain() local 155 if (left > max_dmic_gain || right > max_dmic_gain) in dmic_put_gain() 158 dev_dbg(component->dev, "set mic gain to %u, %u\n", left, right); in dmic_put_gain() 162 p.set_gain_idx_param.gain = left; in dmic_put_gain()
|
| A D | cs4270.c | 438 int left = !ucontrol->value.integer.value[0]; in cs4270_soc_put_mute() local 441 cs4270->manual_mute = (left ? CS4270_MUTE_DAC_A : 0) | in cs4270_soc_put_mute()
|
| /sound/oss/dmasound/ |
| A 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/ |
| A 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/ |
| A D | tas.c | 157 u8 left, right; in tas_set_volume() local 159 left = tas->cached_volume_l; in tas_set_volume() 162 if (left > 177) left = 177; in tas_set_volume() 165 if (tas->mute_l) left = 0; in tas_set_volume() 174 tmp = tas_gaintable[left]; in tas_set_volume()
|
| /sound/mips/ |
| A D | hal2.h | 219 u32 left; /* Left volume */ member
|
| /sound/isa/es1688/ |
| A D | es1688_lib.c | 843 unsigned char left, right; in snd_es1688_get_double() local 847 left = snd_es1688_mixer_read(chip, left_reg); in snd_es1688_get_double() 849 left = snd_es1688_read(chip, left_reg); in snd_es1688_get_double() 856 right = left; in snd_es1688_get_double() 858 ucontrol->value.integer.value[0] = (left >> shift_left) & mask; in snd_es1688_get_double()
|
| /sound/drivers/vx/ |
| A 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()
|