Home
last modified time | relevance | path

Searched refs:val2 (Results 1 – 25 of 44) sorted by relevance

12

/sound/pcmcia/pdaudiocf/
Dpdaudiocf_irq.c51 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/
Dcs4236_lib.c549 unsigned short val1, val2; in snd_cs4236_put_double() local
552 val2 = ucontrol->value.integer.value[1] & mask; in snd_cs4236_put_double()
555 val2 = mask - val2; in snd_cs4236_put_double()
558 val2 <<= shift_right; in snd_cs4236_put_double()
562 val2 = (chip->eimage[CS4236_REG(right_reg)] & ~(mask << shift_right)) | val2; in snd_cs4236_put_double()
563 …change = val1 != chip->eimage[CS4236_REG(left_reg)] || val2 != chip->eimage[CS4236_REG(right_reg)]; in snd_cs4236_put_double()
565 snd_cs4236_ext_out(chip, right_reg, val2); in snd_cs4236_put_double()
567 …hip->eimage[CS4236_REG(left_reg)] & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_cs4236_put_double()
625 unsigned short val1, val2; in snd_cs4236_put_double1() local
628 val2 = ucontrol->value.integer.value[1] & mask; in snd_cs4236_put_double1()
[all …]
/sound/soc/
Dsoc-ops.c330 unsigned int val2 = 0; in snd_soc_put_volsw() local
351 val2 = ucontrol->value.integer.value[1]; in snd_soc_put_volsw()
352 if (mc->platform_max && ((int)val2 + min) > mc->platform_max) in snd_soc_put_volsw()
354 if (val2 > max - min) in snd_soc_put_volsw()
356 val2 = (val2 + min) & mask; in snd_soc_put_volsw()
358 val2 = max - val2; in snd_soc_put_volsw()
361 val |= val2 << rshift; in snd_soc_put_volsw()
363 val2 = val2 << shift; in snd_soc_put_volsw()
374 val2); in snd_soc_put_volsw()
467 unsigned int val2 = ucontrol->value.integer.value[1]; in snd_soc_put_volsw_sx() local
[all …]
/sound/isa/gus/
Dgus_mixer.c97 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()
/sound/soc/codecs/
D88pm860x-codec.c275 int val[2], val2[2], i; in snd_soc_get_volsw_2r_st() local
279 val2[0] = snd_soc_component_read(component, reg2) & 0x3f; in snd_soc_get_volsw_2r_st()
280 val2[1] = (snd_soc_component_read(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 …]
Drt715-sdw.c152 unsigned int reg2 = 0, reg3 = 0, reg4 = 0, mask, nid, val2; in rt715_sdw_read() local
162 val2 = reg & 0xff; in rt715_sdw_read()
170 ret = regmap_write(rt715->sdw_regmap, reg2, val2); in rt715_sdw_read()
274 unsigned int reg2 = 0, reg3, reg4, nid, mask, val2; in rt715_sdw_write() local
284 val2 = reg & 0xff; in rt715_sdw_write()
292 ret = regmap_write(rt715->sdw_regmap, reg2, val2); in rt715_sdw_write()
341 __func__, reg, reg2, reg3, reg4, val2, val); in rt715_sdw_write()
Drt711-sdw.c94 unsigned int reg2 = 0, reg3 = 0, reg4 = 0, mask, nid, val2; in rt711_sdw_read() local
104 val2 = reg & 0xff; in rt711_sdw_read()
112 ret = regmap_write(rt711->sdw_regmap, reg2, val2); in rt711_sdw_read()
216 unsigned int reg2 = 0, reg3, reg4, nid, mask, val2; in rt711_sdw_write() local
226 val2 = reg & 0xff; in rt711_sdw_write()
234 ret = regmap_write(rt711->sdw_regmap, reg2, val2); in rt711_sdw_write()
283 __func__, reg, reg2, reg3, reg4, val2, val); in rt711_sdw_write()
Drt700-sdw.c90 unsigned int reg2 = 0, reg3 = 0, reg4 = 0, mask, nid, val2; in rt700_sdw_read() local
100 val2 = reg & 0xff; in rt700_sdw_read()
108 ret = regmap_write(rt700->sdw_regmap, reg2, val2); in rt700_sdw_read()
212 unsigned int reg2 = 0, reg3, reg4, nid, mask, val2; in rt700_sdw_write() local
222 val2 = reg & 0xff; in rt700_sdw_write()
230 ret = regmap_write(rt700->sdw_regmap, reg2, val2); in rt700_sdw_write()
279 __func__, reg, reg2, reg3, reg4, val2, val); in rt700_sdw_write()
Dtwl4030.c872 unsigned short val, val2, val_mask; in snd_soc_put_volsw_twl4030() local
881 val2 = (ucontrol->value.integer.value[1] & mask); in snd_soc_put_volsw_twl4030()
883 if (val2) in snd_soc_put_volsw_twl4030()
884 val2 = max + 1 - val2; in snd_soc_put_volsw_twl4030()
885 val |= val2 << rshift; in snd_soc_put_volsw_twl4030()
929 unsigned short val, val2, val_mask; in snd_soc_put_volsw_r2_twl4030() local
933 val2 = (ucontrol->value.integer.value[1] & mask); in snd_soc_put_volsw_r2_twl4030()
937 if (val2) in snd_soc_put_volsw_r2_twl4030()
938 val2 = max + 1 - val2; in snd_soc_put_volsw_r2_twl4030()
941 val2 = val2 << shift; in snd_soc_put_volsw_r2_twl4030()
[all …]
Drt1019.c567 unsigned int val, val2, dev_id; in rt1019_i2c_probe() local
585 regmap_read(rt1019->regmap, RT1019_DEV_ID_2, &val2); in rt1019_i2c_probe()
586 dev_id = val << 8 | val2; in rt1019_i2c_probe()
Drt5514.c966 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()
Drt715-sdca.c555 unsigned int val, val2 = 0, change, mask_sft; in rt715_sdca_mux_put() local
575 RT715_HDA_LEGACY_MUX_CTL1, &val2); in rt715_sdca_mux_put()
576 val2 = (val2 >> mask_sft) & 0xf; in rt715_sdca_mux_put()
578 change = val != val2; in rt715_sdca_mux_put()
/sound/i2c/
Dtea6330t.c99 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()
151 unsigned char oval1, oval2, val1, val2; in snd_tea6330t_put_master_switch() local
154 val2 = ucontrol->value.integer.value[1] & 1; in snd_tea6330t_put_master_switch()
158 change = val1 != oval1 || val2 != oval2; in snd_tea6330t_put_master_switch()
160 tea->regs[TEA6330T_SADDR_VOLUME_RIGHT] = val2 ? tea->mright : 0; in snd_tea6330t_put_master_switch()
/sound/pci/ice1712/
Dwm8766.c210 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()
Dwm8776.c484 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/isa/sb/
Dsb_mixer.c392 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/isa/
Dopl3sa2.c427 unsigned short val1, val2, oval1, oval2; in snd_opl3sa2_put_double() local
430 val2 = ucontrol->value.integer.value[1] & mask; in snd_opl3sa2_put_double()
433 val2 = mask - val2; in snd_opl3sa2_put_double()
436 val2 <<= shift_right; in snd_opl3sa2_put_double()
442 val2 = (oval2 & ~(mask << shift_right)) | val2; in snd_opl3sa2_put_double()
443 change = val1 != oval1 || val2 != oval2; in snd_opl3sa2_put_double()
445 __snd_opl3sa2_write(chip, right_reg, val2); in snd_opl3sa2_put_double()
448 val1 = (oval1 & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_opl3sa2_put_double()
/sound/soc/sh/rcar/
Dssiu.c150 u32 val1, val2; in rsnd_ssiu_init() local
167 val2 = rsnd_mod_read(mod, SSI_MODE2); in rsnd_ssiu_init()
187 val2 |= (1 << 4); in rsnd_ssiu_init()
204 val2 |= is_clk_master ? 0x2 : 0x1; in rsnd_ssiu_init()
207 rsnd_mod_bset(mod, SSI_MODE2, 0x00000017, val2); in rsnd_ssiu_init()
/sound/pci/
Dak4531_codec.c238 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()
Dsonicvibes.c1031 unsigned short val1, val2, oval1, oval2; in snd_sonicvibes_put_double() local
1034 val2 = ucontrol->value.integer.value[1] & mask; in snd_sonicvibes_put_double()
1037 val2 = mask - val2; in snd_sonicvibes_put_double()
1040 val2 <<= shift_right; in snd_sonicvibes_put_double()
1045 val2 = (oval2 & ~(mask << shift_right)) | val2; in snd_sonicvibes_put_double()
1046 change = val1 != oval1 || val2 != oval2; in snd_sonicvibes_put_double()
1048 snd_sonicvibes_out1(sonic, right_reg, val2); in snd_sonicvibes_put_double()
Des1938.c1258 unsigned char val1, val2, mask1, mask2; in snd_es1938_put_double() local
1261 val2 = ucontrol->value.integer.value[1] & mask; in snd_es1938_put_double()
1264 val2 = mask - val2; in snd_es1938_put_double()
1267 val2 <<= shift_right; in snd_es1938_put_double()
1274 if (snd_es1938_reg_bits(chip, right_reg, mask2, val2) != val2) in snd_es1938_put_double()
1278 val1 | val2) != (val1 | val2)); in snd_es1938_put_double()
/sound/isa/es1688/
Des1688_lib.c875 unsigned char val1, val2, oval1, oval2; in snd_es1688_put_double() local
878 val2 = ucontrol->value.integer.value[1] & mask; in snd_es1688_put_double()
881 val2 = mask - val2; in snd_es1688_put_double()
884 val2 <<= shift_right; in snd_es1688_put_double()
896 val2 = (oval2 & ~(mask << shift_right)) | val2; in snd_es1688_put_double()
897 change = val1 != oval1 || val2 != oval2; in snd_es1688_put_double()
913 val1 = (oval1 & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_es1688_put_double()
/sound/spi/
Dat73c213.c506 unsigned short val1, val2; in snd_at73c213_stereo_put() local
509 val2 = ucontrol->value.integer.value[1] & mask; in snd_at73c213_stereo_put()
512 val2 = mask - val2; in snd_at73c213_stereo_put()
515 val2 <<= shift_right; in snd_at73c213_stereo_put()
520 val2 = (chip->reg_image[right_reg] & ~(mask << shift_right)) | val2; in snd_at73c213_stereo_put()
522 || val2 != chip->reg_image[right_reg]; in snd_at73c213_stereo_put()
528 retval = snd_at73c213_write_reg(chip, right_reg, val2); in snd_at73c213_stereo_put()
/sound/isa/ad1816a/
Dad1816a_lib.c833 unsigned short old_val, val1, val2; in snd_ad1816a_put_double() local
836 val2 = ucontrol->value.integer.value[1] & mask; in snd_ad1816a_put_double()
839 val2 = mask - val2; in snd_ad1816a_put_double()
842 val2 <<= shift_right; in snd_ad1816a_put_double()
845 val1 = (old_val & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_ad1816a_put_double()
/sound/pci/lola/
Dlola_mixer.c549 unsigned int val1, val2; in lola_analog_vol_tlv() local
556 val2 = pin->amp_step_size * 25; in lola_analog_vol_tlv()
557 val1 = -1 * (int)pin->amp_offset * (int)val2; in lola_analog_vol_tlv()
559 val2 |= TLV_DB_SCALE_MUTE; in lola_analog_vol_tlv()
567 if (put_user(val2, tlv + 3)) in lola_analog_vol_tlv()

12