Home
last modified time | relevance | path

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

12

/sound/oss/
Dpas2_mixer.c85 int right = right_vol * div / 100; in mixer_output() local
91 right |= mixer; in mixer_output()
103 mix_write(right, 0x078B); in mixer_output()
121 int left, right, devmask, changed, i, mixer = 0; in pas_mixer_set() local
126 right = (level & 0x7f00) >> 8; in pas_mixer_set()
138 levels[whichDev] = mixer_output(right, left, 63, 0x01, 0); in pas_mixer_set()
146 levels[whichDev] = mixer_output(right, left, 12, 0x03, 0); in pas_mixer_set()
149 levels[whichDev] = mixer_output(right, left, 12, 0x04, 0); in pas_mixer_set()
153 levels[whichDev] = mixer_output(right, left, 31, 0x10 | 0x00, mixer); in pas_mixer_set()
156 levels[whichDev] = mixer_output(right, left, 31, 0x10 | 0x05, mixer); in pas_mixer_set()
[all …]
Dsb_mixer.c273 int sb_common_mixer_set(sb_devc * devc, int dev, int left, int right) in sb_common_mixer_set() argument
307 oss_change_bits(devc, &val, dev, RIGHT_CHN, right); in sb_common_mixer_set()
311 return left | (right << 8); in sb_common_mixer_set()
314 static int smw_mixer_set(sb_devc * devc, int dev, int left, int right) in smw_mixer_set() argument
322 sb_setmixer(devc, 0x0c, 96 - (96 * right / 100)); in smw_mixer_set()
327 devc->levels[dev] = left | (right << 8); in smw_mixer_set()
348 sb_setmixer(devc, reg + 1, (24 - (24 * right / 100)) | 0x40); in smw_mixer_set()
351 devc->levels[dev] = left | (right << 8); in smw_mixer_set()
352 return left | (right << 8); in smw_mixer_set()
358 int right = (value & 0x0000ff00) >> 8; in sb_mixer_set() local
[all …]
Dpss.c400 static void set_master_volume(pss_confdata *devc, int left, int right) in set_master_volume() argument
416 pss_write(devc, log_scale[right] | 0x0100); in set_master_volume()
477 unsigned int left, right, volume; in set_volume_stereo() local
484 right = (volume >> 8) & 0xff; in set_volume_stereo()
485 if (right > 100) in set_volume_stereo()
486 right = 100; in set_volume_stereo()
488 *aright = right; in set_volume_stereo()
497 static int ret_vol_stereo(int left, int right) in ret_vol_stereo() argument
499 return ((right << 8) | left); in ret_vol_stereo()
Dsb_ess.c1675 int ess_mixer_set(sb_devc *devc, int dev, int left, int right) argument
1678 sb_common_mixer_set (devc, dev + ES_REC_MIXER_RECDIFF, left, right);
1680 return sb_common_mixer_set (devc, dev, left, right);
1690 int left, right, value; local
1694 right = (value & 0x0000ff00) >> 8;
1696 sb_common_mixer_set(devc, dev, left, right);
1702 int value, left, right; local
1722 right = (value & 0x0000ff00) >> 8;
1725 right = 0;
1727 sb_common_mixer_set(devc, i + ES_REC_MIXER_RECDIFF, left, right);
Dwaveartist.c934 unsigned int mask, left, right; in waveartist_mixer_update() local
945 right = waveartist_cmd1_r(devc, WACMD_GET_LEVEL | in waveartist_mixer_update()
949 right = (right & ~mask) | (lev_right & mask); in waveartist_mixer_update()
952 waveartist_cmd3(devc, WACMD_SET_MIXER, left, right); in waveartist_mixer_update()
1493 unsigned int left, right; in vnc_mute_lout() local
1496 right = waveartist_cmd1_r(devc, WACMD_GET_LEVEL | 0x400); in vnc_mute_lout()
1500 right &= ~1; in vnc_mute_lout()
1503 right |= 1; in vnc_mute_lout()
1505 waveartist_cmd3(devc, WACMD_SET_MIXER, left, right); in vnc_mute_lout()
Dsb_ess.h27 (sb_devc *devc, int dev, int left, int right);
/sound/core/oss/
Dmixer_oss.c263 int result = 0, left, right; in snd_mixer_oss_get_volume() local
269 right = pslot->volume[1]; in snd_mixer_oss_get_volume()
271 result = pslot->get_volume(fmixer, pslot, &left, &right); in snd_mixer_oss_get_volume()
273 right = left; in snd_mixer_oss_get_volume()
276 if (snd_BUG_ON(right < 0 || right > 100)) in snd_mixer_oss_get_volume()
280 pslot->volume[1] = right; in snd_mixer_oss_get_volume()
281 result = (left & 0xff) | ((right & 0xff) << 8); in snd_mixer_oss_get_volume()
291 int result = 0, left = volume & 0xff, right = (volume >> 8) & 0xff; in snd_mixer_oss_set_volume() local
298 if (right > 100) in snd_mixer_oss_set_volume()
299 right = 100; in snd_mixer_oss_set_volume()
[all …]
/sound/pci/
Dak4531_codec.c166 int left, right; in snd_ak4531_get_double() local
170 right = (ak4531->regs[right_reg] >> right_shift) & mask; in snd_ak4531_get_double()
174 right = mask - right; in snd_ak4531_get_double()
177 ucontrol->value.integer.value[1] = right; in snd_ak4531_get_double()
191 int left, right; in snd_ak4531_put_double() local
194 right = ucontrol->value.integer.value[1] & mask; in snd_ak4531_put_double()
197 right = mask - right; in snd_ak4531_put_double()
200 right <<= right_shift; in snd_ak4531_put_double()
203 left = (ak4531->regs[left_reg] & ~((mask << left_shift) | (mask << right_shift))) | left | right; in snd_ak4531_put_double()
208 right = (ak4531->regs[right_reg] & ~(mask << right_shift)) | right; in snd_ak4531_put_double()
[all …]
/sound/pci/ctxfi/
Dctdaio.c33 unsigned short right; member
37 [LINEO1] = {.left = 0x00, .right = 0x01},
38 [LINEO2] = {.left = 0x18, .right = 0x19},
39 [LINEO3] = {.left = 0x08, .right = 0x09},
40 [LINEO4] = {.left = 0x10, .right = 0x11},
41 [LINEIM] = {.left = 0x1b5, .right = 0x1bd},
42 [SPDIFOO] = {.left = 0x20, .right = 0x21},
43 [SPDIFIO] = {.left = 0x15, .right = 0x1d},
44 [SPDIFI1] = {.left = 0x95, .right = 0x9d},
48 [LINEO1] = {.left = 0x40, .right = 0x41},
[all …]
/sound/isa/msnd/
Dmsnd_pinnacle_mixer.c193 static int snd_msndmix_set(struct snd_msnd *dev, int d, int left, int right) in snd_msndmix_set() argument
205 bRight = right * 0xff / 100; in snd_msndmix_set()
206 wRight = right * 0xffff / 100; in snd_msndmix_set()
267 int left, right; in snd_msndmix_volume_put() local
271 right = ucontrol->value.integer.value[1] % 101; in snd_msndmix_volume_put()
274 || msnd->right_levels[addr] != right; in snd_msndmix_volume_put()
275 snd_msndmix_set(msnd, addr, left, right); in snd_msndmix_volume_put()
/sound/pci/cs46xx/
Ddsp_spos.h220 u16 left, u16 right) in cs46xx_dsp_scb_set_volume() argument
222 unsigned int val = ((0xffff - left) << 16 | (0xffff - right)); in cs46xx_dsp_scb_set_volume()
228 scb->volume[1] = right; in cs46xx_dsp_scb_set_volume()
Dcs46xx_lib.h208 int cs46xx_dsp_set_dac_volume (struct snd_cs46xx * chip, u16 left, u16 right);
209 int cs46xx_dsp_set_iec958_volume (struct snd_cs46xx * chip, u16 left, u16 right);
/sound/pci/au88x0/
Dau88x0_a3d.c174 static void a3dsrc_SetHrtfOutput(a3dsrc_t * a, short left, short right) in a3dsrc_SetHrtfOutput() argument
180 a3d_addrA(a->slice, a->source, A3D_A_HrtfOutR), right); in a3dsrc_SetHrtfOutput()
235 static void a3dsrc_GetHrtfOutput(a3dsrc_t * a, short *left, short *right)
241 *right =
339 static void a3dsrc_SetGainTarget(a3dsrc_t * a, short left, short right) in a3dsrc_SetGainTarget() argument
344 (right << 0x10) | left); in a3dsrc_SetGainTarget()
347 static void a3dsrc_SetGainCurrent(a3dsrc_t * a, short left, short right) in a3dsrc_SetGainCurrent() argument
352 (right << 0x10) | left); in a3dsrc_SetGainCurrent()
356 static void a3dsrc_GetGainTarget(a3dsrc_t * a, short *left, short *right)
359 *right =
[all …]
Dau88x0_xtalk.c570 vortex_XtalkHw_SetDelay(vortex_t * vortex, unsigned short right, in vortex_XtalkHw_SetDelay() argument
577 esp0 = (esp0 & 0xffffE0ff) | ((right & 0x1F) << 8); in vortex_XtalkHw_SetDelay()
607 vortex_XtalkHw_GetDelay(vortex_t * vortex, unsigned short *right,
613 *right = (esp0 >> 8) & 0x1f;
/sound/isa/opti9xx/
Dmiro.c488 int left, right, left_old, right_old; in snd_miro_put_double() local
493 right = ucontrol->value.integer.value[1]; in snd_miro_put_double()
520 right < -0x7f || right > 0x7f) in snd_miro_put_double()
544 if (right >= 0) { in snd_miro_put_double()
545 error = aci_setvalue(aci, setreg_right, right); in snd_miro_put_double()
548 right, error); in snd_miro_put_double()
552 error = aci_setvalue(aci, setreg_right, 0x80 - right); in snd_miro_put_double()
555 0x80 - right, error); in snd_miro_put_double()
565 right < 0 || right > 0x20) in snd_miro_put_double()
577 error = aci_setvalue(aci, setreg_right, 0x20 - right); in snd_miro_put_double()
[all …]
/sound/isa/sb/
Dsb_mixer.c132 unsigned char left, right; in snd_sbmixer_get_double() local
136 right = (snd_sbmixer_read(sb, right_reg) >> right_shift) & mask; in snd_sbmixer_get_double()
139 ucontrol->value.integer.value[1] = right; in snd_sbmixer_get_double()
153 unsigned char left, right, oleft, oright; in snd_sbmixer_put_double() local
156 right = (ucontrol->value.integer.value[1] & mask) << right_shift; in snd_sbmixer_put_double()
160 left = (oleft & ~((mask << left_shift) | (mask << right_shift))) | left | right; in snd_sbmixer_put_double()
168 right = (oright & ~(mask << right_shift)) | right; in snd_sbmixer_put_double()
169 change = left != oleft || right != oright; in snd_sbmixer_put_double()
172 snd_sbmixer_write(sb, right_reg, right); in snd_sbmixer_put_double()
/sound/parisc/
Dharmony.c720 int left, right; in snd_harmony_volume_get() local
725 right = (h->st.gain >> shift_right) & mask; in snd_harmony_volume_get()
728 right = mask - right; in snd_harmony_volume_get()
733 ucontrol->value.integer.value[1] = right; in snd_harmony_volume_get()
749 int left, right; in snd_harmony_volume_put() local
761 right = ucontrol->value.integer.value[1] & mask; in snd_harmony_volume_put()
763 right = mask - right; in snd_harmony_volume_put()
765 h->st.gain |= (right << shift_right); in snd_harmony_volume_put()
/sound/drivers/
Ddummy.c762 int left, right; in snd_dummy_volume_put() local
769 right = ucontrol->value.integer.value[1]; in snd_dummy_volume_put()
770 if (right < -50) in snd_dummy_volume_put()
771 right = -50; in snd_dummy_volume_put()
772 if (right > 100) in snd_dummy_volume_put()
773 right = 100; in snd_dummy_volume_put()
776 dummy->mixer_volume[addr][1] != right; in snd_dummy_volume_put()
778 dummy->mixer_volume[addr][1] = right; in snd_dummy_volume_put()
810 int left, right; in snd_dummy_capsrc_put() local
813 right = ucontrol->value.integer.value[1] & 1; in snd_dummy_capsrc_put()
[all …]
/sound/soc/codecs/
Dwm_hubs.c149 unsigned int right; member
158 unsigned int left, right; in wm_hubs_dcs_cache_get() local
163 right = snd_soc_read(codec, WM8993_RIGHT_OUTPUT_VOLUME); in wm_hubs_dcs_cache_get()
164 right &= WM8993_HPOUT1R_VOL_MASK; in wm_hubs_dcs_cache_get()
167 if (cache->left != left || cache->right != right) in wm_hubs_dcs_cache_get()
194 cache->right = snd_soc_read(codec, WM8993_RIGHT_OUTPUT_VOLUME); in wm_hubs_dcs_cache_set()
195 cache->right &= WM8993_HPOUT1R_VOL_MASK; in wm_hubs_dcs_cache_set()
269 cache->dcs_cfg, cache->left, cache->right); in enable_dc_servo()
/sound/isa/gus/
Dgus_mixer.c95 unsigned char left, right; in snd_ics_get_double() local
99 right = gus->gf1.ics_regs[addr][1]; in snd_ics_get_double()
102 ucontrol->value.integer.value[1] = right & 127; in snd_ics_get_double()
/sound/aoa/codecs/
Dtas.c159 u8 left, right; in tas_set_volume() local
162 right = tas->cached_volume_r; in tas_set_volume()
165 if (right > 177) right = 177; in tas_set_volume()
168 if (tas->mute_r) right = 0; in tas_set_volume()
180 tmp = tas_gaintable[right]; in tas_set_volume()
/sound/oss/dmasound/
Ddmasound_paula.c169 u_char *right = left+write_sq_block_size_half; in ami_ct_s8() local
174 || get_user(*right++, userPtr++)) in ami_ct_s8()
208 u_char *right = left+write_sq_block_size_half; \
218 *right++ = convsample(data); \
/sound/mips/
Dhal2.h231 u32 right; /* Right volume */ member
/sound/isa/es1688/
Des1688_lib.c891 unsigned char left, right; in snd_es1688_get_double() local
900 right = snd_es1688_mixer_read(chip, right_reg); in snd_es1688_get_double()
902 right = snd_es1688_read(chip, right_reg); in snd_es1688_get_double()
904 right = left; in snd_es1688_get_double()
907 ucontrol->value.integer.value[1] = (right >> shift_right) & mask; in snd_es1688_get_double()
/sound/drivers/vx/
Dvx_mixer.c106 static void vx_set_analog_output_level(struct vx_core *chip, int codec, int left, int right) in vx_set_analog_output_level() argument
109 right = chip->hw->output_level_max - right; in vx_set_analog_output_level()
113 chip->ops->akm_write(chip, XX_CODEC_LEVEL_RIGHT_REGISTER, right); in vx_set_analog_output_level()
117 vx_set_codec_reg(chip, codec, XX_CODEC_LEVEL_RIGHT_REGISTER, right); in vx_set_analog_output_level()

12