Changeset 549 for GPL/trunk/lib32
- Timestamp:
- Apr 13, 2011, 7:59:35 PM (15 years ago)
- Location:
- GPL/trunk/lib32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/lib32/debug.c
r518 r549 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/trunk/lib32/ioctl.c
r542 r549 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/trunk/lib32/irq.c
r547 r549 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/trunk/lib32/pci.c
r547 r549 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;
Note:
See TracChangeset
for help on using the changeset viewer.