Lines Matching refs:newreg

455 	u32 oldreg, newreg;  in spdif_bit_switch_put()  local
461 newreg = oldreg | bit; in spdif_bit_switch_put()
463 newreg = oldreg & ~bit; in spdif_bit_switch_put()
464 changed = newreg != oldreg; in spdif_bit_switch_put()
466 oxygen_write32(chip, OXYGEN_SPDIF_CONTROL, newreg); in spdif_bit_switch_put()
499 u8 oldreg, newreg; in monitor_put() local
505 newreg = oldreg | bit; in monitor_put()
507 newreg = oldreg & ~bit; in monitor_put()
508 changed = newreg != oldreg; in monitor_put()
510 oxygen_write8(chip, OXYGEN_ADC_MONITOR, newreg); in monitor_put()
561 u16 oldreg, newreg; in ac97_switch_put() local
566 newreg = oldreg; in ac97_switch_put()
568 newreg |= 1 << bitnr; in ac97_switch_put()
570 newreg &= ~(1 << bitnr); in ac97_switch_put()
571 change = newreg != oldreg; in ac97_switch_put()
573 oxygen_write_ac97(chip, codec, index, newreg); in ac97_switch_put()
575 chip->model.ac97_switch(chip, index, newreg & 0x8000); in ac97_switch_put()
578 newreg & 0x8000 ? in ac97_switch_put()
580 if (!(newreg & 0x8000)) { in ac97_switch_put()
587 bitnr == 15 && !(newreg & 0x8000)) { in ac97_switch_put()
634 u16 oldreg, newreg; in ac97_volume_put() local
639 newreg = oldreg; in ac97_volume_put()
640 newreg = (newreg & ~0x1f) | in ac97_volume_put()
643 newreg = (newreg & ~0x1f00) | in ac97_volume_put()
646 newreg = (newreg & ~0x1f00) | ((newreg & 0x1f) << 8); in ac97_volume_put()
647 change = newreg != oldreg; in ac97_volume_put()
649 oxygen_write_ac97(chip, codec, index, newreg); in ac97_volume_put()
678 u16 oldreg, newreg; in mic_fmic_source_put() local
684 newreg = oldreg | CM9780_FMIC2MIC; in mic_fmic_source_put()
686 newreg = oldreg & ~CM9780_FMIC2MIC; in mic_fmic_source_put()
687 change = newreg != oldreg; in mic_fmic_source_put()
689 oxygen_write_ac97(chip, 0, CM9780_JACK, newreg); in mic_fmic_source_put()
722 u16 oldreg, newreg; in ac97_fp_rec_volume_put() local
727 newreg = oldreg & ~0x0707; in ac97_fp_rec_volume_put()
728 newreg = newreg | (value->value.integer.value[0] & 7); in ac97_fp_rec_volume_put()
729 newreg = newreg | ((value->value.integer.value[0] & 7) << 8); in ac97_fp_rec_volume_put()
730 change = newreg != oldreg; in ac97_fp_rec_volume_put()
732 oxygen_write_ac97(chip, 1, AC97_REC_GAIN, newreg); in ac97_fp_rec_volume_put()