/sound/pcmcia/pdaudiocf/ |
D | pdaudiocf_irq.c | 64 register u16 val1, val2; in pdacf_transfer_mono32() local 68 val2 = inw(rdp_port); in pdacf_transfer_mono32() 70 *dst++ = ((((u32)val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor; in pdacf_transfer_mono32() 84 register u16 val1, val2, val3; in pdacf_transfer_stereo32() local 88 val2 = inw(rdp_port); in pdacf_transfer_stereo32() 90 *dst++ = ((((u32)val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor; in pdacf_transfer_stereo32() 91 *dst++ = (((u32)val3 << 16) | (val2 & 0xff00)) ^ xor; in pdacf_transfer_stereo32() 105 register u16 val1, val2; in pdacf_transfer_mono32sw() local 109 val2 = inw(rdp_port); in pdacf_transfer_mono32sw() 111 *dst++ = swab32((((val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor); in pdacf_transfer_mono32sw() [all …]
|
/sound/isa/cs423x/ |
D | cs4236_lib.c | 565 unsigned short val1, val2; in snd_cs4236_put_double() local 568 val2 = ucontrol->value.integer.value[1] & mask; in snd_cs4236_put_double() 571 val2 = mask - val2; in snd_cs4236_put_double() 574 val2 <<= shift_right; in snd_cs4236_put_double() 578 val2 = (chip->eimage[CS4236_REG(right_reg)] & ~(mask << shift_right)) | val2; in snd_cs4236_put_double() 579 …change = val1 != chip->eimage[CS4236_REG(left_reg)] || val2 != chip->eimage[CS4236_REG(right_reg)]; in snd_cs4236_put_double() 581 snd_cs4236_ext_out(chip, right_reg, val2); in snd_cs4236_put_double() 583 …hip->eimage[CS4236_REG(left_reg)] & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_cs4236_put_double() 641 unsigned short val1, val2; in snd_cs4236_put_double1() local 644 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; 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() 124 swap(val1, val2); in snd_ics_put_double() 133 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/soc/sh/rcar/ |
D | ssiu.c | 34 u32 mask2, val2; in rsnd_ssiu_init() local 46 val1 = val2 = 0; in rsnd_ssiu_init() 79 val2 = (1 << 4) | /* SSI0129 sync */ in rsnd_ssiu_init() 86 if (!val2) /* SSI012 sync */ in rsnd_ssiu_init() 92 rsnd_mod_bset(mod, SSI_MODE2, mask2, val2); in rsnd_ssiu_init()
|
/sound/soc/codecs/ |
D | 88pm860x-codec.c | 278 int val[2], val2[2], i; in snd_soc_get_volsw_2r_st() local 282 val2[0] = snd_soc_read(codec, reg2) & 0x3f; in snd_soc_get_volsw_2r_st() 283 val2[1] = (snd_soc_read(codec, PM860X_SIDETONE_SHIFT)) & 0xf; in snd_soc_get_volsw_2r_st() 288 if ((st_table[i].m == val2[0]) && (st_table[i].n == val2[1])) in snd_soc_get_volsw_2r_st() 303 unsigned int val, val2; in snd_soc_put_volsw_2r_st() local 306 val2 = ucontrol->value.integer.value[1]; in snd_soc_put_volsw_2r_st() 308 if (val >= ARRAY_SIZE(st_table) || val2 >= ARRAY_SIZE(st_table)) in snd_soc_put_volsw_2r_st() 319 err = snd_soc_update_bits(codec, reg2, 0x3f, st_table[val2].m); in snd_soc_put_volsw_2r_st() 323 st_table[val2].n); in snd_soc_put_volsw_2r_st() 336 int max = mc->max, val, val2; in snd_soc_get_volsw_2r_out() local [all …]
|
D | twl4030.c | 881 unsigned short val, val2, val_mask; in snd_soc_put_volsw_twl4030() local 890 val2 = (ucontrol->value.integer.value[1] & mask); in snd_soc_put_volsw_twl4030() 892 if (val2) in snd_soc_put_volsw_twl4030() 893 val2 = max + 1 - val2; in snd_soc_put_volsw_twl4030() 894 val |= val2 << rshift; in snd_soc_put_volsw_twl4030() 938 unsigned short val, val2, val_mask; in snd_soc_put_volsw_r2_twl4030() local 942 val2 = (ucontrol->value.integer.value[1] & mask); in snd_soc_put_volsw_r2_twl4030() 946 if (val2) in snd_soc_put_volsw_r2_twl4030() 947 val2 = max + 1 - val2; in snd_soc_put_volsw_r2_twl4030() 950 val2 = val2 << shift; in snd_soc_put_volsw_r2_twl4030() [all …]
|
D | cs35l33.c | 277 unsigned int val, val2; in cs35l33_sdout_event() local 285 val2 = 0; in cs35l33_sdout_event() 290 val2 = CS35L33_SDOUT_3ST_TDM; in cs35l33_sdout_event() 296 val2 = CS35L33_SDOUT_3ST_TDM; in cs35l33_sdout_event() 307 mask2, val2); in cs35l33_sdout_event()
|
/sound/soc/ |
D | soc-ops.c | 324 unsigned int val2 = 0; in snd_soc_put_volsw() local 336 val2 = ((ucontrol->value.integer.value[1] + min) & mask); in snd_soc_put_volsw() 338 val2 = max - val2; in snd_soc_put_volsw() 341 val |= val2 << rshift; in snd_soc_put_volsw() 343 val2 = val2 << shift; in snd_soc_put_volsw() 353 val2); in snd_soc_put_volsw() 428 unsigned int val, val_mask, val2 = 0; in snd_soc_put_volsw_sx() local 440 val2 = (ucontrol->value.integer.value[1] + min) & mask; in snd_soc_put_volsw_sx() 441 val2 = val2 << rshift; in snd_soc_put_volsw_sx() 444 val2); in snd_soc_put_volsw_sx() [all …]
|
/sound/pci/ice1712/ |
D | wm8766.c | 224 u16 val1, val2; in snd_wm8766_ctl_get() local 227 wm->ctl[n].get(wm, &val1, &val2); in snd_wm8766_ctl_get() 232 val2 = wm->regs[wm->ctl[n].reg2] & wm->ctl[n].mask2; in snd_wm8766_ctl_get() 233 val2 >>= __ffs(wm->ctl[n].mask2); in snd_wm8766_ctl_get() 235 val2 &= ~WM8766_VOL_UPDATE; in snd_wm8766_ctl_get() 241 val2 = wm->ctl[n].max - (val2 - wm->ctl[n].min); in snd_wm8766_ctl_get() 245 ucontrol->value.integer.value[1] = val2; in snd_wm8766_ctl_get()
|
D | wm8776.c | 498 u16 val1, val2; in snd_wm8776_ctl_get() local 501 wm->ctl[n].get(wm, &val1, &val2); in snd_wm8776_ctl_get() 506 val2 = wm->regs[wm->ctl[n].reg2] & wm->ctl[n].mask2; in snd_wm8776_ctl_get() 507 val2 >>= __ffs(wm->ctl[n].mask2); in snd_wm8776_ctl_get() 509 val2 &= ~WM8776_VOL_UPDATE; in snd_wm8776_ctl_get() 515 val2 = wm->ctl[n].max - (val2 - wm->ctl[n].min); in snd_wm8776_ctl_get() 519 ucontrol->value.integer.value[1] = val2; in snd_wm8776_ctl_get()
|
/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/isa/sb/ |
D | sb_mixer.c | 407 unsigned char val1, val2; in snd_sb16mixer_get_input_sw() local 411 val2 = snd_sbmixer_read(sb, reg2); in snd_sb16mixer_get_input_sw() 414 ucontrol->value.integer.value[1] = (val2 >> left_shift) & 0x01; in snd_sb16mixer_get_input_sw() 416 ucontrol->value.integer.value[3] = (val2 >> right_shift) & 0x01; in snd_sb16mixer_get_input_sw() 429 unsigned char val1, val2, oval1, oval2; in snd_sb16mixer_put_input_sw() local 435 val2 = oval2 & ~((1 << left_shift) | (1 << right_shift)); in snd_sb16mixer_put_input_sw() 437 val2 |= (ucontrol->value.integer.value[1] & 1) << left_shift; in snd_sb16mixer_put_input_sw() 439 val2 |= (ucontrol->value.integer.value[3] & 1) << right_shift; in snd_sb16mixer_put_input_sw() 440 change = val1 != oval1 || val2 != oval2; in snd_sb16mixer_put_input_sw() 443 snd_sbmixer_write(sb, reg2, val2); in snd_sb16mixer_put_input_sw()
|
/sound/isa/ |
D | opl3sa2.c | 443 unsigned short val1, val2, oval1, oval2; in snd_opl3sa2_put_double() local 446 val2 = ucontrol->value.integer.value[1] & mask; in snd_opl3sa2_put_double() 449 val2 = mask - val2; in snd_opl3sa2_put_double() 452 val2 <<= shift_right; in snd_opl3sa2_put_double() 458 val2 = (oval2 & ~(mask << shift_right)) | val2; in snd_opl3sa2_put_double() 459 change = val1 != oval1 || val2 != oval2; in snd_opl3sa2_put_double() 461 __snd_opl3sa2_write(chip, right_reg, val2); in snd_opl3sa2_put_double() 464 val1 = (oval1 & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_opl3sa2_put_double()
|
D | es18xx.c | 1243 unsigned char val1, val2, mask1, mask2; in snd_es18xx_put_double() local 1246 val2 = ucontrol->value.integer.value[1] & mask; in snd_es18xx_put_double() 1249 val2 = mask - val2; in snd_es18xx_put_double() 1252 val2 <<= shift_right; in snd_es18xx_put_double() 1259 if (snd_es18xx_reg_bits(chip, right_reg, mask2, val2) != val2) in snd_es18xx_put_double() 1263 val1 | val2) != (val1 | val2)); in snd_es18xx_put_double()
|
/sound/pci/ |
D | ak4531_codec.c | 253 int val1, val2; in snd_ak4531_put_input_sw() local 257 val2 = ak4531->regs[reg2] & ~((1 << left_shift) | (1 << right_shift)); in snd_ak4531_put_input_sw() 259 val2 |= (ucontrol->value.integer.value[1] & 1) << left_shift; in snd_ak4531_put_input_sw() 261 val2 |= (ucontrol->value.integer.value[3] & 1) << right_shift; in snd_ak4531_put_input_sw() 262 change = val1 != ak4531->regs[reg1] || val2 != ak4531->regs[reg2]; in snd_ak4531_put_input_sw() 264 ak4531->write(ak4531, reg2, ak4531->regs[reg2] = val2); in snd_ak4531_put_input_sw()
|
D | sonicvibes.c | 1062 unsigned short val1, val2, oval1, oval2; in snd_sonicvibes_put_double() local 1065 val2 = ucontrol->value.integer.value[1] & mask; in snd_sonicvibes_put_double() 1068 val2 = mask - val2; in snd_sonicvibes_put_double() 1071 val2 <<= shift_right; in snd_sonicvibes_put_double() 1076 val2 = (oval2 & ~(mask << shift_right)) | val2; in snd_sonicvibes_put_double() 1077 change = val1 != oval1 || val2 != oval2; in snd_sonicvibes_put_double() 1079 snd_sonicvibes_out1(sonic, right_reg, val2); in snd_sonicvibes_put_double()
|
D | es1938.c | 1281 unsigned char val1, val2, mask1, mask2; in snd_es1938_put_double() local 1284 val2 = ucontrol->value.integer.value[1] & mask; in snd_es1938_put_double() 1287 val2 = mask - val2; in snd_es1938_put_double() 1290 val2 <<= shift_right; in snd_es1938_put_double() 1297 if (snd_es1938_reg_bits(chip, right_reg, mask2, val2) != val2) in snd_es1938_put_double() 1301 val1 | val2) != (val1 | val2)); in snd_es1938_put_double()
|
/sound/spi/ |
D | at73c213.c | 515 unsigned short val1, val2; in snd_at73c213_stereo_put() local 518 val2 = ucontrol->value.integer.value[1] & mask; in snd_at73c213_stereo_put() 521 val2 = mask - val2; in snd_at73c213_stereo_put() 524 val2 <<= shift_right; in snd_at73c213_stereo_put() 529 val2 = (chip->reg_image[right_reg] & ~(mask << shift_right)) | val2; in snd_at73c213_stereo_put() 531 || val2 != chip->reg_image[right_reg]; in snd_at73c213_stereo_put() 537 retval = snd_at73c213_write_reg(chip, right_reg, val2); in snd_at73c213_stereo_put()
|
/sound/isa/es1688/ |
D | es1688_lib.c | 915 unsigned char val1, val2, oval1, oval2; in snd_es1688_put_double() local 918 val2 = ucontrol->value.integer.value[1] & mask; in snd_es1688_put_double() 921 val2 = mask - val2; in snd_es1688_put_double() 924 val2 <<= shift_right; in snd_es1688_put_double() 936 val2 = (oval2 & ~(mask << shift_right)) | val2; in snd_es1688_put_double() 937 change = val1 != oval1 || val2 != oval2; in snd_es1688_put_double() 953 val1 = (oval1 & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_es1688_put_double()
|
/sound/oss/ |
D | sb_ess.c | 964 int val1, val2; in FKS_test() local 967 val2 = ess_getmixer (devc, 0x64) ^ ~val1; in FKS_test() 970 printk (KERN_INFO "FKS: FKS_test %02x, %02x\n", (val1 & 0x0ff), (val2 & 0x0ff)); in FKS_test() 1002 int val1, val2, val3; in ess_probe() local 1005 val2 = val1 ^ xorval; in ess_probe() 1006 ess_setmixer (devc, reg, val2); in ess_probe() 1010 return (val2 == val3); in ess_probe()
|
/sound/isa/ad1816a/ |
D | ad1816a_lib.c | 891 unsigned short old_val, val1, val2; in snd_ad1816a_put_double() local 894 val2 = ucontrol->value.integer.value[1] & mask; in snd_ad1816a_put_double() 897 val2 = mask - val2; in snd_ad1816a_put_double() 900 val2 <<= shift_right; in snd_ad1816a_put_double() 903 val1 = (old_val & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_ad1816a_put_double()
|
/sound/pci/lola/ |
D | lola_mixer.c | 560 unsigned int val1, val2; in lola_analog_vol_tlv() local 567 val2 = pin->amp_step_size * 25; in lola_analog_vol_tlv() 568 val1 = -1 * (int)pin->amp_offset * (int)val2; in lola_analog_vol_tlv() 570 val2 |= TLV_DB_SCALE_MUTE; in lola_analog_vol_tlv() 578 if (put_user(val2, tlv + 3)) in lola_analog_vol_tlv()
|
/sound/isa/wss/ |
D | wss_lib.c | 2163 unsigned short val1, val2; in snd_wss_put_double() local 2166 val2 = ucontrol->value.integer.value[1] & mask; in snd_wss_put_double() 2169 val2 = mask - val2; in snd_wss_put_double() 2172 val2 <<= shift_right; in snd_wss_put_double() 2176 val2 = (chip->image[right_reg] & ~(mask << shift_right)) | val2; in snd_wss_put_double() 2178 val2 != chip->image[right_reg]; in snd_wss_put_double() 2180 snd_wss_out(chip, right_reg, val2); in snd_wss_put_double() 2183 val1 = (chip->image[left_reg] & ~mask) | val1 | val2; in snd_wss_put_double()
|
/sound/sparc/ |
D | cs4231.c | 1461 unsigned short val1, val2; in snd_cs4231_put_double() local 1464 val2 = ucontrol->value.integer.value[1] & mask; in snd_cs4231_put_double() 1467 val2 = mask - val2; in snd_cs4231_put_double() 1470 val2 <<= shift_right; in snd_cs4231_put_double() 1475 val2 = (chip->image[right_reg] & ~(mask << shift_right)) | val2; in snd_cs4231_put_double() 1477 change |= val2 != chip->image[right_reg]; in snd_cs4231_put_double() 1479 snd_cs4231_out(chip, right_reg, val2); in snd_cs4231_put_double()
|