/sound/pcmcia/pdaudiocf/ |
D | pdaudiocf_irq.c | 64 register u16 val1, val2; in pdacf_transfer_mono32() local 67 val1 = 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 87 val1 = inw(rdp_port); in pdacf_transfer_stereo32() 90 *dst++ = ((((u32)val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor; in pdacf_transfer_stereo32() 105 register u16 val1, val2; in pdacf_transfer_mono32sw() local 108 val1 = inw(rdp_port); in pdacf_transfer_mono32sw() 111 *dst++ = swab32((((val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor); in pdacf_transfer_mono32sw() 125 register u16 val1, val2, val3; in pdacf_transfer_stereo32sw() local [all …]
|
/sound/i2c/ |
D | tea6330t.c | 114 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/ |
D | cs4236_lib.c | 565 unsigned short val1, val2; in snd_cs4236_put_double() local 567 val1 = ucontrol->value.integer.value[0] & mask; in snd_cs4236_put_double() 570 val1 = mask - val1; in snd_cs4236_put_double() 573 val1 <<= shift_left; in snd_cs4236_put_double() 577 val1 = (chip->eimage[CS4236_REG(left_reg)] & ~(mask << shift_left)) | val1; 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() 580 snd_cs4236_ext_out(chip, left_reg, val1); in snd_cs4236_put_double() 583 …val1 = (chip->eimage[CS4236_REG(left_reg)] & ~((mask << shift_left) | (mask << shift_right))) | va… in snd_cs4236_put_double() 584 change = val1 != chip->eimage[CS4236_REG(left_reg)]; in snd_cs4236_put_double() 585 snd_cs4236_ext_out(chip, left_reg, val1); in snd_cs4236_put_double() [all …]
|
/sound/i2c/other/ |
D | pt2258.c | 112 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/ |
D | emu8000.c | 855 unsigned short val1; in mixer_bass_treble_put() local 857 val1 = ucontrol->value.integer.value[0] % 12; in mixer_bass_treble_put() 860 change = val1 != emu->treble_level; in mixer_bass_treble_put() 861 emu->treble_level = val1; in mixer_bass_treble_put() 863 change = val1 != emu->bass_level; in mixer_bass_treble_put() 864 emu->bass_level = val1; in mixer_bass_treble_put() 916 unsigned short val1; in mixer_chorus_reverb_put() local 920 val1 = ucontrol->value.integer.value[0] % SNDRV_EMU8000_CHORUS_NUMBERS; in mixer_chorus_reverb_put() 921 change = val1 != emu->chorus_mode; in mixer_chorus_reverb_put() 922 emu->chorus_mode = val1; in mixer_chorus_reverb_put() [all …]
|
D | sb_mixer.c | 407 unsigned char val1, val2; in snd_sb16mixer_get_input_sw() local 410 val1 = snd_sbmixer_read(sb, reg1); in snd_sb16mixer_get_input_sw() 413 ucontrol->value.integer.value[0] = (val1 >> left_shift) & 0x01; in snd_sb16mixer_get_input_sw() 415 ucontrol->value.integer.value[2] = (val1 >> right_shift) & 0x01; in snd_sb16mixer_get_input_sw() 429 unsigned char val1, val2, oval1, oval2; in snd_sb16mixer_put_input_sw() local 434 val1 = oval1 & ~((1 << left_shift) | (1 << right_shift)); in snd_sb16mixer_put_input_sw() 436 val1 |= (ucontrol->value.integer.value[0] & 1) << left_shift; in snd_sb16mixer_put_input_sw() 438 val1 |= (ucontrol->value.integer.value[2] & 1) << right_shift; in snd_sb16mixer_put_input_sw() 440 change = val1 != oval1 || val2 != oval2; in snd_sb16mixer_put_input_sw() 442 snd_sbmixer_write(sb, reg1, val1); in snd_sb16mixer_put_input_sw()
|
/sound/isa/gus/ |
D | gus_mixer.c | 112 unsigned char val1, val2, oval1, oval2; 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 swap(val1, val2); in snd_ics_put_double() 129 outb((unsigned char) val1, GUSP(gus, MIXDATAPORT)); in snd_ics_put_double()
|
D | gus_pcm.c | 791 unsigned short val1, val2, vol; in snd_gf1_pcm_volume_put() local 795 val1 = ucontrol->value.integer.value[0] & 127; in snd_gf1_pcm_volume_put() 798 change = val1 != gus->gf1.pcm_volume_level_left1 || in snd_gf1_pcm_volume_put() 800 gus->gf1.pcm_volume_level_left1 = val1; in snd_gf1_pcm_volume_put() 802 gus->gf1.pcm_volume_level_left = snd_gf1_lvol_to_gvol_raw(val1 << 9) << 4; in snd_gf1_pcm_volume_put()
|
/sound/soc/sh/rcar/ |
D | ssiu.c | 33 u32 mask1, val1; in rsnd_ssiu_init() local 66 val1 = val2 = 0; in rsnd_ssiu_init() 89 val1 = rsnd_rdai_is_clk_master(rdai) ? in rsnd_ssiu_init() 103 val1 = rsnd_rdai_is_clk_master(rdai) ? in rsnd_ssiu_init() 107 val1 |= (1 << 4); in rsnd_ssiu_init() 111 rsnd_mod_bset(mod, SSI_MODE1, mask1, val1); in rsnd_ssiu_init()
|
D | src.c | 328 u32 val0, val1; in rsnd_src_error_occurred() local 331 val0 = val1 = OUF_SRC(rsnd_mod_id(mod)); in rsnd_src_error_occurred() 342 (rsnd_mod_read(mod, SCU_SYS_STATUS1) & val1)) in rsnd_src_error_occurred()
|
/sound/isa/es1688/ |
D | es1688_lib.c | 915 unsigned char val1, val2, oval1, oval2; in snd_es1688_put_double() local 917 val1 = ucontrol->value.integer.value[0] & mask; in snd_es1688_put_double() 920 val1 = mask - val1; in snd_es1688_put_double() 923 val1 <<= shift_left; in snd_es1688_put_double() 935 val1 = (oval1 & ~(mask << shift_left)) | val1; in snd_es1688_put_double() 937 change = val1 != oval1 || val2 != oval2; in snd_es1688_put_double() 940 snd_es1688_mixer_write(chip, left_reg, val1); in snd_es1688_put_double() 942 snd_es1688_write(chip, left_reg, val1); in snd_es1688_put_double() 944 snd_es1688_mixer_write(chip, right_reg, val1); in snd_es1688_put_double() 946 snd_es1688_write(chip, right_reg, val1); in snd_es1688_put_double() [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() 229 val1 = wm->regs[wm->ctl[n].reg1] & wm->ctl[n].mask1; in snd_wm8766_ctl_get() 230 val1 >>= __ffs(wm->ctl[n].mask1); in snd_wm8766_ctl_get() 239 val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min); in snd_wm8766_ctl_get() 243 ucontrol->value.integer.value[0] = val1; 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() 503 val1 = wm->regs[wm->ctl[n].reg1] & wm->ctl[n].mask1; in snd_wm8776_ctl_get() 504 val1 >>= __ffs(wm->ctl[n].mask1); in snd_wm8776_ctl_get() 513 val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min); in snd_wm8776_ctl_get() 517 ucontrol->value.integer.value[0] = val1; in snd_wm8776_ctl_get()
|
/sound/isa/ |
D | opl3sa2.c | 443 unsigned short val1, val2, oval1, oval2; in snd_opl3sa2_put_double() local 445 val1 = ucontrol->value.integer.value[0] & mask; in snd_opl3sa2_put_double() 448 val1 = mask - val1; in snd_opl3sa2_put_double() 451 val1 <<= shift_left; in snd_opl3sa2_put_double() 457 val1 = (oval1 & ~(mask << shift_left)) | val1; in snd_opl3sa2_put_double() 459 change = val1 != oval1 || val2 != oval2; in snd_opl3sa2_put_double() 460 __snd_opl3sa2_write(chip, left_reg, val1); in snd_opl3sa2_put_double() 464 val1 = (oval1 & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_opl3sa2_put_double() 465 change = val1 != oval1; in snd_opl3sa2_put_double() 466 __snd_opl3sa2_write(chip, left_reg, val1); in snd_opl3sa2_put_double()
|
D | es18xx.c | 1243 unsigned char val1, val2, mask1, mask2; in snd_es18xx_put_double() local 1245 val1 = ucontrol->value.integer.value[0] & mask; in snd_es18xx_put_double() 1248 val1 = mask - val1; in snd_es18xx_put_double() 1251 val1 <<= shift_left; in snd_es18xx_put_double() 1257 if (snd_es18xx_reg_bits(chip, left_reg, mask1, val1) != val1) in snd_es18xx_put_double() 1263 val1 | val2) != (val1 | val2)); in snd_es18xx_put_double()
|
/sound/oss/ |
D | sb_ess.c | 965 int val1, val2; in FKS_test() local 966 val1 = ess_getmixer (devc, 0x64); in FKS_test() 967 ess_setmixer (devc, 0x64, ~val1); in FKS_test() 968 val2 = ess_getmixer (devc, 0x64) ^ ~val1; in FKS_test() 969 ess_setmixer (devc, 0x64, val1); in FKS_test() 970 val1 ^= ess_getmixer (devc, 0x64); in FKS_test() 971 printk (KERN_INFO "FKS: FKS_test %02x, %02x\n", (val1 & 0x0ff), (val2 & 0x0ff)); in FKS_test() 1003 int val1, val2, val3; in ess_probe() local 1005 val1 = ess_getmixer (devc, reg); in ess_probe() 1006 val2 = val1 ^ xorval; in ess_probe() [all …]
|
/sound/pci/ |
D | ak4531_codec.c | 253 int val1, val2; in snd_ak4531_put_input_sw() local 256 val1 = ak4531->regs[reg1] & ~((1 << left_shift) | (1 << right_shift)); in snd_ak4531_put_input_sw() 258 val1 |= (ucontrol->value.integer.value[0] & 1) << left_shift; in snd_ak4531_put_input_sw() 260 val1 |= (ucontrol->value.integer.value[2] & 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() 263 ak4531->write(ak4531, reg1, ak4531->regs[reg1] = val1); in snd_ak4531_put_input_sw()
|
D | sonicvibes.c | 1062 unsigned short val1, val2, oval1, oval2; in snd_sonicvibes_put_double() local 1064 val1 = ucontrol->value.integer.value[0] & mask; in snd_sonicvibes_put_double() 1067 val1 = mask - val1; in snd_sonicvibes_put_double() 1070 val1 <<= shift_left; in snd_sonicvibes_put_double() 1075 val1 = (oval1 & ~(mask << shift_left)) | val1; in snd_sonicvibes_put_double() 1077 change = val1 != oval1 || val2 != oval2; in snd_sonicvibes_put_double() 1078 snd_sonicvibes_out1(sonic, left_reg, val1); in snd_sonicvibes_put_double()
|
D | es1938.c | 1298 unsigned char val1, val2, mask1, mask2; in snd_es1938_put_double() local 1300 val1 = ucontrol->value.integer.value[0] & mask; in snd_es1938_put_double() 1303 val1 = mask - val1; in snd_es1938_put_double() 1306 val1 <<= shift_left; in snd_es1938_put_double() 1312 if (snd_es1938_reg_bits(chip, left_reg, mask1, val1) != val1) in snd_es1938_put_double() 1318 val1 | val2) != (val1 | val2)); in snd_es1938_put_double()
|
D | fm801.c | 949 unsigned short val1, val2; in snd_fm801_put_double() local 951 val1 = ucontrol->value.integer.value[0] & mask; in snd_fm801_put_double() 954 val1 = mask - val1; in snd_fm801_put_double() 959 (val1 << shift_left ) | (val2 << shift_right)); in snd_fm801_put_double()
|
/sound/spi/ |
D | at73c213.c | 515 unsigned short val1, val2; in snd_at73c213_stereo_put() local 517 val1 = ucontrol->value.integer.value[0] & mask; in snd_at73c213_stereo_put() 520 val1 = mask - val1; in snd_at73c213_stereo_put() 523 val1 <<= shift_left; in snd_at73c213_stereo_put() 528 val1 = (chip->reg_image[left_reg] & ~(mask << shift_left)) | val1; in snd_at73c213_stereo_put() 530 change = val1 != chip->reg_image[left_reg] in snd_at73c213_stereo_put() 532 retval = snd_at73c213_write_reg(chip, left_reg, val1); in snd_at73c213_stereo_put()
|
/sound/isa/ad1816a/ |
D | ad1816a_lib.c | 891 unsigned short old_val, val1, val2; in snd_ad1816a_put_double() local 893 val1 = ucontrol->value.integer.value[0] & mask; in snd_ad1816a_put_double() 896 val1 = mask - val1; in snd_ad1816a_put_double() 899 val1 <<= shift_left; in snd_ad1816a_put_double() 903 val1 = (old_val & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_ad1816a_put_double() 904 change = val1 != old_val; in snd_ad1816a_put_double() 905 snd_ad1816a_write(chip, reg, val1); in snd_ad1816a_put_double()
|
/sound/pci/emu10k1/ |
D | emuproc.c | 187 unsigned int val, val1; in snd_emu10k1_proc_read() local 203 val1 = emu->audigy ? in snd_emu10k1_proc_read() 214 val1 & 0x3f, in snd_emu10k1_proc_read() 215 (val1 >> 8) & 0x3f, in snd_emu10k1_proc_read() 216 (val1 >> 16) & 0x3f, in snd_emu10k1_proc_read() 217 (val1 >> 24) & 0x3f); in snd_emu10k1_proc_read()
|
/sound/isa/wss/ |
D | wss_lib.c | 2161 unsigned short val1, val2; in snd_wss_put_double() local 2163 val1 = ucontrol->value.integer.value[0] & mask; in snd_wss_put_double() 2166 val1 = mask - val1; in snd_wss_put_double() 2169 val1 <<= shift_left; in snd_wss_put_double() 2173 val1 = (chip->image[left_reg] & ~(mask << shift_left)) | val1; in snd_wss_put_double() 2175 change = val1 != chip->image[left_reg] || in snd_wss_put_double() 2177 snd_wss_out(chip, left_reg, val1); in snd_wss_put_double() 2181 val1 = (chip->image[left_reg] & ~mask) | val1 | val2; in snd_wss_put_double() 2182 change = val1 != chip->image[left_reg]; in snd_wss_put_double() 2183 snd_wss_out(chip, left_reg, val1); in snd_wss_put_double()
|
/sound/sparc/ |
D | cs4231.c | 1457 unsigned short val1, val2; in snd_cs4231_put_double() local 1459 val1 = ucontrol->value.integer.value[0] & mask; in snd_cs4231_put_double() 1462 val1 = mask - val1; in snd_cs4231_put_double() 1465 val1 <<= shift_left; in snd_cs4231_put_double() 1470 val1 = (chip->image[left_reg] & ~(mask << shift_left)) | val1; in snd_cs4231_put_double() 1472 change = val1 != chip->image[left_reg]; in snd_cs4231_put_double() 1474 snd_cs4231_out(chip, left_reg, val1); in snd_cs4231_put_double()
|