Lines Matching refs:bval
633 u8 bval, R1 = 0, R2; in snd_ali_detect_spdif_rate() local
635 bval = inb(ALI_REG(codec, ALI_SPDIF_CTRL + 1)); in snd_ali_detect_spdif_rate()
636 bval |= 0x1F; in snd_ali_detect_spdif_rate()
637 outb(bval, ALI_REG(codec, ALI_SPDIF_CTRL + 1)); in snd_ali_detect_spdif_rate()
642 bval = inb(ALI_REG(codec, ALI_SPDIF_CTRL + 1)); in snd_ali_detect_spdif_rate()
643 R1 = bval & 0x1F; in snd_ali_detect_spdif_rate()
653 bval = inb(ALI_REG(codec,ALI_SPDIF_CTRL + 1)); in snd_ali_detect_spdif_rate()
654 R2 = bval & 0x1F; in snd_ali_detect_spdif_rate()
672 bval = inb(ALI_REG(codec, ALI_SPDIF_CS + 3)) & 0xf0; in snd_ali_detect_spdif_rate()
673 outb(bval | 0x02, ALI_REG(codec, ALI_SPDIF_CS + 3)); in snd_ali_detect_spdif_rate()
680 bval = inb(ALI_REG(codec,ALI_SPDIF_CS + 3)) & 0xf0; in snd_ali_detect_spdif_rate()
681 outb(bval | 0x03, ALI_REG(codec, ALI_SPDIF_CS + 3)); in snd_ali_detect_spdif_rate()
688 u8 bval; in snd_ali_get_spdif_in_rate() local
690 bval = inb(ALI_REG(codec, ALI_SPDIF_CTRL)); in snd_ali_get_spdif_in_rate()
691 bval &= 0x7f; in snd_ali_get_spdif_in_rate()
692 bval |= 0x40; in snd_ali_get_spdif_in_rate()
693 outb(bval, ALI_REG(codec, ALI_SPDIF_CTRL)); in snd_ali_get_spdif_in_rate()
697 bval = inb(ALI_REG(codec, ALI_SPDIF_CS + 3)); in snd_ali_get_spdif_in_rate()
698 bval &= 0x0f; in snd_ali_get_spdif_in_rate()
700 switch (bval) { in snd_ali_get_spdif_in_rate()