Home
last modified time | relevance | path

Searched refs:val1 (Results 1 – 25 of 35) sorted by relevance

12

/sound/pcmcia/pdaudiocf/
Dpdaudiocf_irq.c51 register u16 val1, val2; in pdacf_transfer_mono32() local
54 val1 = 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
74 val1 = inw(rdp_port); in pdacf_transfer_stereo32()
77 *dst++ = ((((u32)val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor; in pdacf_transfer_stereo32()
92 register u16 val1, val2; in pdacf_transfer_mono32sw() local
95 val1 = inw(rdp_port); in pdacf_transfer_mono32sw()
98 *dst++ = swab32((((val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor); in pdacf_transfer_mono32sw()
112 register u16 val1, val2, val3; in pdacf_transfer_stereo32sw() local
[all …]
/sound/i2c/
Dtea6330t.c99 unsigned char val1, val2; in snd_tea6330t_put_master_volume() local
101 val1 = (ucontrol->value.integer.value[0] % 44) + 0x14; in snd_tea6330t_put_master_volume()
104 change = val1 != tea->mleft || val2 != tea->mright; in snd_tea6330t_put_master_volume()
105 tea->mleft = val1; in snd_tea6330t_put_master_volume()
150 unsigned char oval1, oval2, val1, val2; in snd_tea6330t_put_master_switch() local
152 val1 = ucontrol->value.integer.value[0] & 1; in snd_tea6330t_put_master_switch()
157 change = val1 != oval1 || val2 != oval2; in snd_tea6330t_put_master_switch()
158 tea->regs[TEA6330T_SADDR_VOLUME_LEFT] = val1 ? tea->mleft : 0; in snd_tea6330t_put_master_switch()
201 unsigned char val1; in snd_tea6330t_put_bass() local
203 val1 = ucontrol->value.integer.value[0] % (tea->max_bass + 1); in snd_tea6330t_put_bass()
[all …]
/sound/isa/cs423x/
Dcs4236_lib.c551 unsigned short val1, val2; in snd_cs4236_put_double() local
553 val1 = ucontrol->value.integer.value[0] & mask; in snd_cs4236_put_double()
556 val1 = mask - val1; in snd_cs4236_put_double()
559 val1 <<= shift_left; in snd_cs4236_put_double()
563 val1 = (chip->eimage[CS4236_REG(left_reg)] & ~(mask << shift_left)) | val1; 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()
566 snd_cs4236_ext_out(chip, left_reg, val1); in snd_cs4236_put_double()
569val1 = (chip->eimage[CS4236_REG(left_reg)] & ~((mask << shift_left) | (mask << shift_right))) | va… in snd_cs4236_put_double()
570 change = val1 != chip->eimage[CS4236_REG(left_reg)]; in snd_cs4236_put_double()
571 snd_cs4236_ext_out(chip, left_reg, val1); in snd_cs4236_put_double()
[all …]
/sound/i2c/other/
Dpt2258.c98 int val0, val1; in pt2258_stereo_volume_put() local
101 val1 = 79 - ucontrol->value.integer.value[1]; in pt2258_stereo_volume_put()
102 if (val0 < 0 || val0 > 79 || val1 < 0 || val1 > 79) in pt2258_stereo_volume_put()
104 if (val0 == pt->volume[base] && val1 == pt->volume[base + 1]) in pt2258_stereo_volume_put()
115 pt->volume[base + 1] = val1; in pt2258_stereo_volume_put()
116 bytes[0] = pt2258_channel_code[2 * base + 2] | (val1 / 10); in pt2258_stereo_volume_put()
117 bytes[1] = pt2258_channel_code[2 * base + 3] | (val1 % 10); in pt2258_stereo_volume_put()
/sound/isa/sb/
Demu8000.c842 unsigned short val1; in mixer_bass_treble_put() local
844 val1 = ucontrol->value.integer.value[0] % 12; in mixer_bass_treble_put()
847 change = val1 != emu->treble_level; in mixer_bass_treble_put()
848 emu->treble_level = val1; in mixer_bass_treble_put()
850 change = val1 != emu->bass_level; in mixer_bass_treble_put()
851 emu->bass_level = val1; in mixer_bass_treble_put()
903 unsigned short val1; in mixer_chorus_reverb_put() local
907 val1 = ucontrol->value.integer.value[0] % SNDRV_EMU8000_CHORUS_NUMBERS; in mixer_chorus_reverb_put()
908 change = val1 != emu->chorus_mode; in mixer_chorus_reverb_put()
909 emu->chorus_mode = val1; in mixer_chorus_reverb_put()
[all …]
Dsb_mixer.c392 unsigned char val1, val2; in snd_sb16mixer_get_input_sw() local
395 val1 = snd_sbmixer_read(sb, reg1); in snd_sb16mixer_get_input_sw()
398 ucontrol->value.integer.value[0] = (val1 >> left_shift) & 0x01; in snd_sb16mixer_get_input_sw()
400 ucontrol->value.integer.value[2] = (val1 >> right_shift) & 0x01; in snd_sb16mixer_get_input_sw()
414 unsigned char val1, val2, oval1, oval2; in snd_sb16mixer_put_input_sw() local
419 val1 = oval1 & ~((1 << left_shift) | (1 << right_shift)); in snd_sb16mixer_put_input_sw()
421 val1 |= (ucontrol->value.integer.value[0] & 1) << left_shift; in snd_sb16mixer_put_input_sw()
423 val1 |= (ucontrol->value.integer.value[2] & 1) << right_shift; in snd_sb16mixer_put_input_sw()
425 change = val1 != oval1 || val2 != oval2; in snd_sb16mixer_put_input_sw()
427 snd_sbmixer_write(sb, reg1, val1); in snd_sb16mixer_put_input_sw()
/sound/isa/gus/
Dgus_mixer.c97 unsigned char val1, val2, oval1, oval2; in snd_ics_put_double() local
99 val1 = ucontrol->value.integer.value[0] & 127; in snd_ics_put_double()
104 change = val1 != oval1 || val2 != oval2; in snd_ics_put_double()
105 gus->gf1.ics_regs[addr][0] = val1; in snd_ics_put_double()
109 swap(val1, val2); in snd_ics_put_double()
114 outb((unsigned char) val1, GUSP(gus, MIXDATAPORT)); in snd_ics_put_double()
Dgus_pcm.c767 unsigned short val1, val2, vol; in snd_gf1_pcm_volume_put() local
771 val1 = ucontrol->value.integer.value[0] & 127; in snd_gf1_pcm_volume_put()
774 change = val1 != gus->gf1.pcm_volume_level_left1 || in snd_gf1_pcm_volume_put()
776 gus->gf1.pcm_volume_level_left1 = val1; in snd_gf1_pcm_volume_put()
778 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/
Dssiu.c67 u32 val1, val2; in rsnd_ssiu_init() local
97 val1 = rsnd_mod_read(mod, SSI_MODE1); in rsnd_ssiu_init()
112 val1 |= (1 << 20); in rsnd_ssiu_init()
115 val1 |= (1 << 4); in rsnd_ssiu_init()
123 val1 |= is_clk_master ? 0x2 : 0x1; in rsnd_ssiu_init()
127 val1 |= is_clk_master ? 0x2 << 2 : in rsnd_ssiu_init()
131 val1 |= is_clk_master ? 0x2 << 16 : in rsnd_ssiu_init()
137 rsnd_mod_bset(mod, SSI_MODE1, 0x0013001f, val1); in rsnd_ssiu_init()
Dsrc.c398 u32 val0, val1; in rsnd_src_error_occurred() local
402 val0 = val1 = OUF_SRC(rsnd_mod_id(mod)); in rsnd_src_error_occurred()
414 if ((status0 & val0) || (status1 & val1)) { in rsnd_src_error_occurred()
/sound/isa/es1688/
Des1688_lib.c875 unsigned char val1, val2, oval1, oval2; in snd_es1688_put_double() local
877 val1 = ucontrol->value.integer.value[0] & mask; in snd_es1688_put_double()
880 val1 = mask - val1; in snd_es1688_put_double()
883 val1 <<= shift_left; in snd_es1688_put_double()
895 val1 = (oval1 & ~(mask << shift_left)) | val1; in snd_es1688_put_double()
897 change = val1 != oval1 || val2 != oval2; in snd_es1688_put_double()
900 snd_es1688_mixer_write(chip, left_reg, val1); in snd_es1688_put_double()
902 snd_es1688_write(chip, left_reg, val1); in snd_es1688_put_double()
904 snd_es1688_mixer_write(chip, right_reg, val1); in snd_es1688_put_double()
906 snd_es1688_write(chip, right_reg, val1); in snd_es1688_put_double()
[all …]
/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()
215 val1 = wm->regs[wm->ctl[n].reg1] & wm->ctl[n].mask1; in snd_wm8766_ctl_get()
216 val1 >>= __ffs(wm->ctl[n].mask1); in snd_wm8766_ctl_get()
225 val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min); in snd_wm8766_ctl_get()
229 ucontrol->value.integer.value[0] = val1; 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()
489 val1 = wm->regs[wm->ctl[n].reg1] & wm->ctl[n].mask1; in snd_wm8776_ctl_get()
490 val1 >>= __ffs(wm->ctl[n].mask1); in snd_wm8776_ctl_get()
499 val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min); in snd_wm8776_ctl_get()
503 ucontrol->value.integer.value[0] = val1; in snd_wm8776_ctl_get()
/sound/isa/
Dopl3sa2.c428 unsigned short val1, val2, oval1, oval2; in snd_opl3sa2_put_double() local
430 val1 = ucontrol->value.integer.value[0] & mask; in snd_opl3sa2_put_double()
433 val1 = mask - val1; in snd_opl3sa2_put_double()
436 val1 <<= shift_left; in snd_opl3sa2_put_double()
442 val1 = (oval1 & ~(mask << shift_left)) | val1; in snd_opl3sa2_put_double()
444 change = val1 != oval1 || val2 != oval2; in snd_opl3sa2_put_double()
445 __snd_opl3sa2_write(chip, left_reg, val1); in snd_opl3sa2_put_double()
449 val1 = (oval1 & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_opl3sa2_put_double()
450 change = val1 != oval1; in snd_opl3sa2_put_double()
451 __snd_opl3sa2_write(chip, left_reg, val1); in snd_opl3sa2_put_double()
Des18xx.c1218 unsigned char val1, val2, mask1, mask2; in snd_es18xx_put_double() local
1220 val1 = ucontrol->value.integer.value[0] & mask; in snd_es18xx_put_double()
1223 val1 = mask - val1; in snd_es18xx_put_double()
1226 val1 <<= shift_left; in snd_es18xx_put_double()
1232 if (snd_es18xx_reg_bits(chip, left_reg, mask1, val1) != val1) in snd_es18xx_put_double()
1238 val1 | val2) != (val1 | val2)); in snd_es18xx_put_double()
/sound/pci/
Dak4531_codec.c238 int val1, val2; in snd_ak4531_put_input_sw() local
241 val1 = ak4531->regs[reg1] & ~((1 << left_shift) | (1 << right_shift)); in snd_ak4531_put_input_sw()
243 val1 |= (ucontrol->value.integer.value[0] & 1) << left_shift; in snd_ak4531_put_input_sw()
245 val1 |= (ucontrol->value.integer.value[2] & 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()
248 ak4531->write(ak4531, reg1, ak4531->regs[reg1] = val1); in snd_ak4531_put_input_sw()
Dsonicvibes.c1031 unsigned short val1, val2, oval1, oval2; in snd_sonicvibes_put_double() local
1033 val1 = ucontrol->value.integer.value[0] & mask; in snd_sonicvibes_put_double()
1036 val1 = mask - val1; in snd_sonicvibes_put_double()
1039 val1 <<= shift_left; in snd_sonicvibes_put_double()
1044 val1 = (oval1 & ~(mask << shift_left)) | val1; in snd_sonicvibes_put_double()
1046 change = val1 != oval1 || val2 != oval2; in snd_sonicvibes_put_double()
1047 snd_sonicvibes_out1(sonic, left_reg, val1); in snd_sonicvibes_put_double()
Des1938.c1258 unsigned char val1, val2, mask1, mask2; in snd_es1938_put_double() local
1260 val1 = ucontrol->value.integer.value[0] & mask; in snd_es1938_put_double()
1263 val1 = mask - val1; in snd_es1938_put_double()
1266 val1 <<= shift_left; in snd_es1938_put_double()
1272 if (snd_es1938_reg_bits(chip, left_reg, mask1, val1) != val1) in snd_es1938_put_double()
1278 val1 | val2) != (val1 | val2)); in snd_es1938_put_double()
Dfm801.c948 unsigned short val1, val2; in snd_fm801_put_double() local
950 val1 = ucontrol->value.integer.value[0] & mask; in snd_fm801_put_double()
953 val1 = mask - val1; in snd_fm801_put_double()
958 (val1 << shift_left ) | (val2 << shift_right)); in snd_fm801_put_double()
/sound/pci/emu10k1/
Demuproc.c173 unsigned int val, val1; in snd_emu10k1_proc_read() local
189 val1 = emu->audigy ? in snd_emu10k1_proc_read()
200 val1 & 0x3f, in snd_emu10k1_proc_read()
201 (val1 >> 8) & 0x3f, in snd_emu10k1_proc_read()
202 (val1 >> 16) & 0x3f, in snd_emu10k1_proc_read()
203 (val1 >> 24) & 0x3f); in snd_emu10k1_proc_read()
/sound/spi/
Dat73c213.c506 unsigned short val1, val2; in snd_at73c213_stereo_put() local
508 val1 = ucontrol->value.integer.value[0] & mask; in snd_at73c213_stereo_put()
511 val1 = mask - val1; in snd_at73c213_stereo_put()
514 val1 <<= shift_left; in snd_at73c213_stereo_put()
519 val1 = (chip->reg_image[left_reg] & ~(mask << shift_left)) | val1; in snd_at73c213_stereo_put()
521 change = val1 != chip->reg_image[left_reg] in snd_at73c213_stereo_put()
523 retval = snd_at73c213_write_reg(chip, left_reg, val1); in snd_at73c213_stereo_put()
/sound/isa/ad1816a/
Dad1816a_lib.c862 unsigned short old_val, val1, val2; in snd_ad1816a_put_double() local
864 val1 = ucontrol->value.integer.value[0] & mask; in snd_ad1816a_put_double()
867 val1 = mask - val1; in snd_ad1816a_put_double()
870 val1 <<= shift_left; in snd_ad1816a_put_double()
874 val1 = (old_val & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_ad1816a_put_double()
875 change = val1 != old_val; in snd_ad1816a_put_double()
876 snd_ad1816a_write(chip, reg, val1); in snd_ad1816a_put_double()
/sound/isa/wss/
Dwss_lib.c2126 unsigned short val1, val2; in snd_wss_put_double() local
2128 val1 = ucontrol->value.integer.value[0] & mask; in snd_wss_put_double()
2131 val1 = mask - val1; in snd_wss_put_double()
2134 val1 <<= shift_left; in snd_wss_put_double()
2138 val1 = (chip->image[left_reg] & ~(mask << shift_left)) | val1; in snd_wss_put_double()
2140 change = val1 != chip->image[left_reg] || in snd_wss_put_double()
2142 snd_wss_out(chip, left_reg, val1); in snd_wss_put_double()
2146 val1 = (chip->image[left_reg] & ~mask) | val1 | val2; in snd_wss_put_double()
2147 change = val1 != chip->image[left_reg]; in snd_wss_put_double()
2148 snd_wss_out(chip, left_reg, val1); in snd_wss_put_double()
/sound/sparc/
Dcs4231.c1443 unsigned short val1, val2; in snd_cs4231_put_double() local
1445 val1 = ucontrol->value.integer.value[0] & mask; in snd_cs4231_put_double()
1448 val1 = mask - val1; in snd_cs4231_put_double()
1451 val1 <<= shift_left; in snd_cs4231_put_double()
1456 val1 = (chip->image[left_reg] & ~(mask << shift_left)) | val1; in snd_cs4231_put_double()
1458 change = val1 != chip->image[left_reg]; in snd_cs4231_put_double()
1460 snd_cs4231_out(chip, left_reg, val1); in snd_cs4231_put_double()
/sound/pci/ac97/
Dac97_codec.c951 unsigned short val1, val2; in snd_ac97_ad18xx_pcm_put_volume() local
953 val1 = 31 - (ucontrol->value.integer.value[0] & 31); in snd_ac97_ad18xx_pcm_put_volume()
955 return snd_ac97_ad18xx_update_pcm_bits(ac97, codec, 0x1f1f, (val1 << 8) | val2); in snd_ac97_ad18xx_pcm_put_volume()
1131 unsigned short val, val1; in snd_ac97_change_volume_params2() local
1136 val1 = snd_ac97_read(ac97, reg); in snd_ac97_change_volume_params2()
1137 if (val != val1) { in snd_ac97_change_volume_params2()
1173 unsigned short val, val1, mute_mask; in snd_ac97_cmute_new_stereo() local
1182 val1 = val | AC97_MUTE_MASK_STEREO; in snd_ac97_cmute_new_stereo()
1183 snd_ac97_write(ac97, reg, val1); in snd_ac97_cmute_new_stereo()
1184 if (val1 == snd_ac97_read(ac97, reg)) in snd_ac97_cmute_new_stereo()

12