• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/pci/ali5451/

Lines Matching refs:ALI_REG

168 #define ALI_REG(codec, x) ((codec)->port + x)
296 return (unsigned int)inl(ALI_REG(codec, port));
303 outl((unsigned int)val, ALI_REG(codec, port));
423 ALI_REG(codec, ALI_AC97_GPIO));
490 dwVal = inl(ALI_REG(codec, ALI_GLOBAL_CONTROL));
492 outl(dwVal, ALI_REG(codec, ALI_GLOBAL_CONTROL));
500 dwVal = inl(ALI_REG(codec, ALI_GLOBAL_CONTROL));
502 outl(dwVal, ALI_REG(codec, ALI_GLOBAL_CONTROL));
509 gc = inl(ALI_REG(codec, ALI_GC_CIR));
512 outl( gc, ALI_REG(codec, ALI_GC_CIR));
519 gc = inl(ALI_REG(codec, ALI_GC_CIR));
522 outl(gc, ALI_REG(codec, ALI_GC_CIR));
534 pchregs->data.ainten = inl(ALI_REG(codec, pchregs->regs.ainten));
536 outl(pchregs->data.ainten, ALI_REG(codec, pchregs->regs.ainten));
568 (inl(ALI_REG(codec, ALI_GLOBAL_CONTROL)) &
586 (inl(ALI_REG(codec, ALI_GLOBAL_CONTROL)) &
630 outl(mask, ALI_REG(codec, codec->chregs.regs.stop));
641 begintimer = inl(ALI_REG(codec, ALI_STIMER));
642 currenttimer = inl(ALI_REG(codec, ALI_STIMER));
647 currenttimer = inl(ALI_REG(codec, ALI_STIMER));
658 bval = inb(ALI_REG(codec, ALI_SPDIF_CTRL + 1));
660 outb(bval, ALI_REG(codec, ALI_SPDIF_CTRL + 1));
665 bval = inb(ALI_REG(codec, ALI_SPDIF_CTRL + 1));
676 bval = inb(ALI_REG(codec,ALI_SPDIF_CTRL + 1));
690 wval = inw(ALI_REG(codec, ALI_SPDIF_CTRL + 2));
693 outw(wval, ALI_REG(codec, ALI_SPDIF_CTRL + 2));
695 bval = inb(ALI_REG(codec, ALI_SPDIF_CS + 3)) & 0xf0;
696 outb(bval | 0x02, ALI_REG(codec, ALI_SPDIF_CS + 3));
698 wval = inw(ALI_REG(codec, ALI_SPDIF_CTRL + 2));
701 outw(wval, ALI_REG(codec, ALI_SPDIF_CTRL + 2));
703 bval = inb(ALI_REG(codec,ALI_SPDIF_CS + 3)) & 0xf0;
704 outb(bval | 0x03, ALI_REG(codec, ALI_SPDIF_CS + 3));
713 bval = inb(ALI_REG(codec, ALI_SPDIF_CTRL));
716 outb(bval, ALI_REG(codec, ALI_SPDIF_CTRL));
720 bval = inb(ALI_REG(codec, ALI_SPDIF_CS + 3));
737 dwVal = inl(ALI_REG(codec, ALI_GLOBAL_CONTROL));
739 outl(dwVal, ALI_REG(codec, ALI_GLOBAL_CONTROL));
741 dwVal = inb(ALI_REG(codec, ALI_SPDIF_CTRL));
743 outb(dwVal, ALI_REG(codec, ALI_SPDIF_CTRL));
752 dwVal = inl(ALI_REG(codec, ALI_GLOBAL_CONTROL));
754 outl(dwVal, ALI_REG(codec, ALI_GLOBAL_CONTROL));
771 bVal = inb(ALI_REG(codec, ALI_SPDIF_CTRL));
775 outb(bVal, ALI_REG(codec, ALI_SPDIF_CTRL));
776 outb(dwRate | 0x20, ALI_REG(codec, ALI_SPDIF_CS + 2));
779 outb(bVal, ALI_REG(codec, ALI_SPDIF_CTRL));
780 outw(rate | 0x10, ALI_REG(codec, ALI_SPDIF_CS + 2));
804 bVal = inb(ALI_REG(codec, ALI_SCTRL));
805 outb(bVal | ALI_SPDIF_OUT_ENABLE, ALI_REG(codec, ALI_SCTRL));
807 bVal = inb(ALI_REG(codec, ALI_SPDIF_CTRL));
808 outb(bVal & ALI_SPDIF_OUT_CH_STATUS, ALI_REG(codec, ALI_SPDIF_CTRL));
810 wVal = inw(ALI_REG(codec, ALI_GLOBAL_CONTROL));
812 outw(wVal, ALI_REG(codec, ALI_GLOBAL_CONTROL));
820 wVal = inw(ALI_REG(codec, ALI_GLOBAL_CONTROL));
822 outw(wVal, ALI_REG(codec, ALI_GLOBAL_CONTROL));
824 wVal = inw(ALI_REG(codec, ALI_SPDIF_CS));
829 outw(wVal, ALI_REG(codec, ALI_SPDIF_CS));
838 wVal = inw(ALI_REG(codec, ALI_GLOBAL_CONTROL));
840 outw(wVal, ALI_REG(codec, ALI_GLOBAL_CONTROL));
849 bVal = inb(ALI_REG(codec, ALI_SCTRL));
850 outb(bVal & ~ALI_SPDIF_OUT_ENABLE, ALI_REG(codec, ALI_SCTRL));
883 outb((u8)(pvoice->number), ALI_REG(codec, ALI_GC_CIR));
884 temp = inw(ALI_REG(codec, ALI_CSO_ALPHA_FMS + 2));
885 cspf = (inl(ALI_REG(codec, ALI_CSPF)) & mask) == mask;
907 outl(mask,ALI_REG(codec,pchregs->regs.aint));
921 audio_int = inl(ALI_REG(codec, ALI_MISCINT));
928 pchregs->data.aint = inl(ALI_REG(codec, pchregs->regs.aint));
933 ALI_REG(codec, ALI_MISCINT));
1021 outb((unsigned char)(Channel & 0x001f), ALI_REG(codec, ALI_GC_CIR));
1032 outb(Channel, ALI_REG(codec, ALI_GC_CIR));
1034 outl(ctlcmds[0], ALI_REG(codec, ALI_CSO_ALPHA_FMS));
1035 outl(ctlcmds[1], ALI_REG(codec, ALI_LBA));
1036 outl(ctlcmds[2], ALI_REG(codec, ALI_ESO_DELTA));
1037 outl(ctlcmds[3], ALI_REG(codec, ALI_GVSEL_PAN_VOC_CTRL_EC));
1039 outl(0x30000000, ALI_REG(codec, ALI_EBUF1)); /* Still Mode */
1040 outl(0x30000000, ALI_REG(codec, ALI_EBUF2)); /* Still Mode */
1149 outl(what, ALI_REG(codec, ALI_STOP));
1150 val = inl(ALI_REG(codec, ALI_AINTEN));
1155 outl(val, ALI_REG(codec, ALI_AINTEN));
1157 outl(what, ALI_REG(codec, ALI_START));
1255 (inl(ALI_REG(codec, ALI_GLOBAL_CONTROL)) &
1361 bValue = inb(ALI_REG(codec,ALI_SPDIF_CTRL));
1363 outb(bValue,ALI_REG(codec,ALI_SPDIF_CTRL));
1420 outb(pvoice->number, ALI_REG(codec, ALI_GC_CIR));
1421 cso = inw(ALI_REG(codec, ALI_CSO_ALPHA_FMS + 2));
1441 outb(pvoice->number, ALI_REG(codec, ALI_GC_CIR));
1442 cso = inw(ALI_REG(codec, ALI_CSO_ALPHA_FMS + 2));
1905 im->regs[ALI_MISCINT >> 2] = inl(ALI_REG(chip, ALI_MISCINT));
1906 /* im->regs[ALI_START >> 2] = inl(ALI_REG(chip, ALI_START)); */
1907 im->regs[ALI_STOP >> 2] = inl(ALI_REG(chip, ALI_STOP));
1910 outl(0, ALI_REG(chip, ALI_MISCINT));
1915 im->regs[i] = inl(ALI_REG(chip, i*4));
1919 outb(i, ALI_REG(chip, ALI_GC_CIR));
1921 im->channel_regs[i][j] = inl(ALI_REG(chip, j*4 + 0xe0));
1925 outl(0xffffffff, ALI_REG(chip, ALI_STOP));
1959 outb(i, ALI_REG(chip, ALI_GC_CIR));
1961 outl(im->channel_regs[i][j], ALI_REG(chip, j*4 + 0xe0));
1968 outl(im->regs[i], ALI_REG(chip, i*4));
1972 outl(im->regs[ALI_START >> 2], ALI_REG(chip, ALI_START));
1974 outl(im->regs[ALI_MISCINT >> 2], ALI_REG(chip, ALI_MISCINT));
2034 outl(0x80000001, ALI_REG(codec, ALI_GLOBAL_CONTROL));
2035 outl(0x00000000, ALI_REG(codec, ALI_AINTEN));
2036 outl(0xffffffff, ALI_REG(codec, ALI_AINT));
2037 outl(0x00000000, ALI_REG(codec, ALI_VOLUME));
2038 outb(0x10, ALI_REG(codec, ALI_MPUR2));
2051 if (inl(ALI_REG(codec, ALI_SCTRL)) & ALI_SCTRL_CODEC2_READY) {
2053 outl(inl(ALI_REG(codec, ALI_SCTRL)) |
2056 ALI_REG(codec, ALI_SCTRL));
2071 snd_iprintf(buf, "%02x: %08x\n", i, inl(ALI_REG(codec, i)));