/sound/oss/ |
D | pas2_mixer.c | 80 int left = left_vol * div / 100; in mixer_output() local 86 left |= mixer; in mixer_output() 92 mix_write(left, 0x078B); in mixer_output() 97 mix_write(left, 0x078B); in mixer_output() 117 int left, right, devmask, changed, i, mixer = 0; in pas_mixer_set() local 119 left = level & 0x7f; in pas_mixer_set() 132 levels[whichDev] = mixer_output(right, left, 63, 0x01, 0); in pas_mixer_set() 140 levels[whichDev] = mixer_output(right, left, 12, 0x03, 0); in pas_mixer_set() 143 levels[whichDev] = mixer_output(right, left, 12, 0x04, 0); in pas_mixer_set() 147 levels[whichDev] = mixer_output(right, left, 31, 0x10 | 0x00, mixer); in pas_mixer_set() [all …]
|
D | sb_mixer.c | 273 int sb_common_mixer_set(sb_devc * devc, int dev, int left, int right) in sb_common_mixer_set() argument 287 oss_change_bits(devc, &val, dev, LEFT_CHN, left); in sb_common_mixer_set() 299 return left | (left << 8); /* 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 321 sb_setmixer(devc, 0x0b, 96 - (96 * left / 100)); /* 96=mute, 0=max */ in smw_mixer_set() 327 devc->levels[dev] = left | (right << 8); in smw_mixer_set() 347 sb_setmixer(devc, reg, (24 - (24 * left / 100)) | 0x20); /* 24=mute, 0=max */ in smw_mixer_set() 351 devc->levels[dev] = left | (right << 8); in smw_mixer_set() 352 return left | (right << 8); in smw_mixer_set() [all …]
|
D | pss.c | 401 static void set_master_volume(struct pss_confdata *devc, int left, int right) in set_master_volume() argument 415 pss_write(devc, log_scale[left] | 0x0000); in set_master_volume() 463 unsigned int left, volume; in set_volume_mono() local 467 left = volume & 0xff; in set_volume_mono() 468 if (left > 100) in set_volume_mono() 469 left = 100; in set_volume_mono() 470 *aleft = left; in set_volume_mono() 478 unsigned int left, right, volume; in set_volume_stereo() local 482 left = volume & 0xff; in set_volume_stereo() 483 if (left > 100) in set_volume_stereo() [all …]
|
D | sb_ess.c | 1666 int ess_mixer_set(sb_devc *devc, int dev, int left, int right) argument 1669 sb_common_mixer_set (devc, dev + ES_REC_MIXER_RECDIFF, left, right); 1671 return sb_common_mixer_set (devc, dev, left, right); 1681 int left, right, value; local 1684 left = value & 0x000000ff; 1687 sb_common_mixer_set(devc, dev, left, right); 1693 int value, left, right; local 1712 left = value & 0x000000ff; 1715 left = 0; 1718 sb_common_mixer_set(devc, i + ES_REC_MIXER_RECDIFF, left, right);
|
D | waveartist.c | 953 unsigned int mask, left, right; in waveartist_mixer_update() local 960 left = waveartist_cmd1_r(devc, WACMD_GET_LEVEL | in waveartist_mixer_update() 967 left = (left & ~mask) | (lev_left & mask); in waveartist_mixer_update() 971 waveartist_cmd3(devc, WACMD_SET_MIXER, left, right); in waveartist_mixer_update() 1512 unsigned int left, right; in vnc_mute_lout() local 1514 left = waveartist_cmd1_r(devc, WACMD_GET_LEVEL); in vnc_mute_lout() 1518 left &= ~1; in vnc_mute_lout() 1521 left |= 1; in vnc_mute_lout() 1524 waveartist_cmd3(devc, WACMD_SET_MIXER, left, right); in vnc_mute_lout()
|
D | sb_ess.h | 27 (sb_devc *devc, int dev, int left, int right);
|
D | midi_synth.c | 485 unsigned long left, src_offs, eox_seen = 0; in midi_synth_load_patch() local 515 left = sysex.len; in midi_synth_load_patch() 518 for (i = 0; i < left && !signal_pending(current); i++) in midi_synth_load_patch()
|
/sound/core/oss/ |
D | mixer_oss.c | 264 int result = 0, left, right; in snd_mixer_oss_get_volume() local 269 left = pslot->volume[0]; in snd_mixer_oss_get_volume() 272 result = pslot->get_volume(fmixer, pslot, &left, &right); in snd_mixer_oss_get_volume() 274 right = left; in snd_mixer_oss_get_volume() 275 if (snd_BUG_ON(left < 0 || left > 100)) in snd_mixer_oss_get_volume() 280 pslot->volume[0] = left; in snd_mixer_oss_get_volume() 282 result = (left & 0xff) | ((right & 0xff) << 8); in snd_mixer_oss_get_volume() 292 int result = 0, left = volume & 0xff, right = (volume >> 8) & 0xff; in snd_mixer_oss_set_volume() local 297 if (left > 100) in snd_mixer_oss_set_volume() 298 left = 100; in snd_mixer_oss_set_volume() [all …]
|
/sound/pci/ |
D | ak4531_codec.c | 162 int left, right; in snd_ak4531_get_double() local 165 left = (ak4531->regs[left_reg] >> left_shift) & mask; in snd_ak4531_get_double() 169 left = mask - left; in snd_ak4531_get_double() 172 ucontrol->value.integer.value[0] = left; in snd_ak4531_get_double() 187 int left, right; in snd_ak4531_put_double() local 189 left = ucontrol->value.integer.value[0] & mask; in snd_ak4531_put_double() 192 left = mask - left; in snd_ak4531_put_double() 195 left <<= left_shift; in snd_ak4531_put_double() 199 left = (ak4531->regs[left_reg] & ~((mask << left_shift) | (mask << right_shift))) | left | right; in snd_ak4531_put_double() 200 change = left != ak4531->regs[left_reg]; in snd_ak4531_put_double() [all …]
|
/sound/pci/ctxfi/ |
D | ctdaio.c | 32 unsigned short left; 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/hda/ |
D | hdac_regmap.c | 158 unsigned int left, right; in hda_reg_read_stereo_amp() local 162 err = snd_hdac_exec_verb(codec, reg | AC_AMP_GET_LEFT, 0, &left); in hda_reg_read_stereo_amp() 168 *val = left | (right << 8); in hda_reg_read_stereo_amp() 177 unsigned int verb, left, right; in hda_reg_write_stereo_amp() local 186 left = val & 0xff; in hda_reg_write_stereo_amp() 188 if (left == right) { in hda_reg_write_stereo_amp() 190 return snd_hdac_exec_verb(codec, reg | left, 0, NULL); in hda_reg_write_stereo_amp() 193 err = snd_hdac_exec_verb(codec, reg | AC_AMP_SET_LEFT | left, 0, NULL); in hda_reg_write_stereo_amp()
|
/sound/isa/msnd/ |
D | msnd_pinnacle_mixer.c | 186 static int snd_msndmix_set(struct snd_msnd *dev, int d, int left, int right) in snd_msndmix_set() argument 195 bLeft = left * 0xff / 100; in snd_msndmix_set() 196 wLeft = left * 0xffff / 100; in snd_msndmix_set() 260 int left, right; in snd_msndmix_volume_put() local 263 left = ucontrol->value.integer.value[0] % 101; in snd_msndmix_volume_put() 266 change = msnd->left_levels[addr] != left in snd_msndmix_volume_put() 268 snd_msndmix_set(msnd, addr, left, right); in snd_msndmix_volume_put()
|
/sound/isa/sb/ |
D | sb_mixer.c | 132 unsigned char left, right; in snd_sbmixer_get_double() local 135 left = (snd_sbmixer_read(sb, left_reg) >> left_shift) & mask; in snd_sbmixer_get_double() 138 ucontrol->value.integer.value[0] = left; in snd_sbmixer_get_double() 153 unsigned char left, right, oleft, oright; in snd_sbmixer_put_double() local 155 left = (ucontrol->value.integer.value[0] & mask) << left_shift; in snd_sbmixer_put_double() 160 left = (oleft & ~((mask << left_shift) | (mask << right_shift))) | left | right; in snd_sbmixer_put_double() 161 change = left != oleft; in snd_sbmixer_put_double() 163 snd_sbmixer_write(sb, left_reg, left); in snd_sbmixer_put_double() 167 left = (oleft & ~(mask << left_shift)) | left; in snd_sbmixer_put_double() 169 change = left != oleft || right != oright; in snd_sbmixer_put_double() [all …]
|
/sound/pci/cs46xx/ |
D | dsp_spos.h | 220 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() 227 scb->volume[0] = left; in cs46xx_dsp_scb_set_volume()
|
D | cs46xx_lib.h | 208 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/ |
D | au88x0_a3d.c | 174 static void a3dsrc_SetHrtfOutput(a3dsrc_t * a, short left, short right) in a3dsrc_SetHrtfOutput() argument 178 a3d_addrA(a->slice, a->source, A3D_A_HrtfOutL), left); in a3dsrc_SetHrtfOutput() 235 static void a3dsrc_GetHrtfOutput(a3dsrc_t * a, short *left, short *right) 238 *left = 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) 362 *left = [all …]
|
D | au88x0_xtalk.c | 571 unsigned short left) in vortex_XtalkHw_SetDelay() argument 578 esp0 = (esp0 & 0xfffc1fff) | ((left & 0x1F) << 0xd); in vortex_XtalkHw_SetDelay() 608 unsigned short *left) 614 *left = (esp0 >> 0xd) & 0x1f;
|
/sound/isa/opti9xx/ |
D | miro.c | 488 int left, right, left_old, right_old; in snd_miro_put_double() local 492 left = ucontrol->value.integer.value[0]; in snd_miro_put_double() 519 if (left < -0x7f || left > 0x7f || in snd_miro_put_double() 528 if (left >= 0) { in snd_miro_put_double() 529 error = aci_setvalue(aci, setreg_left, left); in snd_miro_put_double() 532 left, error); in snd_miro_put_double() 536 error = aci_setvalue(aci, setreg_left, 0x80 - left); in snd_miro_put_double() 539 0x80 - left, error); in snd_miro_put_double() 564 if (left < 0 || left > 0x20 || in snd_miro_put_double() 571 error = aci_setvalue(aci, setreg_left, 0x20 - left); in snd_miro_put_double() [all …]
|
/sound/parisc/ |
D | harmony.c | 720 int left, right; in snd_harmony_volume_get() local 724 left = (h->st.gain >> shift_left) & mask; in snd_harmony_volume_get() 727 left = mask - left; in snd_harmony_volume_get() 731 ucontrol->value.integer.value[0] = left; in snd_harmony_volume_get() 749 int left, right; in snd_harmony_volume_put() local 754 left = ucontrol->value.integer.value[0] & mask; in snd_harmony_volume_put() 756 left = mask - left; in snd_harmony_volume_put() 758 h->st.gain |= (left << shift_left); in snd_harmony_volume_put()
|
/sound/drivers/ |
D | dummy.c | 762 int left, right; in snd_dummy_volume_put() local 764 left = ucontrol->value.integer.value[0]; in snd_dummy_volume_put() 765 if (left < -50) in snd_dummy_volume_put() 766 left = -50; in snd_dummy_volume_put() 767 if (left > 100) in snd_dummy_volume_put() 768 left = 100; in snd_dummy_volume_put() 775 change = dummy->mixer_volume[addr][0] != left || in snd_dummy_volume_put() 777 dummy->mixer_volume[addr][0] = left; in snd_dummy_volume_put() 810 int left, right; in snd_dummy_capsrc_put() local 812 left = ucontrol->value.integer.value[0] & 1; in snd_dummy_capsrc_put() [all …]
|
/sound/soc/codecs/ |
D | wm_hubs.c | 147 unsigned int left; member 157 unsigned int left, right; in wm_hubs_dcs_cache_get() local 159 left = snd_soc_read(codec, WM8993_LEFT_OUTPUT_VOLUME); in wm_hubs_dcs_cache_get() 160 left &= WM8993_HPOUT1L_VOL_MASK; in wm_hubs_dcs_cache_get() 166 if (cache->left != left || cache->right != right) in wm_hubs_dcs_cache_get() 188 cache->left = snd_soc_read(codec, WM8993_LEFT_OUTPUT_VOLUME); in wm_hubs_dcs_cache_set() 189 cache->left &= WM8993_HPOUT1L_VOL_MASK; in wm_hubs_dcs_cache_set() 266 cache->dcs_cfg, cache->left, cache->right); in enable_dc_servo()
|
/sound/oss/dmasound/ |
D | dmasound_paula.c | 168 u_char *left = &frame[*frameUsed>>1]; in ami_ct_s8() local 169 u_char *right = left+write_sq_block_size_half; in ami_ct_s8() 173 if (get_user(*left++, userPtr++) in ami_ct_s8() 207 u_char *left = &frame[*frameUsed>>1]; \ 208 u_char *right = left+write_sq_block_size_half; \ 215 *left++ = convsample(data); \
|
/sound/isa/gus/ |
D | gus_mixer.c | 95 unsigned char left, right; in snd_ics_get_double() local 98 left = gus->gf1.ics_regs[addr][0]; in snd_ics_get_double() 101 ucontrol->value.integer.value[0] = left & 127; in snd_ics_get_double()
|
/sound/aoa/codecs/ |
D | tas.c | 159 u8 left, right; in tas_set_volume() local 161 left = tas->cached_volume_l; in tas_set_volume() 164 if (left > 177) left = 177; in tas_set_volume() 167 if (tas->mute_l) left = 0; in tas_set_volume() 176 tmp = tas_gaintable[left]; in tas_set_volume()
|
/sound/mips/ |
D | hal2.h | 232 u32 left; /* Left volume */ member
|