/sound/isa/gus/ |
D | gus_mixer.c | 44 unsigned char oval, nval; in snd_gf1_put_single() local 46 nval = ucontrol->value.integer.value[0] & 1; in snd_gf1_put_single() 48 nval ^= 1; in snd_gf1_put_single() 49 nval <<= shift; in snd_gf1_put_single() 52 nval = (oval & ~(1 << shift)) | nval; in snd_gf1_put_single() 53 change = nval != oval; in snd_gf1_put_single() 54 outb(gus->mix_cntrl_reg = nval, GUSP(gus, MIXCNTRLREG)); in snd_gf1_put_single()
|
D | gus_main.c | 59 unsigned char nval; in snd_gus_joystick_put() local 61 nval = ucontrol->value.integer.value[0] & 31; in snd_gus_joystick_put() 63 change = gus->joystick_dac != nval; in snd_gus_joystick_put() 64 gus->joystick_dac = nval; in snd_gus_joystick_put()
|
/sound/pci/ice1712/ |
D | pontis.c | 128 unsigned short oval, nval; in wm_dac_vol_put() local 133 nval = ucontrol->value.integer.value[i]; in wm_dac_vol_put() 134 nval = (nval ? (nval + DAC_MIN) : 0) & 0xff; in wm_dac_vol_put() 137 if (oval != nval) { in wm_dac_vol_put() 138 wm_put(ice, idx, nval); in wm_dac_vol_put() 139 wm_put_nocache(ice, idx, nval | 0x100); in wm_dac_vol_put() 221 unsigned short oval, nval; in wm_adc_mux_put() local 225 nval = oval = wm_get(ice, WM_ADC_MUX); in wm_adc_mux_put() 227 nval |= (1 << bit); in wm_adc_mux_put() 229 nval &= ~(1 << bit); in wm_adc_mux_put() [all …]
|
D | ice1712.c | 256 unsigned char val, nval; in snd_ice1712_digmix_route_ac97_put() local 260 nval = val & ~ICE1712_ROUTE_AC97; in snd_ice1712_digmix_route_ac97_put() 262 nval |= ICE1712_ROUTE_AC97; in snd_ice1712_digmix_route_ac97_put() 263 outb(nval, ICEMT(ice, MONITOR_ROUTECTRL)); in snd_ice1712_digmix_route_ac97_put() 265 return val != nval; in snd_ice1712_digmix_route_ac97_put() 326 unsigned char val, nval; in snd_ice1712_cs8427_set_input_clock() local 338 nval = val & 0xf0; in snd_ice1712_cs8427_set_input_clock() 340 nval |= 0x01; in snd_ice1712_cs8427_set_input_clock() 342 nval |= 0x04; in snd_ice1712_cs8427_set_input_clock() 343 if (val != nval) { in snd_ice1712_cs8427_set_input_clock() [all …]
|
D | aureon.c | 211 unsigned char oval, nval; in aureon_universe_inmux_put() local 214 nval = ucontrol->value.enumerated.item[0]; in aureon_universe_inmux_put() 215 if (nval >= 3) in aureon_universe_inmux_put() 219 change = (oval != nval); in aureon_universe_inmux_put() 221 aureon_pca9554_write(ice, PCA9554_OUT, nval); in aureon_universe_inmux_put() 222 spec->pca9554_out = nval; in aureon_universe_inmux_put() 716 unsigned short nval, oval; in wm_pcm_mute_put() local 721 nval = (oval & ~0x10) | (ucontrol->value.integer.value[0] ? 0 : 0x10); in wm_pcm_mute_put() 722 change = (oval != nval); in wm_pcm_mute_put() 724 wm_put(ice, WM_MUTE, nval); in wm_pcm_mute_put() [all …]
|
D | ice1724.c | 1180 unsigned int val, nval; in update_spdif_rate() local 1184 nval = val = inw(ICEMT1724(ice, SPDIF_CTRL)); in update_spdif_rate() 1185 nval &= ~(7 << 12); in update_spdif_rate() 1188 case 48000: nval |= 2 << 12; break; in update_spdif_rate() 1189 case 32000: nval |= 3 << 12; break; in update_spdif_rate() 1190 case 88200: nval |= 4 << 12; break; in update_spdif_rate() 1191 case 96000: nval |= 5 << 12; break; in update_spdif_rate() 1192 case 192000: nval |= 6 << 12; break; in update_spdif_rate() 1193 case 176400: nval |= 7 << 12; break; in update_spdif_rate() 1195 if (val != nval) in update_spdif_rate() [all …]
|
D | prodigy_hifi.c | 548 unsigned short oval, nval; in wm_adc_mux_enum_put() local 553 nval = (oval & 0xe0) | ucontrol->value.integer.value[0]; in wm_adc_mux_enum_put() 554 if (nval != oval) { in wm_adc_mux_enum_put() 555 wm_put(ice, WM_ADC_MUX, nval); in wm_adc_mux_enum_put() 644 unsigned short oval, nval; in wm_adc_mux_put() local 648 nval = oval = wm_get(ice, WM_ADC_MUX); in wm_adc_mux_put() 650 nval |= (1 << bit); in wm_adc_mux_put() 652 nval &= ~(1 << bit); in wm_adc_mux_put() 653 change = nval != oval; in wm_adc_mux_put() 655 wm_put(ice, WM_ADC_MUX, nval); in wm_adc_mux_put()
|
D | ews.c | 587 int val, nval; in snd_ice1712_ewx_io_sense_put() local 591 nval = ucontrol->value.enumerated.item[0] ? mask : 0; in snd_ice1712_ewx_io_sense_put() 594 nval |= val & ~mask; in snd_ice1712_ewx_io_sense_put() 595 snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, nval); in snd_ice1712_ewx_io_sense_put() 597 return val != nval; in snd_ice1712_ewx_io_sense_put()
|
D | phase.c | 301 unsigned short nval, oval; in wm_pcm_mute_put() local 306 nval = (oval & ~0x10) | (ucontrol->value.integer.value[0] ? 0 : 0x10); in wm_pcm_mute_put() 307 change = (nval != oval); in wm_pcm_mute_put() 309 wm_put(ice, WM_MUTE, nval); in wm_pcm_mute_put()
|
/sound/isa/sb/ |
D | sb_mixer.c | 218 unsigned char nval, oval; in snd_dt019x_input_sw_put() local 224 nval = SB_DT019X_CAP_CD; in snd_dt019x_input_sw_put() 227 nval = SB_DT019X_CAP_MIC; in snd_dt019x_input_sw_put() 230 nval = SB_DT019X_CAP_LINE; in snd_dt019x_input_sw_put() 233 nval = SB_DT019X_CAP_SYNTH; in snd_dt019x_input_sw_put() 236 nval = SB_DT019X_CAP_MAIN; in snd_dt019x_input_sw_put() 239 nval = SB_DT019X_CAP_MAIN; in snd_dt019x_input_sw_put() 243 change = nval != oval; in snd_dt019x_input_sw_put() 245 snd_sbmixer_write(sb, SB_DT019X_CAPTURE_SW, nval); in snd_dt019x_input_sw_put() 288 unsigned char nval, oval; in snd_als4k_mono_capture_route_put() local [all …]
|
D | sb16_main.c | 715 unsigned char nval, oval; in snd_sb16_dma_control_put() local 718 if ((nval = ucontrol->value.enumerated.item[0]) > 2) in snd_sb16_dma_control_put() 722 change = nval != oval; in snd_sb16_dma_control_put() 723 snd_sb16_set_dma_mode(chip, nval); in snd_sb16_dma_control_put()
|
D | sb16_csp.c | 965 unsigned char nval; in snd_sb_qsound_switch_put() local 967 nval = ucontrol->value.integer.value[0] & 0x01; in snd_sb_qsound_switch_put() 969 change = p->q_enabled != nval; in snd_sb_qsound_switch_put() 970 p->q_enabled = nval; in snd_sb_qsound_switch_put()
|
/sound/i2c/other/ |
D | ak4xxx-adda.c | 376 unsigned char nval) in put_ak_reg() argument 382 if (snd_akm4xxx_get_vol(ak, chip, addr) == nval) in put_ak_reg() 385 snd_akm4xxx_set_vol(ak, chip, addr, nval); in put_ak_reg() 386 if (AK_GET_VOL_CVT(kcontrol->private_value) && nval < 128) in put_ak_reg() 387 nval = vol_cvt_datt[nval]; in put_ak_reg() 388 if (AK_GET_IPGA(kcontrol->private_value) && nval >= 128) in put_ak_reg() 389 nval++; /* need to correct + 1 since both 127 and 128 are 0dB */ in put_ak_reg() 391 nval = mask - nval; in put_ak_reg() 393 nval |= 0x80; in put_ak_reg() 396 snd_akm4xxx_write(ak, chip, addr, nval); in put_ak_reg() [all …]
|
/sound/pcmcia/pdaudiocf/ |
D | pdaudiocf_pcm.c | 111 u16 val, nval, aval; in pdacf_pcm_prepare() local 131 val = nval = pdacf_reg_read(chip, PDAUDIOCF_REG_SCR); in pdacf_pcm_prepare() 132 nval &= ~(PDAUDIOCF_DATAFMT0|PDAUDIOCF_DATAFMT1); in pdacf_pcm_prepare() 138 nval |= PDAUDIOCF_DATAFMT0 | PDAUDIOCF_DATAFMT1; in pdacf_pcm_prepare() 161 if (val != nval) { in pdacf_pcm_prepare() 163 pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, nval); in pdacf_pcm_prepare()
|
/sound/isa/es1688/ |
D | es1688_lib.c | 762 unsigned char oval, nval; in snd_es1688_put_mux() local 769 nval = (ucontrol->value.enumerated.item[0] & 7) | (oval & ~15); in snd_es1688_put_mux() 770 change = nval != oval; in snd_es1688_put_mux() 772 snd_es1688_mixer_write(chip, ES1688_REC_DEV, nval); in snd_es1688_put_mux() 820 unsigned char oval, nval; in snd_es1688_put_single() local 822 nval = (ucontrol->value.integer.value[0] & mask); in snd_es1688_put_single() 824 nval = mask - nval; in snd_es1688_put_single() 825 nval <<= shift; in snd_es1688_put_single() 828 nval = (oval & ~(mask << shift)) | nval; in snd_es1688_put_single() 829 change = nval != oval; in snd_es1688_put_single() [all …]
|
/sound/ppc/ |
D | beep.c | 185 unsigned int oval, nval; in snd_pmac_put_beep() local 189 nval = ucontrol->value.integer.value[0]; in snd_pmac_put_beep() 190 if (nval > 100) in snd_pmac_put_beep() 192 chip->beep->volume = nval; in snd_pmac_put_beep()
|
/sound/pci/ca0106/ |
D | ca0106_mixer.c | 431 unsigned int oval, nval; in snd_ca0106_volume_put() local 438 nval = ((0xff - ucontrol->value.integer.value[0]) << 24) | in snd_ca0106_volume_put() 440 nval |= ((0xff - ucontrol->value.integer.value[0]) << 8) | in snd_ca0106_volume_put() 442 if (oval == nval) in snd_ca0106_volume_put() 444 snd_ca0106_ptr_write(emu, reg, channel_id, nval); in snd_ca0106_volume_put()
|
/sound/pci/emu10k1/ |
D | emupcm.c | 1516 unsigned int nval[2], bits; in snd_emu10k1_pcm_efx_voices_mask_put() local 1521 nval[0] = nval[1] = 0; in snd_emu10k1_pcm_efx_voices_mask_put() 1524 nval[idx / 32] |= 1 << (idx % 32); in snd_emu10k1_pcm_efx_voices_mask_put() 1536 change = (nval[0] != emu->efx_voices_mask[0]) || in snd_emu10k1_pcm_efx_voices_mask_put() 1537 (nval[1] != emu->efx_voices_mask[1]); in snd_emu10k1_pcm_efx_voices_mask_put() 1538 emu->efx_voices_mask[0] = nval[0]; in snd_emu10k1_pcm_efx_voices_mask_put() 1539 emu->efx_voices_mask[1] = nval[1]; in snd_emu10k1_pcm_efx_voices_mask_put()
|
D | emufx.c | 340 unsigned int nval, val; in snd_emu10k1_gpr_ctl_put() local 346 nval = ucontrol->value.integer.value[i]; in snd_emu10k1_gpr_ctl_put() 347 if (nval < ctl->min) in snd_emu10k1_gpr_ctl_put() 348 nval = ctl->min; in snd_emu10k1_gpr_ctl_put() 349 if (nval > ctl->max) in snd_emu10k1_gpr_ctl_put() 350 nval = ctl->max; in snd_emu10k1_gpr_ctl_put() 351 if (nval != ctl->value[i]) in snd_emu10k1_gpr_ctl_put() 353 val = ctl->value[i] = nval; in snd_emu10k1_gpr_ctl_put()
|
/sound/pci/ |
D | es1938.c | 1091 unsigned char oval, nval; in snd_es1938_put_spatializer_enable() local 1093 nval = ucontrol->value.integer.value[0] ? 0x0c : 0x04; in snd_es1938_put_spatializer_enable() 1095 change = nval != oval; in snd_es1938_put_spatializer_enable() 1097 snd_es1938_mixer_write(chip, 0x50, nval & ~0x04); in snd_es1938_put_spatializer_enable() 1098 snd_es1938_mixer_write(chip, 0x50, nval); in snd_es1938_put_spatializer_enable()
|
D | ens1370.c | 1704 unsigned int nval; in snd_ensoniq_control_put() local 1707 nval = ucontrol->value.integer.value[0] ? mask : 0; in snd_ensoniq_control_put() 1709 change = (ensoniq->ctrl & mask) != nval; in snd_ensoniq_control_put() 1711 ensoniq->ctrl |= nval; in snd_ensoniq_control_put()
|
/sound/isa/ |
D | es18xx.c | 1045 unsigned char oval, nval; in snd_es18xx_put_spatializer_enable() local 1047 nval = ucontrol->value.integer.value[0] ? 0x0c : 0x04; in snd_es18xx_put_spatializer_enable() 1049 change = nval != oval; in snd_es18xx_put_spatializer_enable() 1051 snd_es18xx_mixer_write(chip, 0x50, nval & ~0x04); in snd_es18xx_put_spatializer_enable() 1052 snd_es18xx_mixer_write(chip, 0x50, nval); in snd_es18xx_put_spatializer_enable()
|
/sound/pci/cs46xx/ |
D | cs46xx_lib.c | 3583 u16 control, nval; in clkrun_hack() local 3591 nval = control = inw(chip->acpi_port + 0x10); in clkrun_hack() 3595 nval |= 0x2000; in clkrun_hack() 3597 nval &= ~0x2000; in clkrun_hack() 3598 if (nval != control) in clkrun_hack() 3599 outw(nval, chip->acpi_port + 0x10); in clkrun_hack()
|