Lines Matching refs:newreg

444 	u32 oldreg, newreg;  in spdif_bit_switch_put()  local
450 newreg = oldreg | bit; in spdif_bit_switch_put()
452 newreg = oldreg & ~bit; in spdif_bit_switch_put()
453 changed = newreg != oldreg; in spdif_bit_switch_put()
455 oxygen_write32(chip, OXYGEN_SPDIF_CONTROL, newreg); in spdif_bit_switch_put()
488 u8 oldreg, newreg; in monitor_put() local
494 newreg = oldreg | bit; in monitor_put()
496 newreg = oldreg & ~bit; in monitor_put()
497 changed = newreg != oldreg; in monitor_put()
499 oxygen_write8(chip, OXYGEN_ADC_MONITOR, newreg); in monitor_put()
550 u16 oldreg, newreg; in ac97_switch_put() local
555 newreg = oldreg; in ac97_switch_put()
557 newreg |= 1 << bitnr; in ac97_switch_put()
559 newreg &= ~(1 << bitnr); in ac97_switch_put()
560 change = newreg != oldreg; in ac97_switch_put()
562 oxygen_write_ac97(chip, codec, index, newreg); in ac97_switch_put()
564 chip->model.ac97_switch(chip, index, newreg & 0x8000); in ac97_switch_put()
567 newreg & 0x8000 ? in ac97_switch_put()
569 if (!(newreg & 0x8000)) { in ac97_switch_put()
576 bitnr == 15 && !(newreg & 0x8000)) { in ac97_switch_put()
626 u16 oldreg, newreg; in ac97_volume_put() local
632 newreg = oldreg & ~0x1f; in ac97_volume_put()
633 newreg |= 31 - (value->value.integer.value[0] & 0x1f); in ac97_volume_put()
635 newreg = oldreg & ~0x1f1f; in ac97_volume_put()
636 newreg |= (31 - (value->value.integer.value[0] & 0x1f)) << 8; in ac97_volume_put()
637 newreg |= 31 - (value->value.integer.value[1] & 0x1f); in ac97_volume_put()
639 change = newreg != oldreg; in ac97_volume_put()
641 oxygen_write_ac97(chip, codec, index, newreg); in ac97_volume_put()
670 u16 oldreg, newreg; in mic_fmic_source_put() local
676 newreg = oldreg | CM9780_FMIC2MIC; in mic_fmic_source_put()
678 newreg = oldreg & ~CM9780_FMIC2MIC; in mic_fmic_source_put()
679 change = newreg != oldreg; in mic_fmic_source_put()
681 oxygen_write_ac97(chip, 0, CM9780_JACK, newreg); in mic_fmic_source_put()
714 u16 oldreg, newreg; in ac97_fp_rec_volume_put() local
719 newreg = oldreg & ~0x0707; in ac97_fp_rec_volume_put()
720 newreg = newreg | (value->value.integer.value[0] & 7); in ac97_fp_rec_volume_put()
721 newreg = newreg | ((value->value.integer.value[1] & 7) << 8); in ac97_fp_rec_volume_put()
722 change = newreg != oldreg; in ac97_fp_rec_volume_put()
724 oxygen_write_ac97(chip, 1, AC97_REC_GAIN, newreg); in ac97_fp_rec_volume_put()