Home
last modified time | relevance | path

Searched refs:val1 (Results 1 – 25 of 32) sorted by relevance

12

/sound/pcmcia/pdaudiocf/
Dpdaudiocf_irq.c63 register u16 val1, val2; in pdacf_transfer_mono32() local
66 val1 = inw(rdp_port); in pdacf_transfer_mono32()
69 *dst++ = ((((u32)val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor; in pdacf_transfer_mono32()
83 register u16 val1, val2, val3; in pdacf_transfer_stereo32() local
86 val1 = inw(rdp_port); in pdacf_transfer_stereo32()
89 *dst++ = ((((u32)val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor; in pdacf_transfer_stereo32()
104 register u16 val1, val2; in pdacf_transfer_mono32sw() local
107 val1 = inw(rdp_port); in pdacf_transfer_mono32sw()
110 *dst++ = swab32((((val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor); in pdacf_transfer_mono32sw()
124 register u16 val1, val2, val3; in pdacf_transfer_stereo32sw() local
[all …]
/sound/i2c/
Dtea6330t.c114 unsigned char val1, val2; in snd_tea6330t_put_master_volume() local
116 val1 = (ucontrol->value.integer.value[0] % 44) + 0x14; in snd_tea6330t_put_master_volume()
119 change = val1 != tea->mleft || val2 != tea->mright; in snd_tea6330t_put_master_volume()
120 tea->mleft = val1; in snd_tea6330t_put_master_volume()
165 unsigned char oval1, oval2, val1, val2; in snd_tea6330t_put_master_switch() local
167 val1 = ucontrol->value.integer.value[0] & 1; in snd_tea6330t_put_master_switch()
172 change = val1 != oval1 || val2 != oval2; in snd_tea6330t_put_master_switch()
173 tea->regs[TEA6330T_SADDR_VOLUME_LEFT] = val1 ? tea->mleft : 0; in snd_tea6330t_put_master_switch()
216 unsigned char val1; in snd_tea6330t_put_bass() local
218 val1 = ucontrol->value.integer.value[0] % (tea->max_bass + 1); in snd_tea6330t_put_bass()
[all …]
/sound/isa/cs423x/
Dcs4236_lib.c568 unsigned short val1, val2; in snd_cs4236_put_double() local
570 val1 = ucontrol->value.integer.value[0] & mask; in snd_cs4236_put_double()
573 val1 = mask - val1; in snd_cs4236_put_double()
576 val1 <<= shift_left; in snd_cs4236_put_double()
580 val1 = (chip->eimage[CS4236_REG(left_reg)] & ~(mask << shift_left)) | val1; in snd_cs4236_put_double()
582 …change = val1 != chip->eimage[CS4236_REG(left_reg)] || val2 != chip->eimage[CS4236_REG(right_reg)]; in snd_cs4236_put_double()
583 snd_cs4236_ext_out(chip, left_reg, val1); in snd_cs4236_put_double()
586val1 = (chip->eimage[CS4236_REG(left_reg)] & ~((mask << shift_left) | (mask << shift_right))) | va… in snd_cs4236_put_double()
587 change = val1 != chip->eimage[CS4236_REG(left_reg)]; in snd_cs4236_put_double()
588 snd_cs4236_ext_out(chip, left_reg, val1); in snd_cs4236_put_double()
[all …]
/sound/i2c/other/
Dpt2258.c112 int val0, val1; in pt2258_stereo_volume_put() local
115 val1 = 79 - ucontrol->value.integer.value[1]; in pt2258_stereo_volume_put()
116 if (val0 < 0 || val0 > 79 || val1 < 0 || val1 > 79) in pt2258_stereo_volume_put()
118 if (val0 == pt->volume[base] && val1 == pt->volume[base + 1]) in pt2258_stereo_volume_put()
129 pt->volume[base + 1] = val1; in pt2258_stereo_volume_put()
130 bytes[0] = pt2258_channel_code[2 * base + 2] | (val1 / 10); in pt2258_stereo_volume_put()
131 bytes[1] = pt2258_channel_code[2 * base + 3] | (val1 % 10); in pt2258_stereo_volume_put()
/sound/isa/sb/
Demu8000.c856 unsigned short val1; in mixer_bass_treble_put() local
858 val1 = ucontrol->value.integer.value[0] % 12; in mixer_bass_treble_put()
861 change = val1 != emu->treble_level; in mixer_bass_treble_put()
862 emu->treble_level = val1; in mixer_bass_treble_put()
864 change = val1 != emu->bass_level; in mixer_bass_treble_put()
865 emu->bass_level = val1; in mixer_bass_treble_put()
917 unsigned short val1; in mixer_chorus_reverb_put() local
921 val1 = ucontrol->value.integer.value[0] % SNDRV_EMU8000_CHORUS_NUMBERS; in mixer_chorus_reverb_put()
922 change = val1 != emu->chorus_mode; in mixer_chorus_reverb_put()
923 emu->chorus_mode = val1; in mixer_chorus_reverb_put()
[all …]
Dsb_mixer.c426 unsigned char val1, val2; in snd_sb16mixer_get_input_sw() local
429 val1 = snd_sbmixer_read(sb, reg1); in snd_sb16mixer_get_input_sw()
432 ucontrol->value.integer.value[0] = (val1 >> left_shift) & 0x01; in snd_sb16mixer_get_input_sw()
434 ucontrol->value.integer.value[2] = (val1 >> right_shift) & 0x01; in snd_sb16mixer_get_input_sw()
448 unsigned char val1, val2, oval1, oval2; in snd_sb16mixer_put_input_sw() local
453 val1 = oval1 & ~((1 << left_shift) | (1 << right_shift)); in snd_sb16mixer_put_input_sw()
455 val1 |= (ucontrol->value.integer.value[0] & 1) << left_shift; in snd_sb16mixer_put_input_sw()
457 val1 |= (ucontrol->value.integer.value[2] & 1) << right_shift; in snd_sb16mixer_put_input_sw()
459 change = val1 != oval1 || val2 != oval2; in snd_sb16mixer_put_input_sw()
461 snd_sbmixer_write(sb, reg1, val1); in snd_sb16mixer_put_input_sw()
/sound/isa/gus/
Dgus_mixer.c112 unsigned char val1, val2, oval1, oval2, tmp; in snd_ics_put_double() local
114 val1 = ucontrol->value.integer.value[0] & 127; in snd_ics_put_double()
119 change = val1 != oval1 || val2 != oval2; in snd_ics_put_double()
120 gus->gf1.ics_regs[addr][0] = val1; in snd_ics_put_double()
124 tmp = val1; in snd_ics_put_double()
125 val1 = val2; in snd_ics_put_double()
132 outb((unsigned char) val1, GUSP(gus, MIXDATAPORT)); in snd_ics_put_double()
Dgus_pcm.c774 unsigned short val1, val2, vol; in snd_gf1_pcm_volume_put() local
778 val1 = ucontrol->value.integer.value[0] & 127; in snd_gf1_pcm_volume_put()
781 change = val1 != gus->gf1.pcm_volume_level_left1 || in snd_gf1_pcm_volume_put()
783 gus->gf1.pcm_volume_level_left1 = val1; in snd_gf1_pcm_volume_put()
785 gus->gf1.pcm_volume_level_left = snd_gf1_lvol_to_gvol_raw(val1 << 9) << 4; in snd_gf1_pcm_volume_put()
/sound/isa/es1688/
Des1688_lib.c926 unsigned char val1, val2, oval1, oval2; in snd_es1688_put_double() local
928 val1 = ucontrol->value.integer.value[0] & mask; in snd_es1688_put_double()
931 val1 = mask - val1; in snd_es1688_put_double()
934 val1 <<= shift_left; in snd_es1688_put_double()
946 val1 = (oval1 & ~(mask << shift_left)) | val1; in snd_es1688_put_double()
948 change = val1 != oval1 || val2 != oval2; in snd_es1688_put_double()
951 snd_es1688_mixer_write(chip, left_reg, val1); in snd_es1688_put_double()
953 snd_es1688_write(chip, left_reg, val1); in snd_es1688_put_double()
955 snd_es1688_mixer_write(chip, right_reg, val1); in snd_es1688_put_double()
957 snd_es1688_write(chip, right_reg, val1); in snd_es1688_put_double()
[all …]
/sound/pci/ice1712/
Dwm8766.c240 u16 val1, val2; in snd_wm8766_ctl_get() local
243 wm->ctl[n].get(wm, &val1, &val2); in snd_wm8766_ctl_get()
245 val1 = wm->regs[wm->ctl[n].reg1] & wm->ctl[n].mask1; in snd_wm8766_ctl_get()
246 val1 >>= __ffs(wm->ctl[n].mask1); in snd_wm8766_ctl_get()
255 val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min); in snd_wm8766_ctl_get()
258 ucontrol->value.integer.value[0] = val1; in snd_wm8766_ctl_get()
Dwm8776.c513 u16 val1, val2; in snd_wm8776_ctl_get() local
516 wm->ctl[n].get(wm, &val1, &val2); in snd_wm8776_ctl_get()
518 val1 = wm->regs[wm->ctl[n].reg1] & wm->ctl[n].mask1; in snd_wm8776_ctl_get()
519 val1 >>= __ffs(wm->ctl[n].mask1); in snd_wm8776_ctl_get()
528 val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min); in snd_wm8776_ctl_get()
531 ucontrol->value.integer.value[0] = val1; in snd_wm8776_ctl_get()
/sound/isa/
Dopl3sa2.c444 unsigned short val1, val2, oval1, oval2; in snd_opl3sa2_put_double() local
446 val1 = ucontrol->value.integer.value[0] & mask; in snd_opl3sa2_put_double()
449 val1 = mask - val1; in snd_opl3sa2_put_double()
452 val1 <<= shift_left; in snd_opl3sa2_put_double()
458 val1 = (oval1 & ~(mask << shift_left)) | val1; in snd_opl3sa2_put_double()
460 change = val1 != oval1 || val2 != oval2; in snd_opl3sa2_put_double()
461 __snd_opl3sa2_write(chip, left_reg, val1); in snd_opl3sa2_put_double()
465 val1 = (oval1 & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_opl3sa2_put_double()
466 change = val1 != oval1; in snd_opl3sa2_put_double()
467 __snd_opl3sa2_write(chip, left_reg, val1); in snd_opl3sa2_put_double()
Des18xx.c1241 unsigned char val1, val2, mask1, mask2; in snd_es18xx_put_double() local
1243 val1 = ucontrol->value.integer.value[0] & mask; in snd_es18xx_put_double()
1246 val1 = mask - val1; in snd_es18xx_put_double()
1249 val1 <<= shift_left; in snd_es18xx_put_double()
1255 if (snd_es18xx_reg_bits(chip, left_reg, mask1, val1) != val1) in snd_es18xx_put_double()
1261 val1 | val2) != (val1 | val2)); in snd_es18xx_put_double()
/sound/oss/
Dsb_ess.c968 int val1, val2; in FKS_test() local
969 val1 = ess_getmixer (devc, 0x64); in FKS_test()
970 ess_setmixer (devc, 0x64, ~val1); in FKS_test()
971 val2 = ess_getmixer (devc, 0x64) ^ ~val1; in FKS_test()
972 ess_setmixer (devc, 0x64, val1); in FKS_test()
973 val1 ^= ess_getmixer (devc, 0x64); in FKS_test()
974 printk (KERN_INFO "FKS: FKS_test %02x, %02x\n", (val1 & 0x0ff), (val2 & 0x0ff)); in FKS_test()
1006 int val1, val2, val3; in ess_probe() local
1008 val1 = ess_getmixer (devc, reg); in ess_probe()
1009 val2 = val1 ^ xorval; in ess_probe()
[all …]
/sound/pci/
Dak4531_codec.c257 int val1, val2; in snd_ak4531_put_input_sw() local
260 val1 = ak4531->regs[reg1] & ~((1 << left_shift) | (1 << right_shift)); in snd_ak4531_put_input_sw()
262 val1 |= (ucontrol->value.integer.value[0] & 1) << left_shift; in snd_ak4531_put_input_sw()
264 val1 |= (ucontrol->value.integer.value[2] & 1) << right_shift; in snd_ak4531_put_input_sw()
266 change = val1 != ak4531->regs[reg1] || val2 != ak4531->regs[reg2]; in snd_ak4531_put_input_sw()
267 ak4531->write(ak4531, reg1, ak4531->regs[reg1] = val1); in snd_ak4531_put_input_sw()
Dsonicvibes.c1069 unsigned short val1, val2, oval1, oval2; in snd_sonicvibes_put_double() local
1071 val1 = ucontrol->value.integer.value[0] & mask; in snd_sonicvibes_put_double()
1074 val1 = mask - val1; in snd_sonicvibes_put_double()
1077 val1 <<= shift_left; in snd_sonicvibes_put_double()
1082 val1 = (oval1 & ~(mask << shift_left)) | val1; in snd_sonicvibes_put_double()
1084 change = val1 != oval1 || val2 != oval2; in snd_sonicvibes_put_double()
1085 snd_sonicvibes_out1(sonic, left_reg, val1); in snd_sonicvibes_put_double()
Des1938.c1299 unsigned char val1, val2, mask1, mask2; in snd_es1938_put_double() local
1301 val1 = ucontrol->value.integer.value[0] & mask; in snd_es1938_put_double()
1304 val1 = mask - val1; in snd_es1938_put_double()
1307 val1 <<= shift_left; in snd_es1938_put_double()
1313 if (snd_es1938_reg_bits(chip, left_reg, mask1, val1) != val1) in snd_es1938_put_double()
1319 val1 | val2) != (val1 | val2)); in snd_es1938_put_double()
Dfm801.c930 unsigned short val1, val2; in snd_fm801_put_double() local
932 val1 = ucontrol->value.integer.value[0] & mask; in snd_fm801_put_double()
935 val1 = mask - val1; in snd_fm801_put_double()
940 (val1 << shift_left ) | (val2 << shift_right)); in snd_fm801_put_double()
Dcmipci.c2135 int val1, val2; in snd_cmipci_get_input_sw() local
2139 val1 = snd_cmipci_mixer_read(cm, reg.left_reg); in snd_cmipci_get_input_sw()
2142 ucontrol->value.integer.value[0] = (val1 >> reg.left_shift) & 1; in snd_cmipci_get_input_sw()
2144 ucontrol->value.integer.value[2] = (val1 >> reg.right_shift) & 1; in snd_cmipci_get_input_sw()
2155 int val1, val2, oval1, oval2; in snd_cmipci_put_input_sw() local
2161 val1 = oval1 & ~((1 << reg.left_shift) | (1 << reg.right_shift)); in snd_cmipci_put_input_sw()
2163 val1 |= (ucontrol->value.integer.value[0] & 1) << reg.left_shift; in snd_cmipci_put_input_sw()
2165 val1 |= (ucontrol->value.integer.value[2] & 1) << reg.right_shift; in snd_cmipci_put_input_sw()
2167 change = val1 != oval1 || val2 != oval2; in snd_cmipci_put_input_sw()
2168 snd_cmipci_mixer_write(cm, reg.left_reg, val1); in snd_cmipci_put_input_sw()
/sound/spi/
Dat73c213.c512 unsigned short val1, val2; in snd_at73c213_stereo_put() local
514 val1 = ucontrol->value.integer.value[0] & mask; in snd_at73c213_stereo_put()
517 val1 = mask - val1; in snd_at73c213_stereo_put()
520 val1 <<= shift_left; in snd_at73c213_stereo_put()
525 val1 = (chip->reg_image[left_reg] & ~(mask << shift_left)) | val1; in snd_at73c213_stereo_put()
527 change = val1 != chip->reg_image[left_reg] in snd_at73c213_stereo_put()
529 retval = snd_at73c213_write_reg(chip, left_reg, val1); in snd_at73c213_stereo_put()
/sound/pci/emu10k1/
Demuproc.c188 unsigned int val, val1; in snd_emu10k1_proc_read() local
204 val1 = emu->audigy ? in snd_emu10k1_proc_read()
215 val1 & 0x3f, in snd_emu10k1_proc_read()
216 (val1 >> 8) & 0x3f, in snd_emu10k1_proc_read()
217 (val1 >> 16) & 0x3f, in snd_emu10k1_proc_read()
218 (val1 >> 24) & 0x3f); in snd_emu10k1_proc_read()
/sound/isa/ad1816a/
Dad1816a_lib.c902 unsigned short old_val, val1, val2; in snd_ad1816a_put_double() local
904 val1 = ucontrol->value.integer.value[0] & mask; in snd_ad1816a_put_double()
907 val1 = mask - val1; in snd_ad1816a_put_double()
910 val1 <<= shift_left; in snd_ad1816a_put_double()
914 val1 = (old_val & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_ad1816a_put_double()
915 change = val1 != old_val; in snd_ad1816a_put_double()
916 snd_ad1816a_write(chip, reg, val1); in snd_ad1816a_put_double()
/sound/isa/wss/
Dwss_lib.c2173 unsigned short val1, val2; in snd_wss_put_double() local
2175 val1 = ucontrol->value.integer.value[0] & mask; in snd_wss_put_double()
2178 val1 = mask - val1; in snd_wss_put_double()
2181 val1 <<= shift_left; in snd_wss_put_double()
2185 val1 = (chip->image[left_reg] & ~(mask << shift_left)) | val1; in snd_wss_put_double()
2187 change = val1 != chip->image[left_reg] || in snd_wss_put_double()
2189 snd_wss_out(chip, left_reg, val1); in snd_wss_put_double()
2193 val1 = (chip->image[left_reg] & ~mask) | val1 | val2; in snd_wss_put_double()
2194 change = val1 != chip->image[left_reg]; in snd_wss_put_double()
2195 snd_wss_out(chip, left_reg, val1); in snd_wss_put_double()
/sound/sparc/
Dcs4231.c1462 unsigned short val1, val2; in snd_cs4231_put_double() local
1464 val1 = ucontrol->value.integer.value[0] & mask; in snd_cs4231_put_double()
1467 val1 = mask - val1; in snd_cs4231_put_double()
1470 val1 <<= shift_left; in snd_cs4231_put_double()
1475 val1 = (chip->image[left_reg] & ~(mask << shift_left)) | val1; in snd_cs4231_put_double()
1477 change = val1 != chip->image[left_reg]; in snd_cs4231_put_double()
1479 snd_cs4231_out(chip, left_reg, val1); in snd_cs4231_put_double()
/sound/pci/ac97/
Dac97_codec.c969 unsigned short val1, val2; in snd_ac97_ad18xx_pcm_put_volume() local
971 val1 = 31 - (ucontrol->value.integer.value[0] & 31); in snd_ac97_ad18xx_pcm_put_volume()
973 return snd_ac97_ad18xx_update_pcm_bits(ac97, codec, 0x1f1f, (val1 << 8) | val2); in snd_ac97_ad18xx_pcm_put_volume()
1149 unsigned short val, val1; in snd_ac97_change_volume_params2() local
1154 val1 = snd_ac97_read(ac97, reg); in snd_ac97_change_volume_params2()
1155 if (val != val1) { in snd_ac97_change_volume_params2()
1191 unsigned short val, val1, mute_mask; in snd_ac97_cmute_new_stereo() local
1200 val1 = val | AC97_MUTE_MASK_STEREO; in snd_ac97_cmute_new_stereo()
1201 snd_ac97_write(ac97, reg, val1); in snd_ac97_cmute_new_stereo()
1202 if (val1 == snd_ac97_read(ac97, reg)) in snd_ac97_cmute_new_stereo()

12