Lines Matching refs:newreg

456 	u32 oldreg, newreg;  in spdif_bit_switch_put()  local
462 newreg = oldreg | bit; in spdif_bit_switch_put()
464 newreg = oldreg & ~bit; in spdif_bit_switch_put()
465 changed = newreg != oldreg; in spdif_bit_switch_put()
467 oxygen_write32(chip, OXYGEN_SPDIF_CONTROL, newreg); in spdif_bit_switch_put()
500 u8 oldreg, newreg; in monitor_put() local
506 newreg = oldreg | bit; in monitor_put()
508 newreg = oldreg & ~bit; in monitor_put()
509 changed = newreg != oldreg; in monitor_put()
511 oxygen_write8(chip, OXYGEN_ADC_MONITOR, newreg); in monitor_put()
562 u16 oldreg, newreg; in ac97_switch_put() local
567 newreg = oldreg; in ac97_switch_put()
569 newreg |= 1 << bitnr; in ac97_switch_put()
571 newreg &= ~(1 << bitnr); in ac97_switch_put()
572 change = newreg != oldreg; in ac97_switch_put()
574 oxygen_write_ac97(chip, codec, index, newreg); in ac97_switch_put()
576 chip->model.ac97_switch(chip, index, newreg & 0x8000); in ac97_switch_put()
579 newreg & 0x8000 ? in ac97_switch_put()
581 if (!(newreg & 0x8000)) { in ac97_switch_put()
588 bitnr == 15 && !(newreg & 0x8000)) { in ac97_switch_put()
638 u16 oldreg, newreg; in ac97_volume_put() local
644 newreg = oldreg & ~0x1f; in ac97_volume_put()
645 newreg |= 31 - (value->value.integer.value[0] & 0x1f); in ac97_volume_put()
647 newreg = oldreg & ~0x1f1f; in ac97_volume_put()
648 newreg |= (31 - (value->value.integer.value[0] & 0x1f)) << 8; in ac97_volume_put()
649 newreg |= 31 - (value->value.integer.value[1] & 0x1f); in ac97_volume_put()
651 change = newreg != oldreg; in ac97_volume_put()
653 oxygen_write_ac97(chip, codec, index, newreg); in ac97_volume_put()
682 u16 oldreg, newreg; in mic_fmic_source_put() local
688 newreg = oldreg | CM9780_FMIC2MIC; in mic_fmic_source_put()
690 newreg = oldreg & ~CM9780_FMIC2MIC; in mic_fmic_source_put()
691 change = newreg != oldreg; in mic_fmic_source_put()
693 oxygen_write_ac97(chip, 0, CM9780_JACK, newreg); in mic_fmic_source_put()
726 u16 oldreg, newreg; in ac97_fp_rec_volume_put() local
731 newreg = oldreg & ~0x0707; in ac97_fp_rec_volume_put()
732 newreg = newreg | (value->value.integer.value[0] & 7); in ac97_fp_rec_volume_put()
733 newreg = newreg | ((value->value.integer.value[0] & 7) << 8); in ac97_fp_rec_volume_put()
734 change = newreg != oldreg; in ac97_fp_rec_volume_put()
736 oxygen_write_ac97(chip, 1, AC97_REC_GAIN, newreg); in ac97_fp_rec_volume_put()