- Timestamp:
- Apr 14, 2011, 7:32:42 PM (14 years ago)
- Location:
- GPL/branches/uniaud32-2.1.x
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-2.1.x/alsa-kernel/core/pcm_lib.c
r543 r550 394 394 if (!xrun_debug(substream, XRUN_DEBUG_JIFFIESCHECK)) 395 395 goto no_jiffies_check; 396 #endif 396 397 /* Skip the jiffies check for hardwares with BATCH flag. 397 398 * Such hardware usually just increases the position at each IRQ, … … 436 437 } 437 438 no_jiffies_check: 438 #endif439 439 if (delta > runtime->period_size + runtime->period_size / 2) { 440 440 hw_ptr_error(substream, -
GPL/branches/uniaud32-2.1.x/drv32/idc.c
r548 r550 56 56 rprintf(("AlsaIDC: Resuming")); 57 57 OSS32_APMResume(); 58 DbgPrintIrq(); 58 59 } 59 60 … … 129 130 130 131 case IDC32_WAVE_STOP: 132 DbgPrintIrq(); 131 133 return OSS32_WaveStop(pPacket->streamid); 132 134 -
GPL/branches/uniaud32-2.1.x/drv32/irq.cpp
r548 r550 46 46 }; 47 47 48 extern DBGINT DbgInt;48 extern "C" DBGINT DbgInt; 49 49 50 50 //****************************************************************************** … … 98 98 sti(); 99 99 if( process_interrupt(ulSlotNo, &ulIrqNo) ) { 100 DbgInt.ulIntServiced[DbgInt.u sState]++;100 DbgInt.ulIntServiced[DbgInt.ulState]++; 101 101 // We've cleared all service requests. 102 102 // Clear (disable) Interrupts, Send EOI … … 107 107 return TRUE; 108 108 } 109 DbgInt.ulIntUnserviced[DbgInt.u sState]++;109 DbgInt.ulIntUnserviced[DbgInt.ulState]++; 110 110 // Indicate Interrupt not serviced by setting carry flag before 111 111 // returning to OS/2 kernel. OS/2 will then shut down the interrupt! -
GPL/branches/uniaud32-2.1.x/drv32/read.cpp
r548 r550 16 16 17 17 } 18 19 extern DBGINT DbgInt;20 18 21 19 ULONG StratRead(RP __far* _rp) -
GPL/branches/uniaud32-2.1.x/drv32/strategy.c
r548 r550 44 44 extern "C" BOOL fRewired; //pci.c 45 45 46 DBGINT DbgInt;46 extern "C" DBGINT DbgInt; 47 47 48 48 //****************************************************************************** … … 72 72 73 73 memset(&DbgInt, 0, sizeof(DbgInt)); 74 DbgPrintIrq(); 74 75 75 76 RPInit __far* rp = (RPInit __far*)_rp; 76 77 rc = DiscardableInit(rp); 77 78 //dprintf(("StratInit End rc=%d", rc)); 78 DbgInt.usState = 1; 79 DbgPrintIrq(); 80 DbgInt.ulState = 1; 79 81 return rc; 80 82 } … … 89 91 #pragma on (unreferenced) 90 92 { 91 DbgInt.u sState = 2;93 DbgInt.ulState = 2; 92 94 #ifdef ACPI 93 95 PciAdjustInterrupts(); 94 96 #endif 95 rprintf(("StratInitComplete: Init=%ld/%ld Between=%ld/%ld Complete=%ld/%ld", 96 DbgInt.ulIntServiced[0], DbgInt.ulIntUnserviced[0], 97 DbgInt.ulIntServiced[1], DbgInt.ulIntUnserviced[1], 98 DbgInt.ulIntServiced[2], DbgInt.ulIntUnserviced[2])); 97 DbgPrintIrq(); 99 98 //dprintf(("StratInitComplete")); 100 99 return(RPDONE); … … 176 175 rprintf(("Strategy: Resuming")); 177 176 OSS32_APMResume(); 177 DbgPrintIrq(); 178 178 } 179 179 -
GPL/branches/uniaud32-2.1.x/include/dbgos2.h
r548 r550 27 27 28 28 typedef struct { 29 unsigned short usState;29 unsigned long ulState; 30 30 unsigned long ulIntServiced[4]; 31 31 unsigned long ulIntUnserviced[4]; … … 39 39 extern char *szprintBuf; 40 40 int _cdecl printk(const char * fmt, ...); 41 extern void DbgPrintIrq(void); 41 42 #ifdef __cplusplus 42 43 } -
GPL/branches/uniaud32-2.1.x/lib32/debug.c
r519 r550 41 41 char hextab[]="0123456789ABCDEF"; 42 42 43 DBGINT DbgInt; 43 44 //-------------------- DecLongToASCII - 44 45 char * DecLongToASCII(char *StrPtr, ULONG lDecVal,USHORT Option) … … 391 392 } 392 393 394 void DbgPrintIrq(void) { 395 rprintf(("Init=%ld/%ld Between=%ld/%ld Complete=%ld/%ld", 396 DbgInt.ulIntServiced[0], DbgInt.ulIntUnserviced[0], 397 DbgInt.ulIntServiced[1], DbgInt.ulIntUnserviced[1], 398 DbgInt.ulIntServiced[2], DbgInt.ulIntUnserviced[2])); 399 } 400 -
GPL/branches/uniaud32-2.1.x/lib32/ioctl.c
r543 r550 402 402 pcms = pcm_instances(deviceid); 403 403 404 dprintf(("FillCaps: pcms=%i\n", pcms));404 //dprintf(("FillCaps: pcms=%i\n", pcms)); 405 405 if (!pcmcaps[deviceid]) 406 406 { … … 546 546 mixerhandle *pHandle = NULL; 547 547 int ret, i, j; 548 // struct snd_ctl_card_info *pinfo; 549 550 dprintf(("GetUniaudCardInfo")); 548 549 //dprintf(("GetUniaudCardInfo")); 551 550 552 551 if(alsa_fops == NULL) { … … 603 602 int ret, i, j, sz; 604 603 605 dprintf(("GetUniaudControlNum"));604 //dprintf(("GetUniaudControlNum")); 606 605 607 606 if(alsa_fops == NULL) { … … 670 669 int ret, i, j, sz; 671 670 672 dprintf(("GetUniaudControls"));671 //dprintf(("GetUniaudControls")); 673 672 674 673 if(alsa_fops == NULL) { … … 762 761 int ret, i, j, sz; 763 762 764 dprintf(("GetUniaudControlInfo"));763 //dprintf(("GetUniaudControlInfo")); 765 764 766 765 if(alsa_fops == NULL) { … … 863 862 if(pHandle) kfree(pHandle); 864 863 865 dprintf(("GetUniaudControlValueGet: id=%x 0=%x 1=%x", pElem->id.numid, pElem->value.integer.value[0], pElem->value.integer.value[1]));864 //dprintf(("GetUniaudControlValueGet: id=%x 0=%x 1=%x", pElem->id.numid, pElem->value.integer.value[0], pElem->value.integer.value[1])); 866 865 867 866 return OSSERR_SUCCESS; … … 939 938 params = (struct snd_pcm_hw_params *)pHwParams; 940 939 941 dprintf(("UniaudIoctlHWRefine"));940 //dprintf(("UniaudIoctlHWRefine")); 942 941 943 942 if (!params) return -1001; … … 957 956 params = (struct snd_pcm_hw_params *)pHwParams; 958 957 959 dprintf(("UniaudIoctlHWParamSet"));958 //dprintf(("UniaudIoctlHWParamSet")); 960 959 961 960 if (!params) return -1001; … … 975 974 params = (struct snd_pcm_sw_params *)pSwParams; 976 975 977 dprintf(("UniaudIoctlSWParamSet"));976 //dprintf(("UniaudIoctlSWParamSet")); 978 977 979 978 if (!params) return -1001; … … 992 991 struct snd_pcm_status *status = (struct snd_pcm_status *)pstatus; 993 992 994 dprintf(("UniaudIoctlPCMStatus"));993 //dprintf(("UniaudIoctlPCMStatus")); 995 994 996 995 if (!status) return -1001; … … 1008 1007 soundhandle *pHandle = (soundhandle *)streamid; 1009 1008 1010 dprintf(("UniaudIoctlPCMWrite"));1009 //dprintf(("UniaudIoctlPCMWrite")); 1011 1010 1012 1011 if (!buf) return -1001; … … 1028 1027 if (!pHandle) return -1002; 1029 1028 1030 dprintf(("UniaudIoctlPCMRead"));1029 //dprintf(("UniaudIoctlPCMRead")); 1031 1030 1032 1031 pHandle->file.f_flags = O_NONBLOCK; … … 1042 1041 soundhandle *pHandle = (soundhandle *)streamid; 1043 1042 1044 dprintf(("UniaudIoctlPCMPrepare"));1043 //dprintf(("UniaudIoctlPCMPrepare")); 1045 1044 1046 1045 if (!pHandle) return -1002; … … 1057 1056 soundhandle *pHandle = (soundhandle *)streamid; 1058 1057 1059 dprintf(("UniaudIoctlPCMResume: %x", pause));1058 //dprintf(("UniaudIoctlPCMResume: %x", pause)); 1060 1059 1061 1060 if (!pHandle) return -1002; … … 1073 1072 soundhandle *pHandle = (soundhandle *)streamid; 1074 1073 1075 dprintf(("UniaudIoctlPCMStart"));1074 //dprintf(("UniaudIoctlPCMStart")); 1076 1075 1077 1076 if (!pHandle) return -1002; … … 1089 1088 soundhandle *pHandle = (soundhandle *)streamid; 1090 1089 1091 dprintf(("UniaudIoctlPCMDrop"));1090 //dprintf(("UniaudIoctlPCMDrop")); 1092 1091 1093 1092 if (!pHandle) return -1002; -
GPL/branches/uniaud32-2.1.x/lib32/irq.c
r548 r550 38 38 39 39 BOOL fInInterrupt = FALSE; 40 extern BOOL fSuspended; //pci.c41 42 40 43 41 //****************************************************************************** … … 171 169 172 170 //dprintf(("enter int proc %d %d",ulSlotNo, *pulIrq)); 173 174 if(fSuspended)175 {//If our device is suspended, then we can't receive interrupts, so it must176 //be for some other device177 //Don't pass it to the linux handler as the device doesn't respond as expected178 //when suspended179 rprintf(("Slot %d IRQ %d suspended",ulSlotNo, *pulIrq));180 return FALSE;181 }182 171 183 172 if( ulSlotNo < MAX_IRQ_SLOTS ) -
GPL/branches/uniaud32-2.1.x/lib32/pci.c
r548 r550 47 47 //struct pci_bus pci_busses[MAX_PCI_BUSSES] = {0}; 48 48 49 BOOL fSuspended = FALSE;50 49 BOOL fRewired = FALSE; 51 50 extern int nrCardsDetected; … … 934 933 dprintf(("OSS32_APMResume")); 935 934 936 fSuspended = FALSE;937 938 935 for(i=0;i<MAX_PCI_DEVICES;i++) 939 936 { … … 958 955 959 956 dprintf(("OSS32_APMSuspend 1")); 960 961 fSuspended = TRUE;962 957 963 958 for(i=0;i<MAX_PCI_DEVICES;i++) … … 994 989 driver = pcidev->pcidriver; 995 990 if(driver && driver->suspend) driver->suspend(pcidev, SNDRV_CTL_POWER_D0); 996 fSuspended = TRUE;997 991 998 992 pcidev->irq_resource[0].flags = IORESOURCE_IRQ; -
GPL/branches/uniaud32-2.1.x/uniaud.inc
r548 r550 13 13 # ex RC3 GA FIXPACK2 beta_47 14 14 # Comment out to avoid a fixpack line in bldlevel 15 FIXPACK = BETA SVNr5 4815 FIXPACK = BETA SVNr550 16 16 17 17 # ALSA BUILD VERSION
Note:
See TracChangeset
for help on using the changeset viewer.