Searched refs:left (Results 1 - 25 of 41) sorted by relevance

12

/sound/oss/
H A Dpas2_mixer.c84 int left = left_vol * div / 100; local
90 left |= mixer;
96 mix_write(left, 0x078B);
101 mix_write(left, 0x078B);
121 int left, right, devmask, changed, i, mixer = 0; local
125 left = level & 0x7f;
138 levels[whichDev] = mixer_output(right, left, 63, 0x01, 0);
142 * Note! Bass and Treble are mono devices. Will use just the left
146 levels[whichDev] = mixer_output(right, left, 12, 0x03, 0);
149 levels[whichDev] = mixer_output(right, left, 1
[all...]
H A Dsb_ess.h27 (sb_devc *devc, int dev, int left, int right);
H A Dsb_mixer.c273 int sb_common_mixer_set(sb_devc * devc, int dev, int left, int right) argument
287 change_bits(devc, &val, dev, LEFT_CHN, left);
299 return left | (left << 8); /*
300 * Just left channel present
311 return left | (right << 8);
314 static int smw_mixer_set(sb_devc * devc, int dev, int left, int right) argument
321 sb_setmixer(devc, 0x0b, 96 - (96 * left / 100)); /* 96=mute, 0=max */
327 devc->levels[dev] = left | (right << 8);
328 /* Set left bas
357 int left = value & 0x000000ff; local
[all...]
H A Dpss.c400 static void set_master_volume(pss_confdata *devc, int left, int right) argument
414 pss_write(devc, log_scale[left] | 0x0000);
462 unsigned int left, volume; local
466 left = volume & 0xff;
467 if (left > 100)
468 left = 100;
469 *aleft = left;
477 unsigned int left, right, volume; local
481 left = volume & 0xff;
482 if (left > 10
492 ret_vol_mono(int left) argument
497 ret_vol_stereo(int left, int right) argument
[all...]
H A 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
1693 left = value & 0x000000ff;
1696 sb_common_mixer_set(devc, dev, left, right);
1702 int value, left, right; local
1721 left = value & 0x000000ff;
1724 left = 0;
1727 sb_common_mixer_set(devc, i + ES_REC_MIXER_RECDIFF, left, righ
[all...]
H A Dwaveartist.c935 unsigned int mask, left, right; local
941 /* read left setting */
942 left = waveartist_cmd1_r(devc, WACMD_GET_LEVEL |
949 left = (left & ~mask) | (lev_left & mask);
952 /* write left,right back */
953 waveartist_cmd3(devc, WACMD_SET_MIXER, left, right);
1108 * left volume. (from ALSA driver OSS emulation).
1494 unsigned int left, right; local
1496 left
[all...]
H A Dmidi_synth.c485 unsigned long left, src_offs, eox_seen = 0; local
515 left = sysex.len;
518 for (i = 0; i < left && !signal_pending(current); i++)
H A Dsb.h174 int sb_common_mixer_set(sb_devc * devc, int dev, int left, int right);
/sound/core/oss/
H A Dmixer_oss.c255 int result = 0, left, right; local
260 left = pslot->volume[0];
263 result = pslot->get_volume(fmixer, pslot, &left, &right);
265 right = left;
266 if (snd_BUG_ON(left < 0 || left > 100))
271 pslot->volume[0] = left;
273 result = (left & 0xff) | ((right & 0xff) << 8);
283 int result = 0, left = volume & 0xff, right = (volume >> 8) & 0xff; local
288 if (left > 10
507 snd_mixer_oss_get_volume1_vol(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *pslot, unsigned int numid, int *left, int *right) argument
544 snd_mixer_oss_get_volume1_sw(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *pslot, unsigned int numid, int *left, int *right, int route) argument
583 snd_mixer_oss_get_volume1(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *pslot, int *left, int *right) argument
609 snd_mixer_oss_put_volume1_vol(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *pslot, unsigned int numid, int left, int right) argument
649 snd_mixer_oss_put_volume1_sw(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *pslot, unsigned int numid, int left, int right, int route) argument
694 snd_mixer_oss_put_volume1(struct snd_mixer_oss_file *fmixer, struct snd_mixer_oss_slot *pslot, int left, int right) argument
748 int left, right; local
761 int left, right; local
[all...]
/sound/pci/
H A Dak4531_codec.c165 int left, right; local
168 left = (ak4531->regs[left_reg] >> left_shift) & mask;
172 left = mask - left;
175 ucontrol->value.integer.value[0] = left;
190 int left, right; local
192 left = ucontrol->value.integer.value[0] & mask;
195 left = mask - left;
198 left <<
[all...]
/sound/isa/msnd/
H A Dmsnd_pinnacle_mixer.c192 static int snd_msndmix_set(struct snd_msnd *dev, int d, int left, int right) argument
201 bLeft = left * 0xff / 100;
202 wLeft = left * 0xffff / 100;
266 int left, right; local
269 left = ucontrol->value.integer.value[0] % 101;
272 change = msnd->left_levels[addr] != left
274 snd_msndmix_set(msnd, addr, left, right);
/sound/pci/cs46xx/
H A Ddsp_spos.h220 u16 left, u16 right)
222 unsigned int val = ((0xffff - left) << 16 | (0xffff - right));
227 scb->volume[0] = left;
218 cs46xx_dsp_scb_set_volume(struct snd_cs46xx * chip, struct dsp_scb_descriptor * scb, u16 left, u16 right) argument
H A 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/ctxfi/
H A Dctdaio.c43 unsigned short left; member in struct:daio_rsc_idx
48 [LINEO1] = {.left = 0x00, .right = 0x01},
49 [LINEO2] = {.left = 0x18, .right = 0x19},
50 [LINEO3] = {.left = 0x08, .right = 0x09},
51 [LINEO4] = {.left = 0x10, .right = 0x11},
52 [LINEIM] = {.left = 0x1b5, .right = 0x1bd},
53 [SPDIFOO] = {.left = 0x20, .right = 0x21},
54 [SPDIFIO] = {.left = 0x15, .right = 0x1d},
55 [SPDIFI1] = {.left = 0x95, .right = 0x9d},
59 [LINEO1] = {.left
[all...]
/sound/isa/sb/
H A Dsb_mixer.c132 unsigned char left, right; local
135 left = (snd_sbmixer_read(sb, left_reg) >> left_shift) & mask;
138 ucontrol->value.integer.value[0] = left;
153 unsigned char left, right, oleft, oright; local
155 left = (ucontrol->value.integer.value[0] & mask) << left_shift;
160 left = (oleft & ~((mask << left_shift) | (mask << right_shift))) | left | right;
161 change = left != oleft;
163 snd_sbmixer_write(sb, left_reg, left);
167 left
[all...]
/sound/pci/au88x0/
H A Dau88x0_a3d.c174 static void a3dsrc_SetHrtfOutput(a3dsrc_t * a, short left, short right) argument
178 a3d_addrA(a->slice, a->source, A3D_A_HrtfOutL), left);
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) argument
344 (right << 0x10) | left);
347 static void a3dsrc_SetGainCurrent(a3dsrc_t * a, short left, short right) argument
352 (right << 0x10) | left);
356 static void a3dsrc_GetGainTarget(a3dsrc_t * a, short *left, short *right)
362 *left
714 vortex_a3d_coord2ild(a3d_LRGains_t ild, int left, int right) argument
[all...]
/sound/drivers/
H A Ddummy.c759 int left, right; local
761 left = ucontrol->value.integer.value[0];
762 if (left < -50)
763 left = -50;
764 if (left > 100)
765 left = 100;
772 change = dummy->mixer_volume[addr][0] != left ||
774 dummy->mixer_volume[addr][0] = left;
807 int left, right; local
809 left
[all...]
/sound/isa/gus/
H A Dgus_mixer.c95 unsigned char left, right; local
98 left = gus->gf1.ics_regs[addr][0];
101 ucontrol->value.integer.value[0] = left & 127;
/sound/isa/opti9xx/
H A Dmiro.c487 int left, right, left_old, right_old; local
491 left = ucontrol->value.integer.value[0];
518 if (left < -0x7f || left > 0x7f ||
527 if (left >= 0) {
528 error = aci_setvalue(aci, setreg_left, left);
531 left, error);
535 error = aci_setvalue(aci, setreg_left, 0x80 - left);
538 0x80 - left, error);
563 if (left <
[all...]
/sound/parisc/
H A Dharmony.c720 int left, right; local
724 left = (h->st.gain >> shift_left) & mask;
727 left = mask - left;
731 ucontrol->value.integer.value[0] = left;
749 int left, right; local
754 left = ucontrol->value.integer.value[0] & mask;
756 left = mask - left;
758 h->st.gain |= (left << shift_lef
[all...]
/sound/oss/dmasound/
H A Ddmasound_paula.c168 u_char *left = &frame[*frameUsed>>1]; local
169 u_char *right = left+write_sq_block_size_half;
173 if (get_user(*left++, userPtr++)
207 u_char *left = &frame[*frameUsed>>1]; \
208 u_char *right = left+write_sq_block_size_half; \
215 *left++ = convsample(data); \
/sound/mips/
H A Dhal2.h158 #define H2I_C2_L_GAIN_SHIFT 4 /* left a/d input gain */
161 #define H2I_C2_L_SEL 0x200 /* left input select */
167 #define H2I_C2_L_ATT_SHIFT 23 /* left d/a output - */
232 u32 left; /* Left volume */ member in struct:hal2_vol_regs
/sound/aoa/codecs/
H A Dtas.c159 u8 left, right; local
161 left = tas->cached_volume_l;
164 if (left > 177) left = 177;
167 if (tas->mute_l) left = 0;
176 tmp = tas_gaintable[left];
/sound/drivers/vx/
H A Dvx_mixer.c103 * @left: left output level, 0 = mute
106 static void vx_set_analog_output_level(struct vx_core *chip, int codec, int left, int right) argument
108 left = chip->hw->output_level_max - left;
112 chip->ops->akm_write(chip, XX_CODEC_LEVEL_LEFT_REGISTER, left);
116 vx_set_codec_reg(chip, codec, XX_CODEC_LEVEL_LEFT_REGISTER, left);
/sound/isa/es1688/
H A Des1688_lib.c878 unsigned char left, right; local
882 left = snd_es1688_mixer_read(chip, left_reg);
884 left = snd_es1688_read(chip, left_reg);
891 right = left;
893 ucontrol->value.integer.value[0] = (left >> shift_left) & mask;

Completed in 284 milliseconds

12