/sound/pcmcia/pdaudiocf/ |
D | pdaudiocf_irq.c | 63 register u16 val1, val2; in pdacf_transfer_mono32() local 67 val2 = 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 87 val2 = inw(rdp_port); in pdacf_transfer_stereo32() 89 *dst++ = ((((u32)val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor; in pdacf_transfer_stereo32() 90 *dst++ = (((u32)val3 << 16) | (val2 & 0xff00)) ^ xor; in pdacf_transfer_stereo32() 104 register u16 val1, val2; in pdacf_transfer_mono32sw() local 108 val2 = inw(rdp_port); in pdacf_transfer_mono32sw() 110 *dst++ = swab32((((val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor); in pdacf_transfer_mono32sw() [all …]
|
/sound/isa/cs423x/ |
D | cs4236_lib.c | 568 unsigned short val1, val2; in snd_cs4236_put_double() local 571 val2 = ucontrol->value.integer.value[1] & mask; in snd_cs4236_put_double() 574 val2 = mask - val2; in snd_cs4236_put_double() 577 val2 <<= shift_right; in snd_cs4236_put_double() 581 val2 = (chip->eimage[CS4236_REG(right_reg)] & ~(mask << shift_right)) | val2; 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() 584 snd_cs4236_ext_out(chip, right_reg, val2); in snd_cs4236_put_double() 586 …hip->eimage[CS4236_REG(left_reg)] & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_cs4236_put_double() 644 unsigned short val1, val2; in snd_cs4236_put_double1() local 647 val2 = ucontrol->value.integer.value[1] & mask; in snd_cs4236_put_double1() [all …]
|
/sound/isa/gus/ |
D | gus_mixer.c | 112 unsigned char val1, val2, oval1, oval2, tmp; in snd_ics_put_double() local 115 val2 = ucontrol->value.integer.value[1] & 127; in snd_ics_put_double() 119 change = val1 != oval1 || val2 != oval2; in snd_ics_put_double() 121 gus->gf1.ics_regs[addr][1] = val2; in snd_ics_put_double() 125 val1 = val2; in snd_ics_put_double() 126 val2 = tmp; in snd_ics_put_double() 136 outb((unsigned char) val2, GUSP(gus, MIXDATAPORT)); in snd_ics_put_double()
|
D | gus_pcm.c | 774 unsigned short val1, val2, vol; in snd_gf1_pcm_volume_put() local 779 val2 = ucontrol->value.integer.value[1] & 127; in snd_gf1_pcm_volume_put() 782 val2 != gus->gf1.pcm_volume_level_right1; in snd_gf1_pcm_volume_put() 784 gus->gf1.pcm_volume_level_right1 = val2; in snd_gf1_pcm_volume_put() 786 gus->gf1.pcm_volume_level_right = snd_gf1_lvol_to_gvol_raw(val2 << 9) << 4; in snd_gf1_pcm_volume_put()
|
/sound/i2c/ |
D | tea6330t.c | 114 unsigned char val1, val2; in snd_tea6330t_put_master_volume() local 117 val2 = (ucontrol->value.integer.value[1] % 44) + 0x14; in snd_tea6330t_put_master_volume() 119 change = val1 != tea->mleft || val2 != tea->mright; in snd_tea6330t_put_master_volume() 121 tea->mright = val2; in snd_tea6330t_put_master_volume() 165 unsigned char oval1, oval2, val1, val2; in snd_tea6330t_put_master_switch() local 168 val2 = ucontrol->value.integer.value[1] & 1; in snd_tea6330t_put_master_switch() 172 change = val1 != oval1 || val2 != oval2; in snd_tea6330t_put_master_switch() 174 tea->regs[TEA6330T_SADDR_VOLUME_RIGHT] = val2 ? tea->mright : 0; in snd_tea6330t_put_master_switch()
|
/sound/soc/codecs/ |
D | 88pm860x-codec.c | 324 int val[2], val2[2], i; in snd_soc_get_volsw_2r_st() local 328 val2[0] = snd_soc_read(codec, reg2) & 0x3f; in snd_soc_get_volsw_2r_st() 329 val2[1] = (snd_soc_read(codec, PM860X_SIDETONE_SHIFT)) & 0xf; in snd_soc_get_volsw_2r_st() 334 if ((st_table[i].m == val2[0]) && (st_table[i].n == val2[1])) in snd_soc_get_volsw_2r_st() 349 unsigned int val, val2; in snd_soc_put_volsw_2r_st() local 352 val2 = ucontrol->value.integer.value[1]; in snd_soc_put_volsw_2r_st() 362 err = snd_soc_update_bits(codec, reg2, 0x3f, st_table[val2].m); in snd_soc_put_volsw_2r_st() 366 st_table[val2].n); in snd_soc_put_volsw_2r_st() 379 int max = mc->max, val, val2; in snd_soc_get_volsw_2r_out() local 383 val2 = snd_soc_read(codec, reg2) >> shift; in snd_soc_get_volsw_2r_out() [all …]
|
D | twl4030.c | 987 unsigned short val, val2, val_mask; in snd_soc_put_volsw_twl4030() local 996 val2 = (ucontrol->value.integer.value[1] & mask); in snd_soc_put_volsw_twl4030() 998 if (val2) in snd_soc_put_volsw_twl4030() 999 val2 = max + 1 - val2; in snd_soc_put_volsw_twl4030() 1000 val |= val2 << rshift; in snd_soc_put_volsw_twl4030() 1044 unsigned short val, val2, val_mask; in snd_soc_put_volsw_r2_twl4030() local 1048 val2 = (ucontrol->value.integer.value[1] & mask); in snd_soc_put_volsw_r2_twl4030() 1052 if (val2) in snd_soc_put_volsw_r2_twl4030() 1053 val2 = max + 1 - val2; in snd_soc_put_volsw_r2_twl4030() 1056 val2 = val2 << shift; in snd_soc_put_volsw_r2_twl4030() [all …]
|
D | max9877.c | 108 unsigned int val2 = (ucontrol->value.integer.value[1] & mask); in max9877_set_2reg() local 114 if (((max9877_regs[reg2] >> shift) & mask) != val2) in max9877_set_2reg() 121 max9877_regs[reg2] |= val2 << shift; in max9877_set_2reg()
|
/sound/pci/ice1712/ |
D | wm8766.c | 240 u16 val1, val2; in snd_wm8766_ctl_get() local 243 wm->ctl[n].get(wm, &val1, &val2); in snd_wm8766_ctl_get() 248 val2 = wm->regs[wm->ctl[n].reg2] & wm->ctl[n].mask2; in snd_wm8766_ctl_get() 249 val2 >>= __ffs(wm->ctl[n].mask2); in snd_wm8766_ctl_get() 251 val2 &= ~WM8766_VOL_UPDATE; in snd_wm8766_ctl_get() 256 val2 = wm->ctl[n].max - (val2 - wm->ctl[n].min); in snd_wm8766_ctl_get() 260 ucontrol->value.integer.value[1] = val2; in snd_wm8766_ctl_get()
|
D | wm8776.c | 513 u16 val1, val2; in snd_wm8776_ctl_get() local 516 wm->ctl[n].get(wm, &val1, &val2); in snd_wm8776_ctl_get() 521 val2 = wm->regs[wm->ctl[n].reg2] & wm->ctl[n].mask2; in snd_wm8776_ctl_get() 522 val2 >>= __ffs(wm->ctl[n].mask2); in snd_wm8776_ctl_get() 524 val2 &= ~WM8776_VOL_UPDATE; in snd_wm8776_ctl_get() 529 val2 = wm->ctl[n].max - (val2 - wm->ctl[n].min); in snd_wm8776_ctl_get() 533 ucontrol->value.integer.value[1] = val2; in snd_wm8776_ctl_get()
|
/sound/isa/sb/ |
D | sb_mixer.c | 426 unsigned char val1, val2; in snd_sb16mixer_get_input_sw() local 430 val2 = snd_sbmixer_read(sb, reg2); in snd_sb16mixer_get_input_sw() 433 ucontrol->value.integer.value[1] = (val2 >> left_shift) & 0x01; in snd_sb16mixer_get_input_sw() 435 ucontrol->value.integer.value[3] = (val2 >> right_shift) & 0x01; in snd_sb16mixer_get_input_sw() 448 unsigned char val1, val2, oval1, oval2; in snd_sb16mixer_put_input_sw() local 454 val2 = oval2 & ~((1 << left_shift) | (1 << right_shift)); in snd_sb16mixer_put_input_sw() 456 val2 |= (ucontrol->value.integer.value[1] & 1) << left_shift; in snd_sb16mixer_put_input_sw() 458 val2 |= (ucontrol->value.integer.value[3] & 1) << right_shift; in snd_sb16mixer_put_input_sw() 459 change = val1 != oval1 || val2 != oval2; in snd_sb16mixer_put_input_sw() 462 snd_sbmixer_write(sb, reg2, val2); in snd_sb16mixer_put_input_sw()
|
/sound/isa/ |
D | opl3sa2.c | 444 unsigned short val1, val2, oval1, oval2; in snd_opl3sa2_put_double() local 447 val2 = ucontrol->value.integer.value[1] & mask; in snd_opl3sa2_put_double() 450 val2 = mask - val2; in snd_opl3sa2_put_double() 453 val2 <<= shift_right; in snd_opl3sa2_put_double() 459 val2 = (oval2 & ~(mask << shift_right)) | val2; in snd_opl3sa2_put_double() 460 change = val1 != oval1 || val2 != oval2; in snd_opl3sa2_put_double() 462 __snd_opl3sa2_write(chip, right_reg, val2); in snd_opl3sa2_put_double() 465 val1 = (oval1 & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_opl3sa2_put_double()
|
D | es18xx.c | 1241 unsigned char val1, val2, mask1, mask2; in snd_es18xx_put_double() local 1244 val2 = ucontrol->value.integer.value[1] & mask; in snd_es18xx_put_double() 1247 val2 = mask - val2; in snd_es18xx_put_double() 1250 val2 <<= shift_right; in snd_es18xx_put_double() 1257 if (snd_es18xx_reg_bits(chip, right_reg, mask2, val2) != val2) in snd_es18xx_put_double() 1261 val1 | val2) != (val1 | val2)); in snd_es18xx_put_double()
|
/sound/pci/ |
D | ak4531_codec.c | 257 int val1, val2; in snd_ak4531_put_input_sw() local 261 val2 = ak4531->regs[reg2] & ~((1 << left_shift) | (1 << right_shift)); in snd_ak4531_put_input_sw() 263 val2 |= (ucontrol->value.integer.value[1] & 1) << left_shift; in snd_ak4531_put_input_sw() 265 val2 |= (ucontrol->value.integer.value[3] & 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() 268 ak4531->write(ak4531, reg2, ak4531->regs[reg2] = val2); in snd_ak4531_put_input_sw()
|
D | sonicvibes.c | 1069 unsigned short val1, val2, oval1, oval2; in snd_sonicvibes_put_double() local 1072 val2 = ucontrol->value.integer.value[1] & mask; in snd_sonicvibes_put_double() 1075 val2 = mask - val2; in snd_sonicvibes_put_double() 1078 val2 <<= shift_right; in snd_sonicvibes_put_double() 1083 val2 = (oval2 & ~(mask << shift_right)) | val2; in snd_sonicvibes_put_double() 1084 change = val1 != oval1 || val2 != oval2; in snd_sonicvibes_put_double() 1086 snd_sonicvibes_out1(sonic, right_reg, val2); in snd_sonicvibes_put_double()
|
D | es1938.c | 1299 unsigned char val1, val2, mask1, mask2; in snd_es1938_put_double() local 1302 val2 = ucontrol->value.integer.value[1] & mask; in snd_es1938_put_double() 1305 val2 = mask - val2; in snd_es1938_put_double() 1308 val2 <<= shift_right; in snd_es1938_put_double() 1315 if (snd_es1938_reg_bits(chip, right_reg, mask2, val2) != val2) in snd_es1938_put_double() 1319 val1 | val2) != (val1 | val2)); in snd_es1938_put_double()
|
D | fm801.c | 930 unsigned short val1, val2; in snd_fm801_put_double() local 933 val2 = ucontrol->value.integer.value[1] & mask; in snd_fm801_put_double() 936 val2 = mask - val2; in snd_fm801_put_double() 940 (val1 << shift_left ) | (val2 << shift_right)); in snd_fm801_put_double()
|
/sound/spi/ |
D | at73c213.c | 512 unsigned short val1, val2; in snd_at73c213_stereo_put() local 515 val2 = ucontrol->value.integer.value[1] & mask; in snd_at73c213_stereo_put() 518 val2 = mask - val2; in snd_at73c213_stereo_put() 521 val2 <<= shift_right; in snd_at73c213_stereo_put() 526 val2 = (chip->reg_image[right_reg] & ~(mask << shift_right)) | val2; in snd_at73c213_stereo_put() 528 || val2 != chip->reg_image[right_reg]; in snd_at73c213_stereo_put() 534 retval = snd_at73c213_write_reg(chip, right_reg, val2); in snd_at73c213_stereo_put()
|
/sound/isa/es1688/ |
D | es1688_lib.c | 926 unsigned char val1, val2, oval1, oval2; in snd_es1688_put_double() local 929 val2 = ucontrol->value.integer.value[1] & mask; in snd_es1688_put_double() 932 val2 = mask - val2; in snd_es1688_put_double() 935 val2 <<= shift_right; in snd_es1688_put_double() 947 val2 = (oval2 & ~(mask << shift_right)) | val2; in snd_es1688_put_double() 948 change = val1 != oval1 || val2 != oval2; in snd_es1688_put_double() 964 val1 = (oval1 & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_es1688_put_double()
|
/sound/oss/ |
D | sb_ess.c | 968 int val1, val2; in FKS_test() local 971 val2 = ess_getmixer (devc, 0x64) ^ ~val1; 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 1009 val2 = val1 ^ xorval; in ess_probe() 1010 ess_setmixer (devc, reg, val2); in ess_probe() 1014 return (val2 == val3); in ess_probe()
|
/sound/isa/ad1816a/ |
D | ad1816a_lib.c | 902 unsigned short old_val, val1, val2; in snd_ad1816a_put_double() local 905 val2 = ucontrol->value.integer.value[1] & mask; in snd_ad1816a_put_double() 908 val2 = mask - val2; in snd_ad1816a_put_double() 911 val2 <<= shift_right; in snd_ad1816a_put_double() 914 val1 = (old_val & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_ad1816a_put_double()
|
/sound/pci/lola/ |
D | lola_mixer.c | 559 unsigned int val1, val2; in lola_analog_vol_tlv() local 566 val2 = pin->amp_step_size * 25; in lola_analog_vol_tlv() 567 val1 = -1 * (int)pin->amp_offset * (int)val2; in lola_analog_vol_tlv() 569 val2 |= TLV_DB_SCALE_MUTE; in lola_analog_vol_tlv() 577 if (put_user(val2, tlv + 3)) in lola_analog_vol_tlv()
|
/sound/isa/wss/ |
D | wss_lib.c | 2173 unsigned short val1, val2; in snd_wss_put_double() local 2176 val2 = ucontrol->value.integer.value[1] & mask; in snd_wss_put_double() 2179 val2 = mask - val2; in snd_wss_put_double() 2182 val2 <<= shift_right; in snd_wss_put_double() 2186 val2 = (chip->image[right_reg] & ~(mask << shift_right)) | val2; in snd_wss_put_double() 2188 val2 != chip->image[right_reg]; in snd_wss_put_double() 2190 snd_wss_out(chip, right_reg, val2); in snd_wss_put_double() 2193 val1 = (chip->image[left_reg] & ~mask) | val1 | val2; in snd_wss_put_double()
|
/sound/sparc/ |
D | cs4231.c | 1462 unsigned short val1, val2; in snd_cs4231_put_double() local 1465 val2 = ucontrol->value.integer.value[1] & mask; in snd_cs4231_put_double() 1468 val2 = mask - val2; in snd_cs4231_put_double() 1471 val2 <<= shift_right; in snd_cs4231_put_double() 1476 val2 = (chip->image[right_reg] & ~(mask << shift_right)) | val2; in snd_cs4231_put_double() 1478 change |= val2 != chip->image[right_reg]; in snd_cs4231_put_double() 1480 snd_cs4231_out(chip, right_reg, val2); in snd_cs4231_put_double()
|
/sound/soc/ |
D | soc-core.c | 2717 unsigned int val2 = 0; in snd_soc_put_volsw() local 2726 val2 = (ucontrol->value.integer.value[1] & mask); in snd_soc_put_volsw() 2728 val2 = max - val2; in snd_soc_put_volsw() 2731 val |= val2 << rshift; in snd_soc_put_volsw() 2733 val2 = val2 << shift; in snd_soc_put_volsw() 2742 err = snd_soc_update_bits_locked(codec, reg2, val_mask, val2); in snd_soc_put_volsw() 2808 unsigned short val, val_mask, val2 = 0; in snd_soc_put_volsw_sx() local 2820 val2 = (ucontrol->value.integer.value[1] + min) & mask; in snd_soc_put_volsw_sx() 2821 val2 = val2 << rshift; in snd_soc_put_volsw_sx() 2823 if (snd_soc_update_bits_locked(codec, reg2, val_mask, val2)) in snd_soc_put_volsw_sx() [all …]
|