/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 | 250 unsigned char val, nval; in snd_ice1712_digmix_route_ac97_put() local 254 nval = val & ~ICE1712_ROUTE_AC97; in snd_ice1712_digmix_route_ac97_put() 256 nval |= ICE1712_ROUTE_AC97; in snd_ice1712_digmix_route_ac97_put() 257 outb(nval, ICEMT(ice, MONITOR_ROUTECTRL)); in snd_ice1712_digmix_route_ac97_put() 259 return val != nval; in snd_ice1712_digmix_route_ac97_put() 320 unsigned char val, nval; in snd_ice1712_cs8427_set_input_clock() local 332 nval = val & 0xf0; in snd_ice1712_cs8427_set_input_clock() 334 nval |= 0x01; in snd_ice1712_cs8427_set_input_clock() 336 nval |= 0x04; in snd_ice1712_cs8427_set_input_clock() 337 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 | 1154 unsigned int val, nval; in update_spdif_rate() local 1158 nval = val = inw(ICEMT1724(ice, SPDIF_CTRL)); in update_spdif_rate() 1159 nval &= ~(7 << 12); in update_spdif_rate() 1162 case 48000: nval |= 2 << 12; break; in update_spdif_rate() 1163 case 32000: nval |= 3 << 12; break; in update_spdif_rate() 1164 case 88200: nval |= 4 << 12; break; in update_spdif_rate() 1165 case 96000: nval |= 5 << 12; break; in update_spdif_rate() 1166 case 192000: nval |= 6 << 12; break; in update_spdif_rate() 1167 case 176400: nval |= 7 << 12; break; in update_spdif_rate() 1169 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.enumerated.item[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 | 591 int val, nval; in snd_ice1712_ewx_io_sense_put() local 595 nval = ucontrol->value.enumerated.item[0] ? mask : 0; in snd_ice1712_ewx_io_sense_put() 598 nval |= val & ~mask; in snd_ice1712_ewx_io_sense_put() 599 snd_ice1712_write(ice, ICE1712_IREG_GPIO_DATA, nval); in snd_ice1712_ewx_io_sense_put() 601 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 | 703 unsigned char nval, oval; in snd_sb16_dma_control_put() local 706 nval = ucontrol->value.enumerated.item[0]; in snd_sb16_dma_control_put() 707 if (nval > 2) in snd_sb16_dma_control_put() 711 change = nval != oval; in snd_sb16_dma_control_put() 712 snd_sb16_set_dma_mode(chip, nval); in snd_sb16_dma_control_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 | 93 u16 val, nval, aval; in pdacf_pcm_prepare() local 113 val = nval = pdacf_reg_read(chip, PDAUDIOCF_REG_SCR); in pdacf_pcm_prepare() 114 nval &= ~(PDAUDIOCF_DATAFMT0|PDAUDIOCF_DATAFMT1); in pdacf_pcm_prepare() 120 nval |= PDAUDIOCF_DATAFMT0 | PDAUDIOCF_DATAFMT1; in pdacf_pcm_prepare() 143 if (val != nval) { in pdacf_pcm_prepare() 145 pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, nval); in pdacf_pcm_prepare()
|
/sound/soc/codecs/ |
D | sdw-mockup.c | 172 int nval; in sdw_mockup_read_prop() local 190 nval = hweight32(prop->source_ports); in sdw_mockup_read_prop() 191 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in sdw_mockup_read_prop() 208 nval = hweight32(prop->sink_ports); in sdw_mockup_read_prop() 209 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in sdw_mockup_read_prop()
|
D | rt711-sdca-sdw.c | 181 int nval; in rt711_sdca_read_prop() local 197 nval = hweight32(prop->source_ports); in rt711_sdca_read_prop() 198 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt711_sdca_read_prop() 215 nval = hweight32(prop->sink_ports); in rt711_sdca_read_prop() 216 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt711_sdca_read_prop()
|
D | rt715-sdca-sdw.c | 141 int nval, i; in rt715_sdca_read_prop() local 152 nval = hweight32(prop->source_ports); in rt715_sdca_read_prop() 153 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt715_sdca_read_prop()
|
D | rt700-sdw.c | 338 int nval, i; in rt700_read_prop() local 353 nval = hweight32(prop->source_ports); in rt700_read_prop() 354 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt700_read_prop() 372 nval = hweight32(prop->sink_ports); in rt700_read_prop() 373 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt700_read_prop()
|
D | rt711-sdw.c | 342 int nval; in rt711_read_prop() local 358 nval = hweight32(prop->source_ports); in rt711_read_prop() 359 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt711_read_prop() 377 nval = hweight32(prop->sink_ports); in rt711_read_prop() 378 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt711_read_prop()
|
D | rt1316-sdw.c | 198 int nval; in rt1316_read_prop() local 214 nval = hweight32(prop->source_ports); in rt1316_read_prop() 215 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt1316_read_prop() 232 nval = hweight32(prop->sink_ports); in rt1316_read_prop() 233 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt1316_read_prop()
|
D | max98373-sdw.c | 303 int nval, i; in max98373_read_prop() local 317 nval = hweight32(prop->source_ports); in max98373_read_prop() 318 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in max98373_read_prop() 336 nval = hweight32(prop->sink_ports); in max98373_read_prop() 337 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in max98373_read_prop()
|
D | rt5682-sdw.c | 556 int nval, i; in rt5682_read_prop() local 571 nval = hweight32(prop->source_ports); in rt5682_read_prop() 572 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt5682_read_prop() 590 nval = hweight32(prop->sink_ports); in rt5682_read_prop() 591 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt5682_read_prop()
|
D | rt715-sdw.c | 436 int nval, i; in rt715_read_prop() local 451 nval = hweight32(prop->source_ports); in rt715_read_prop() 452 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt715_read_prop()
|
/sound/isa/es1688/ |
D | es1688_lib.c | 739 unsigned char oval, nval; in snd_es1688_put_mux() local 746 nval = (ucontrol->value.enumerated.item[0] & 7) | (oval & ~15); in snd_es1688_put_mux() 747 change = nval != oval; in snd_es1688_put_mux() 749 snd_es1688_mixer_write(chip, ES1688_REC_DEV, nval); in snd_es1688_put_mux() 797 unsigned char oval, nval; in snd_es1688_put_single() local 799 nval = (ucontrol->value.integer.value[0] & mask); in snd_es1688_put_single() 801 nval = mask - nval; in snd_es1688_put_single() 802 nval <<= shift; in snd_es1688_put_single() 805 nval = (oval & ~(mask << shift)) | nval; in snd_es1688_put_single() 806 change = nval != oval; in snd_es1688_put_single() [all …]
|
/sound/ppc/ |
D | beep.c | 188 unsigned int oval, nval; in snd_pmac_put_beep() local 192 nval = ucontrol->value.integer.value[0]; in snd_pmac_put_beep() 193 if (nval > 100) in snd_pmac_put_beep() 195 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()
|