/sound/pcmcia/pdaudiocf/ |
D | pdaudiocf_irq.c | 51 register u16 val1, val2; in pdacf_transfer_mono32() local 55 val2 = inw(rdp_port); in pdacf_transfer_mono32() 57 *dst++ = ((((u32)val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor; in pdacf_transfer_mono32() 71 register u16 val1, val2, val3; in pdacf_transfer_stereo32() local 75 val2 = inw(rdp_port); in pdacf_transfer_stereo32() 77 *dst++ = ((((u32)val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor; in pdacf_transfer_stereo32() 78 *dst++ = (((u32)val3 << 16) | (val2 & 0xff00)) ^ xor; in pdacf_transfer_stereo32() 92 register u16 val1, val2; in pdacf_transfer_mono32sw() local 96 val2 = inw(rdp_port); in pdacf_transfer_mono32sw() 98 *dst++ = swab32((((val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor); in pdacf_transfer_mono32sw() [all …]
|
/sound/isa/cs423x/ |
D | cs4236_lib.c | 551 unsigned short val1, val2; in snd_cs4236_put_double() local 554 val2 = ucontrol->value.integer.value[1] & mask; in snd_cs4236_put_double() 557 val2 = mask - val2; in snd_cs4236_put_double() 560 val2 <<= shift_right; in snd_cs4236_put_double() 564 val2 = (chip->eimage[CS4236_REG(right_reg)] & ~(mask << shift_right)) | val2; in snd_cs4236_put_double() 565 …change = val1 != chip->eimage[CS4236_REG(left_reg)] || val2 != chip->eimage[CS4236_REG(right_reg)]; in snd_cs4236_put_double() 567 snd_cs4236_ext_out(chip, right_reg, val2); in snd_cs4236_put_double() 569 …hip->eimage[CS4236_REG(left_reg)] & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_cs4236_put_double() 627 unsigned short val1, val2; in snd_cs4236_put_double1() local 630 val2 = ucontrol->value.integer.value[1] & mask; in snd_cs4236_put_double1() [all …]
|
/sound/isa/gus/ |
D | gus_mixer.c | 97 unsigned char val1, val2, oval1, oval2; in snd_ics_put_double() local 100 val2 = ucontrol->value.integer.value[1] & 127; in snd_ics_put_double() 104 change = val1 != oval1 || val2 != oval2; in snd_ics_put_double() 106 gus->gf1.ics_regs[addr][1] = val2; in snd_ics_put_double() 109 swap(val1, val2); in snd_ics_put_double() 118 outb((unsigned char) val2, GUSP(gus, MIXDATAPORT)); in snd_ics_put_double()
|
D | gus_pcm.c | 776 unsigned short val1, val2, vol; in snd_gf1_pcm_volume_put() local 781 val2 = ucontrol->value.integer.value[1] & 127; in snd_gf1_pcm_volume_put() 784 val2 != gus->gf1.pcm_volume_level_right1; in snd_gf1_pcm_volume_put() 786 gus->gf1.pcm_volume_level_right1 = val2; in snd_gf1_pcm_volume_put() 788 gus->gf1.pcm_volume_level_right = snd_gf1_lvol_to_gvol_raw(val2 << 9) << 4; in snd_gf1_pcm_volume_put()
|
/sound/soc/codecs/ |
D | 88pm860x-codec.c | 275 int val[2], val2[2], i; in snd_soc_get_volsw_2r_st() local 279 val2[0] = snd_soc_component_read32(component, reg2) & 0x3f; in snd_soc_get_volsw_2r_st() 280 val2[1] = (snd_soc_component_read32(component, PM860X_SIDETONE_SHIFT)) & 0xf; in snd_soc_get_volsw_2r_st() 285 if ((st_table[i].m == val2[0]) && (st_table[i].n == val2[1])) in snd_soc_get_volsw_2r_st() 300 unsigned int val, val2; in snd_soc_put_volsw_2r_st() local 303 val2 = ucontrol->value.integer.value[1]; in snd_soc_put_volsw_2r_st() 305 if (val >= ARRAY_SIZE(st_table) || val2 >= ARRAY_SIZE(st_table)) in snd_soc_put_volsw_2r_st() 316 err = snd_soc_component_update_bits(component, reg2, 0x3f, st_table[val2].m); in snd_soc_put_volsw_2r_st() 320 st_table[val2].n); in snd_soc_put_volsw_2r_st() 333 int max = mc->max, val, val2; in snd_soc_get_volsw_2r_out() local [all …]
|
D | twl4030.c | 866 unsigned short val, val2, val_mask; in snd_soc_put_volsw_twl4030() local 875 val2 = (ucontrol->value.integer.value[1] & mask); in snd_soc_put_volsw_twl4030() 877 if (val2) in snd_soc_put_volsw_twl4030() 878 val2 = max + 1 - val2; in snd_soc_put_volsw_twl4030() 879 val |= val2 << rshift; in snd_soc_put_volsw_twl4030() 923 unsigned short val, val2, val_mask; in snd_soc_put_volsw_r2_twl4030() local 927 val2 = (ucontrol->value.integer.value[1] & mask); in snd_soc_put_volsw_r2_twl4030() 931 if (val2) in snd_soc_put_volsw_r2_twl4030() 932 val2 = max + 1 - val2; in snd_soc_put_volsw_r2_twl4030() 935 val2 = val2 << shift; in snd_soc_put_volsw_r2_twl4030() [all …]
|
D | rt5514.c | 966 unsigned int val = 0, val2 = 0; in rt5514_set_tdm_slot() local 973 val2 |= RT5514_TDM_DOCKING_MODE | RT5514_TDM_DOCKING_VALID_CH2 | in rt5514_set_tdm_slot() 978 val2 |= RT5514_TDM_DOCKING_MODE | RT5514_TDM_DOCKING_VALID_CH2 | in rt5514_set_tdm_slot() 983 val2 |= RT5514_TDM_DOCKING_MODE | RT5514_TDM_DOCKING_VALID_CH4 | in rt5514_set_tdm_slot() 988 val2 |= RT5514_TDM_DOCKING_MODE | RT5514_TDM_DOCKING_VALID_CH4 | in rt5514_set_tdm_slot() 1045 RT5514_TDM_DOCKING_START_MASK, val2); in rt5514_set_tdm_slot()
|
D | cs35l33.c | 273 unsigned int val, val2; in cs35l33_sdout_event() local 281 val2 = 0; in cs35l33_sdout_event() 286 val2 = CS35L33_SDOUT_3ST_TDM; in cs35l33_sdout_event() 292 val2 = CS35L33_SDOUT_3ST_TDM; in cs35l33_sdout_event() 303 mask2, val2); in cs35l33_sdout_event()
|
/sound/soc/ |
D | soc-ops.c | 319 unsigned int val2 = 0; in snd_soc_put_volsw() local 331 val2 = ((ucontrol->value.integer.value[1] + min) & mask); in snd_soc_put_volsw() 333 val2 = max - val2; in snd_soc_put_volsw() 336 val |= val2 << rshift; in snd_soc_put_volsw() 338 val2 = val2 << shift; in snd_soc_put_volsw() 348 val2); in snd_soc_put_volsw() 423 unsigned int val, val_mask, val2 = 0; in snd_soc_put_volsw_sx() local 435 val2 = (ucontrol->value.integer.value[1] + min) & mask; in snd_soc_put_volsw_sx() 436 val2 = val2 << rshift; in snd_soc_put_volsw_sx() 439 val2); in snd_soc_put_volsw_sx() [all …]
|
/sound/pci/ice1712/ |
D | wm8766.c | 210 u16 val1, val2; in snd_wm8766_ctl_get() local 213 wm->ctl[n].get(wm, &val1, &val2); in snd_wm8766_ctl_get() 218 val2 = wm->regs[wm->ctl[n].reg2] & wm->ctl[n].mask2; in snd_wm8766_ctl_get() 219 val2 >>= __ffs(wm->ctl[n].mask2); in snd_wm8766_ctl_get() 221 val2 &= ~WM8766_VOL_UPDATE; in snd_wm8766_ctl_get() 227 val2 = wm->ctl[n].max - (val2 - wm->ctl[n].min); in snd_wm8766_ctl_get() 231 ucontrol->value.integer.value[1] = val2; in snd_wm8766_ctl_get()
|
D | wm8776.c | 484 u16 val1, val2; in snd_wm8776_ctl_get() local 487 wm->ctl[n].get(wm, &val1, &val2); in snd_wm8776_ctl_get() 492 val2 = wm->regs[wm->ctl[n].reg2] & wm->ctl[n].mask2; in snd_wm8776_ctl_get() 493 val2 >>= __ffs(wm->ctl[n].mask2); in snd_wm8776_ctl_get() 495 val2 &= ~WM8776_VOL_UPDATE; in snd_wm8776_ctl_get() 501 val2 = wm->ctl[n].max - (val2 - wm->ctl[n].min); in snd_wm8776_ctl_get() 505 ucontrol->value.integer.value[1] = val2; in snd_wm8776_ctl_get()
|
/sound/i2c/ |
D | tea6330t.c | 99 unsigned char val1, val2; in snd_tea6330t_put_master_volume() local 102 val2 = (ucontrol->value.integer.value[1] % 44) + 0x14; in snd_tea6330t_put_master_volume() 104 change = val1 != tea->mleft || val2 != tea->mright; in snd_tea6330t_put_master_volume() 106 tea->mright = val2; in snd_tea6330t_put_master_volume() 150 unsigned char oval1, oval2, val1, val2; in snd_tea6330t_put_master_switch() local 153 val2 = ucontrol->value.integer.value[1] & 1; in snd_tea6330t_put_master_switch() 157 change = val1 != oval1 || val2 != oval2; in snd_tea6330t_put_master_switch() 159 tea->regs[TEA6330T_SADDR_VOLUME_RIGHT] = val2 ? tea->mright : 0; in snd_tea6330t_put_master_switch()
|
/sound/isa/sb/ |
D | sb_mixer.c | 392 unsigned char val1, val2; in snd_sb16mixer_get_input_sw() local 396 val2 = snd_sbmixer_read(sb, reg2); in snd_sb16mixer_get_input_sw() 399 ucontrol->value.integer.value[1] = (val2 >> left_shift) & 0x01; in snd_sb16mixer_get_input_sw() 401 ucontrol->value.integer.value[3] = (val2 >> right_shift) & 0x01; in snd_sb16mixer_get_input_sw() 414 unsigned char val1, val2, oval1, oval2; in snd_sb16mixer_put_input_sw() local 420 val2 = oval2 & ~((1 << left_shift) | (1 << right_shift)); in snd_sb16mixer_put_input_sw() 422 val2 |= (ucontrol->value.integer.value[1] & 1) << left_shift; in snd_sb16mixer_put_input_sw() 424 val2 |= (ucontrol->value.integer.value[3] & 1) << right_shift; in snd_sb16mixer_put_input_sw() 425 change = val1 != oval1 || val2 != oval2; in snd_sb16mixer_put_input_sw() 428 snd_sbmixer_write(sb, reg2, val2); in snd_sb16mixer_put_input_sw()
|
/sound/soc/sh/rcar/ |
D | ssiu.c | 67 u32 val1, val2; in rsnd_ssiu_init() local 98 val2 = rsnd_mod_read(mod, SSI_MODE2); in rsnd_ssiu_init() 118 val2 |= (1 << 4); in rsnd_ssiu_init() 135 val2 |= is_clk_master ? 0x2 : 0x1; in rsnd_ssiu_init() 138 rsnd_mod_bset(mod, SSI_MODE2, 0x00000017, val2); in rsnd_ssiu_init()
|
/sound/isa/ |
D | opl3sa2.c | 428 unsigned short val1, val2, oval1, oval2; in snd_opl3sa2_put_double() local 431 val2 = ucontrol->value.integer.value[1] & mask; in snd_opl3sa2_put_double() 434 val2 = mask - val2; in snd_opl3sa2_put_double() 437 val2 <<= shift_right; in snd_opl3sa2_put_double() 443 val2 = (oval2 & ~(mask << shift_right)) | val2; in snd_opl3sa2_put_double() 444 change = val1 != oval1 || val2 != oval2; in snd_opl3sa2_put_double() 446 __snd_opl3sa2_write(chip, right_reg, val2); in snd_opl3sa2_put_double() 449 val1 = (oval1 & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_opl3sa2_put_double()
|
D | es18xx.c | 1229 unsigned char val1, val2, mask1, mask2; in snd_es18xx_put_double() local 1232 val2 = ucontrol->value.integer.value[1] & mask; in snd_es18xx_put_double() 1235 val2 = mask - val2; in snd_es18xx_put_double() 1238 val2 <<= shift_right; in snd_es18xx_put_double() 1245 if (snd_es18xx_reg_bits(chip, right_reg, mask2, val2) != val2) in snd_es18xx_put_double() 1249 val1 | val2) != (val1 | val2)); in snd_es18xx_put_double()
|
/sound/pci/ |
D | ak4531_codec.c | 238 int val1, val2; in snd_ak4531_put_input_sw() local 242 val2 = ak4531->regs[reg2] & ~((1 << left_shift) | (1 << right_shift)); in snd_ak4531_put_input_sw() 244 val2 |= (ucontrol->value.integer.value[1] & 1) << left_shift; in snd_ak4531_put_input_sw() 246 val2 |= (ucontrol->value.integer.value[3] & 1) << right_shift; in snd_ak4531_put_input_sw() 247 change = val1 != ak4531->regs[reg1] || val2 != ak4531->regs[reg2]; in snd_ak4531_put_input_sw() 249 ak4531->write(ak4531, reg2, ak4531->regs[reg2] = val2); in snd_ak4531_put_input_sw()
|
D | sonicvibes.c | 1048 unsigned short val1, val2, oval1, oval2; in snd_sonicvibes_put_double() local 1051 val2 = ucontrol->value.integer.value[1] & mask; in snd_sonicvibes_put_double() 1054 val2 = mask - val2; in snd_sonicvibes_put_double() 1057 val2 <<= shift_right; in snd_sonicvibes_put_double() 1062 val2 = (oval2 & ~(mask << shift_right)) | val2; in snd_sonicvibes_put_double() 1063 change = val1 != oval1 || val2 != oval2; in snd_sonicvibes_put_double() 1065 snd_sonicvibes_out1(sonic, right_reg, val2); in snd_sonicvibes_put_double()
|
D | es1938.c | 1283 unsigned char val1, val2, mask1, mask2; in snd_es1938_put_double() local 1286 val2 = ucontrol->value.integer.value[1] & mask; in snd_es1938_put_double() 1289 val2 = mask - val2; in snd_es1938_put_double() 1292 val2 <<= shift_right; in snd_es1938_put_double() 1299 if (snd_es1938_reg_bits(chip, right_reg, mask2, val2) != val2) in snd_es1938_put_double() 1303 val1 | val2) != (val1 | val2)); in snd_es1938_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 | 898 unsigned char val1, val2, oval1, oval2; in snd_es1688_put_double() local 901 val2 = ucontrol->value.integer.value[1] & mask; in snd_es1688_put_double() 904 val2 = mask - val2; in snd_es1688_put_double() 907 val2 <<= shift_right; in snd_es1688_put_double() 919 val2 = (oval2 & ~(mask << shift_right)) | val2; in snd_es1688_put_double() 920 change = val1 != oval1 || val2 != oval2; in snd_es1688_put_double() 936 val1 = (oval1 & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_es1688_put_double()
|
/sound/isa/ad1816a/ |
D | ad1816a_lib.c | 879 unsigned short old_val, val1, val2; in snd_ad1816a_put_double() local 882 val2 = ucontrol->value.integer.value[1] & mask; in snd_ad1816a_put_double() 885 val2 = mask - val2; in snd_ad1816a_put_double() 888 val2 <<= shift_right; in snd_ad1816a_put_double() 891 val1 = (old_val & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_ad1816a_put_double()
|
/sound/pci/lola/ |
D | lola_mixer.c | 547 unsigned int val1, val2; in lola_analog_vol_tlv() local 554 val2 = pin->amp_step_size * 25; in lola_analog_vol_tlv() 555 val1 = -1 * (int)pin->amp_offset * (int)val2; in lola_analog_vol_tlv() 557 val2 |= TLV_DB_SCALE_MUTE; in lola_analog_vol_tlv() 565 if (put_user(val2, tlv + 3)) in lola_analog_vol_tlv()
|
/sound/isa/wss/ |
D | wss_lib.c | 2146 unsigned short val1, val2; in snd_wss_put_double() local 2149 val2 = ucontrol->value.integer.value[1] & mask; in snd_wss_put_double() 2152 val2 = mask - val2; in snd_wss_put_double() 2155 val2 <<= shift_right; in snd_wss_put_double() 2159 val2 = (chip->image[right_reg] & ~(mask << shift_right)) | val2; in snd_wss_put_double() 2161 val2 != chip->image[right_reg]; in snd_wss_put_double() 2163 snd_wss_out(chip, right_reg, val2); in snd_wss_put_double() 2166 val1 = (chip->image[left_reg] & ~mask) | val1 | val2; in snd_wss_put_double()
|
/sound/sparc/ |
D | cs4231.c | 1458 unsigned short val1, val2; in snd_cs4231_put_double() local 1461 val2 = ucontrol->value.integer.value[1] & mask; in snd_cs4231_put_double() 1464 val2 = mask - val2; in snd_cs4231_put_double() 1467 val2 <<= shift_right; in snd_cs4231_put_double() 1472 val2 = (chip->image[right_reg] & ~(mask << shift_right)) | val2; in snd_cs4231_put_double() 1474 change |= val2 != chip->image[right_reg]; in snd_cs4231_put_double() 1476 snd_cs4231_out(chip, right_reg, val2); in snd_cs4231_put_double()
|