Changeset 592


Ignore:
Timestamp:
Mar 9, 2017, 1:01:06 AM (8 years ago)
Author:
David Azarewicz
Message:

Remove dead code. update build system. Fix api interrupt defect.

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  
    216216                        struct snd_dma_buffer *dmab)
    217217{
    218     dprintf(("snd_dma_alloc_pages with size = %d", size));
     218    dprintf(("snd_dma_alloc_pages with size = %d",size));
    219219        if (WARN_ON(!size))
    220220                return -ENXIO;
  • GPL/branches/uniaud32-2.1.x/alsa-kernel/core/pcm_lib.c

    r569 r592  
    17281728        struct snd_pcm_runtime *runtime;
    17291729        unsigned long flags;
    1730 
     1730       
    17311731        if (PCM_RUNTIME_CHECK(substream))
    17321732                return;
  • GPL/branches/uniaud32-2.1.x/alsa-kernel/pci/hda/hda_intel.c

    r569 r592  
    495495        [AZX_DRIVER_ULI] = "HDA ULI M5461",
    496496        [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",
    499499        [AZX_DRIVER_GENERIC] = "HD-Audio Generic",
    500500};
     
    19711971        if (WARN_ONCE(!azx_dev->period_bytes,
    19721972                      "hda-intel: zero azx_dev->period_bytes"))
     1973                return -1; /* this shouldn't happen! */
    19731974#endif
    1974                 return -1; /* this shouldn't happen! */
    19751975        if (wallclk < (azx_dev->period_wallclk * 5) / 4 &&
    19761976            pos % azx_dev->period_bytes > azx_dev->period_bytes / 2)
  • GPL/branches/uniaud32-2.1.x/drv32/Makefile

    r588 r592  
    105105$(OBJDIR)\$(TARGET).sys: $(LNKFILE) $(FILES) $(LIBS)
    106106  @%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)
    108108  $(LINK) @$(LNKFILE)
    109109  copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN)
  • GPL/branches/uniaud32-2.1.x/drv32/idc.c

    r588 r592  
    4040extern int pcm_device;
    4141WORD32 OSS32IDC(ULONG cmd, PIDC32_PACKET pPacket);
    42 extern BOOL fRewired; //pci.c
    4342
    4443//packet pointer must reference a structure on the stack
     
    5049    ULONG  oldfileid;
    5150    OSSRET rc;
    52 
    53         if (fRewired) {
    54                 fRewired = FALSE;
    55                 rprintf(("AlsaIDC: Resuming"));
    56                 OSS32_APMResume();
    57                 DbgPrintIrq();
    58         }
    5951
    6052    //Sets file id in current task structure
  • GPL/branches/uniaud32-2.1.x/drv32/strategy.c

    r588 r592  
    4343ULONG deviceOwner = DEV_NO_OWNER;
    4444ULONG numOS2Opens = 0;
    45 extern BOOL fRewired; //pci.c
    4645
    4746extern DBGINT DbgInt;
     
    170169ULONG Strategy(REQPACKET __far* rp)
    171170{
    172   if (fRewired)
    173   {
    174     fRewired = FALSE;
    175     rprintf(("Strategy: Resuming"));
    176     OSS32_APMResume();
    177     DbgPrintIrq();
    178   }
    179 
    180171  if (rp->bCommand < sizeof(StratDispatch)/sizeof(StratDispatch[0])) return(StratDispatch[rp->bCommand](rp));
    181172  else return(RPERR_BADCOMMAND | RPDONE);
  • GPL/branches/uniaud32-2.1.x/lib32/pci.c

    r576 r592  
    4747//struct pci_bus pci_busses[MAX_PCI_BUSSES] = {0};
    4848
    49 BOOL    fRewired = FALSE;
    5049extern int nrCardsDetected;
    5150
     
    5554#define PCI_CONFIG_DATA                 0xCFC
    5655
    57 #ifdef ACPI
    58 APIRET APIENTRY ACPIFindPCIDevice(ULONG Bus, ULONG Dev, ULONG Fun, ULONG *PicIRQ, ULONG *ApicIRQ, ULONG *Hdl, char *Component);
    59 #endif
    60 
    6156//******************************************************************************
    6257#define CONFIG_CMD(dev, where)  \
     
    140135        int             resNo, addr;
    141136        u32 devNr, busNr, funcNr, detectedId, cfgaddrreg, ulPciAdr, ulTmp1, ulTmp2;
    142 #ifdef ACPI
    143         APIRET                   rc;
    144         ULONG                    PicIRQ, ApicIRQ;
    145 #endif
    146137        u8              headerType;
    147138
     
    239230                                pci_read_config_dword(pcidev, PCI_INTERRUPT_LINE, &ulTmp1);
    240231                                rprintf(("pci_query_device: PCI config IRQ=%d", ulTmp1&0xff));
    241 #ifdef ACPI
    242                                 rc = ACPIFindPCIDevice( (ULONG)busNr,                                            // Bus
    243                                                                                 (ULONG)devNr,                                            // Dev
    244                                                                                 (ULONG)(pcidev->devfn >> 8) & 7,         // Function
    245                                                                                 &PicIRQ,                                                         // PIC IRQ
    246                                                                                 &ApicIRQ,                                                        // APIC IRQ
    247                                                                                 NULL,                                                            // ACPI handle to finding device
    248                                                                                 "Uniaud32");                                             // Name for acpi log
    249                                 if (!rc) {
    250                                         if (PicIRQ) ulTmp1 = (ulTmp1 & (~0xff)) | (PicIRQ & 0xff); // Choose Pic interrupt for init time processing
    251                                         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 and
    254                                         pcidev->apicirq = ApicIRQ; // Save the Apic interrupt for switching later
    255                                 }
    256 #endif /* ACPI */
    257232                                if( (u8)ulTmp1 && (u8)ulTmp1 != 0xff ) {
    258233                                        pcidev->irq_resource[0].flags = IORESOURCE_IRQ;
     
    972947}
    973948
    974 #ifdef ACPI
    975 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  
    1313# ex RC3  GA  FIXPACK2 beta_47
    1414# Comment out to avoid a fixpack line in bldlevel
    15 FIXPACK = BETA SVN574
     15FIXPACK = BETA
    1616
    1717# ALSA BUILD VERSION
Note: See TracChangeset for help on using the changeset viewer.