Lines Matching refs:awacs_reg
70 chip->awacs_reg[reg] = val; in snd_pmac_awacs_write_reg()
89 snd_pmac_awacs_write_noreg(chip, 1, chip->awacs_reg[1]); in screamer_recalibrate()
94 chip->awacs_reg[1] | MASK_RECALIBRATE | in screamer_recalibrate()
96 snd_pmac_awacs_write_noreg(chip, 1, chip->awacs_reg[1]); in screamer_recalibrate()
97 snd_pmac_awacs_write_noreg(chip, 6, chip->awacs_reg[6]); in screamer_recalibrate()
110 chip->awacs_reg[1] &= ~MASK_SAMPLERATE; in snd_pmac_awacs_set_format()
111 chip->awacs_reg[1] |= chip->rate_index << 3; in snd_pmac_awacs_set_format()
112 snd_pmac_awacs_write_reg(chip, 1, chip->awacs_reg[1]); in snd_pmac_awacs_set_format()
143 vol[0] = (chip->awacs_reg[reg] >> lshift) & 0xf; in snd_pmac_awacs_get_volume()
144 vol[1] = chip->awacs_reg[reg] & 0xf; in snd_pmac_awacs_get_volume()
177 oldval = chip->awacs_reg[reg]; in snd_pmac_awacs_put_volume()
209 val = (chip->awacs_reg[reg] >> shift) & 1; in snd_pmac_awacs_get_switch()
229 val = chip->awacs_reg[reg] & ~mask; in snd_pmac_awacs_put_switch()
232 changed = chip->awacs_reg[reg] != val; in snd_pmac_awacs_put_switch()
546 if (chip->awacs_reg[6] & MASK_MIC_BOOST) in snd_pmac_screamer_mic_boost_get()
548 if (chip->awacs_reg[0] & MASK_GAINLINE) in snd_pmac_screamer_mic_boost_get()
564 val0 = chip->awacs_reg[0] & ~MASK_GAINLINE; in snd_pmac_screamer_mic_boost_put()
565 val6 = chip->awacs_reg[6] & ~MASK_MIC_BOOST; in snd_pmac_screamer_mic_boost_put()
570 if (val0 != chip->awacs_reg[0]) { in snd_pmac_screamer_mic_boost_put()
574 if (val6 != chip->awacs_reg[6]) { in snd_pmac_screamer_mic_boost_put()
721 snd_pmac_awacs_write_noreg(chip, 0, chip->awacs_reg[0]); in awacs_restore_all_regs()
722 snd_pmac_awacs_write_noreg(chip, 1, chip->awacs_reg[1]); in awacs_restore_all_regs()
723 snd_pmac_awacs_write_noreg(chip, 2, chip->awacs_reg[2]); in awacs_restore_all_regs()
724 snd_pmac_awacs_write_noreg(chip, 4, chip->awacs_reg[4]); in awacs_restore_all_regs()
726 snd_pmac_awacs_write_noreg(chip, 5, chip->awacs_reg[5]); in awacs_restore_all_regs()
727 snd_pmac_awacs_write_noreg(chip, 6, chip->awacs_reg[6]); in awacs_restore_all_regs()
728 snd_pmac_awacs_write_noreg(chip, 7, chip->awacs_reg[7]); in awacs_restore_all_regs()
735 snd_pmac_awacs_write_noreg(chip, 1, (chip->awacs_reg[1] in snd_pmac_awacs_suspend()
745 chip->awacs_reg[1] & ~MASK_PAROUT); in snd_pmac_awacs_resume()
753 snd_pmac_awacs_write_noreg(chip, 6, chip->awacs_reg[6]); in snd_pmac_awacs_resume()
825 int reg = chip->awacs_reg[1] in snd_pmac_awacs_update_automute()
842 if (do_notify && reg == chip->awacs_reg[1]) in snd_pmac_awacs_update_automute()
881 chip->awacs_reg[0] = MASK_MUX_CD | 0xff | MASK_GAINLINE; in snd_pmac_awacs_init()
882 chip->awacs_reg[1] = MASK_CMUTE | MASK_AMUTE; in snd_pmac_awacs_init()
887 chip->awacs_reg[1] |= MASK_PAROUT; in snd_pmac_awacs_init()
893 chip->awacs_reg[2] = vol; in snd_pmac_awacs_init()
894 chip->awacs_reg[4] = vol; in snd_pmac_awacs_init()
897 chip->awacs_reg[5] = vol; in snd_pmac_awacs_init()
899 chip->awacs_reg[6] = MASK_MIC_BOOST; in snd_pmac_awacs_init()
900 chip->awacs_reg[7] = 0; in snd_pmac_awacs_init()
1129 snd_pmac_awacs_write_noreg(chip, 6, chip->awacs_reg[6]); in snd_pmac_awacs_init()
1130 snd_pmac_awacs_write_noreg(chip, 0, chip->awacs_reg[0]); in snd_pmac_awacs_init()