Changeset 592
- Timestamp:
- Mar 9, 2017, 1:01:06 AM (8 years ago)
- Location:
- GPL/branches/uniaud32-2.1.x
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-2.1.x/alsa-kernel/core/memalloc.c
r519 r592 216 216 struct snd_dma_buffer *dmab) 217 217 { 218 dprintf(("snd_dma_alloc_pages with size = %d", 218 dprintf(("snd_dma_alloc_pages with size = %d",size)); 219 219 if (WARN_ON(!size)) 220 220 return -ENXIO; -
GPL/branches/uniaud32-2.1.x/alsa-kernel/core/pcm_lib.c
r569 r592 1728 1728 struct snd_pcm_runtime *runtime; 1729 1729 unsigned long flags; 1730 1730 1731 1731 if (PCM_RUNTIME_CHECK(substream)) 1732 1732 return; -
GPL/branches/uniaud32-2.1.x/alsa-kernel/pci/hda/hda_intel.c
r569 r592 495 495 [AZX_DRIVER_ULI] = "HDA ULI M5461", 496 496 [AZX_DRIVER_NVIDIA] = "HDA NVidia", 497 [AZX_DRIVER_TERA] = "HDA Teradici", 498 [AZX_DRIVER_CTX] = "HDA Creative", 497 [AZX_DRIVER_TERA] = "HDA Teradici", 498 [AZX_DRIVER_CTX] = "HDA Creative", 499 499 [AZX_DRIVER_GENERIC] = "HD-Audio Generic", 500 500 }; … … 1971 1971 if (WARN_ONCE(!azx_dev->period_bytes, 1972 1972 "hda-intel: zero azx_dev->period_bytes")) 1973 return -1; /* this shouldn't happen! */ 1973 1974 #endif 1974 return -1; /* this shouldn't happen! */1975 1975 if (wallclk < (azx_dev->period_wallclk * 5) / 4 && 1976 1976 pos % azx_dev->period_bytes > azx_dev->period_bytes / 2) -
GPL/branches/uniaud32-2.1.x/drv32/Makefile
r588 r592 105 105 $(OBJDIR)\$(TARGET).sys: $(LNKFILE) $(FILES) $(LIBS) 106 106 @%create $(DEFFILE) 107 $(ROOT)\tools\AddToFile.cmd $(DEFFILE),description,BLDLEVEL,$(BLDLVL_VENDOR),$(BLDLVL_VERSION),Universal Audio Driver for OS/2 and eCS(c) %Y $(BLDLVL_VENDOR),$(BLDLVL_FIXPACK)107 $(ROOT)\tools\AddToFile.cmd $(DEFFILE),description,BLDLEVEL,$(BLDLVL_VENDOR),$(BLDLVL_VERSION),Universal Audio Driver for OS/2 (c) %Y $(BLDLVL_VENDOR),$(BLDLVL_FIXPACK) 108 108 $(LINK) @$(LNKFILE) 109 109 copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN) -
GPL/branches/uniaud32-2.1.x/drv32/idc.c
r588 r592 40 40 extern int pcm_device; 41 41 WORD32 OSS32IDC(ULONG cmd, PIDC32_PACKET pPacket); 42 extern BOOL fRewired; //pci.c43 42 44 43 //packet pointer must reference a structure on the stack … … 50 49 ULONG oldfileid; 51 50 OSSRET rc; 52 53 if (fRewired) {54 fRewired = FALSE;55 rprintf(("AlsaIDC: Resuming"));56 OSS32_APMResume();57 DbgPrintIrq();58 }59 51 60 52 //Sets file id in current task structure -
GPL/branches/uniaud32-2.1.x/drv32/strategy.c
r588 r592 43 43 ULONG deviceOwner = DEV_NO_OWNER; 44 44 ULONG numOS2Opens = 0; 45 extern BOOL fRewired; //pci.c46 45 47 46 extern DBGINT DbgInt; … … 170 169 ULONG Strategy(REQPACKET __far* rp) 171 170 { 172 if (fRewired)173 {174 fRewired = FALSE;175 rprintf(("Strategy: Resuming"));176 OSS32_APMResume();177 DbgPrintIrq();178 }179 180 171 if (rp->bCommand < sizeof(StratDispatch)/sizeof(StratDispatch[0])) return(StratDispatch[rp->bCommand](rp)); 181 172 else return(RPERR_BADCOMMAND | RPDONE); -
GPL/branches/uniaud32-2.1.x/lib32/pci.c
r576 r592 47 47 //struct pci_bus pci_busses[MAX_PCI_BUSSES] = {0}; 48 48 49 BOOL fRewired = FALSE;50 49 extern int nrCardsDetected; 51 50 … … 55 54 #define PCI_CONFIG_DATA 0xCFC 56 55 57 #ifdef ACPI58 APIRET APIENTRY ACPIFindPCIDevice(ULONG Bus, ULONG Dev, ULONG Fun, ULONG *PicIRQ, ULONG *ApicIRQ, ULONG *Hdl, char *Component);59 #endif60 61 56 //****************************************************************************** 62 57 #define CONFIG_CMD(dev, where) \ … … 140 135 int resNo, addr; 141 136 u32 devNr, busNr, funcNr, detectedId, cfgaddrreg, ulPciAdr, ulTmp1, ulTmp2; 142 #ifdef ACPI143 APIRET rc;144 ULONG PicIRQ, ApicIRQ;145 #endif146 137 u8 headerType; 147 138 … … 239 230 pci_read_config_dword(pcidev, PCI_INTERRUPT_LINE, &ulTmp1); 240 231 rprintf(("pci_query_device: PCI config IRQ=%d", ulTmp1&0xff)); 241 #ifdef ACPI242 rc = ACPIFindPCIDevice( (ULONG)busNr, // Bus243 (ULONG)devNr, // Dev244 (ULONG)(pcidev->devfn >> 8) & 7, // Function245 &PicIRQ, // PIC IRQ246 &ApicIRQ, // APIC IRQ247 NULL, // ACPI handle to finding device248 "Uniaud32"); // Name for acpi log249 if (!rc) {250 if (PicIRQ) ulTmp1 = (ulTmp1 & (~0xff)) | (PicIRQ & 0xff); // Choose Pic interrupt for init time processing251 else if (ApicIRQ) ulTmp1 = (ulTmp1 & (~0xff)) | (ApicIRQ & 0xff);252 rprintf(("pci_query_device: IRQs ACPI PIC=%ld APIC=%ld chosen=%d", PicIRQ, ApicIRQ, ulTmp1&0xff));253 pcidev->picirq = PicIRQ; // Save the Pic and254 pcidev->apicirq = ApicIRQ; // Save the Apic interrupt for switching later255 }256 #endif /* ACPI */257 232 if( (u8)ulTmp1 && (u8)ulTmp1 != 0xff ) { 258 233 pcidev->irq_resource[0].flags = IORESOURCE_IRQ; … … 972 947 } 973 948 974 #ifdef ACPI975 void PciAdjustInterrupts() {976 int i;977 struct pci_dev *pcidev;978 struct pci_driver *driver;979 ULONG ulTmp1, rc;980 981 for (i=0; i<MAX_PCI_DEVICES; i++) {982 if (!pci_devices[i].devfn) continue;983 pcidev = &pci_devices[i];984 ulTmp1 = pcidev->irq;985 if (pcidev->apicirq) ulTmp1 = pcidev->apicirq;986 else if (pcidev->picirq) ulTmp1 = pcidev->picirq;987 rprintf(("PciAdjustInterrupts: IRQs ACPI PIC=%ld APIC=%ld was=%d chosen=%ld", pcidev->picirq, pcidev->apicirq, pcidev->irq, ulTmp1));988 if( (u8)ulTmp1 && ((u8)ulTmp1 != 0xff) && ((u8)ulTmp1 != pcidev->irq) ) {989 RMSetHandles(pcidev->hAdapter, pcidev->hDevice); /* DAZ - dirty hack */990 driver = pcidev->pcidriver;991 if(driver && driver->suspend) driver->suspend(pcidev, SNDRV_CTL_POWER_D0);992 993 pcidev->irq_resource[0].flags = IORESOURCE_IRQ;994 pcidev->irq_resource[0].start = pcidev->irq_resource[0].end = ulTmp1 & 0xffff;995 pcidev->irq = (u8)ulTmp1;996 997 fRewired = TRUE;998 // if(driver && driver->resume) driver->resume(pcidev);999 }1000 } /* for loop */1001 }1002 #endif -
GPL/branches/uniaud32-2.1.x/uniaud.inc
r574 r592 13 13 # ex RC3 GA FIXPACK2 beta_47 14 14 # Comment out to avoid a fixpack line in bldlevel 15 FIXPACK = BETA SVN57415 FIXPACK = BETA 16 16 17 17 # ALSA BUILD VERSION
Note:
See TracChangeset
for help on using the changeset viewer.