Ignore:
Timestamp:
Sep 22, 2010, 8:52:19 PM (15 years ago)
Author:
David Azarewicz
Message:

changes to debug statements for api debugging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/lib32/ioctl.c

    r528 r542  
    139139                if (j++ > timeout)
    140140                {
    141                         printk("j with tout =%i. handle: %x\n",j, pHandle);
     141                        dprintf(("WaitForPCMInterrupt: Timeout j=%i handle=%x\n", j, pHandle));
    142142                        return -ETIME;
    143143                }
     
    548548//        struct snd_ctl_card_info *pinfo;
    549549
     550        dprintf(("GetUniaudCardInfo"));
     551
    550552        if(alsa_fops == NULL) {
    551553                ret = OSSERR_NO_DEVICE_AVAILABLE;
     
    600602        mixerhandle *pHandle = NULL;
    601603        int              ret, i, j, sz;
     604
     605        dprintf(("GetUniaudControlNum"));
    602606
    603607        if(alsa_fops == NULL) {
     
    665669        mixerhandle *pHandle = NULL;
    666670        int              ret, i, j, sz;
     671
     672        dprintf(("GetUniaudControls"));
    667673
    668674        if(alsa_fops == NULL) {
     
    756762        int              ret, i, j, sz;
    757763
     764        dprintf(("GetUniaudControlInfo"));
     765
    758766        if(alsa_fops == NULL) {
    759767                ret = OSSERR_NO_DEVICE_AVAILABLE;
     
    811819{
    812820        struct snd_ctl_elem_value *pElem = NULL;
    813         struct snd_ctl_elem_info  *pElemInfo = NULL;
     821        //struct snd_ctl_elem_info  *pElemInfo = NULL;
    814822        mixerhandle *pHandle = NULL;
    815823        int              ret, i, j, sz;
     
    848856                goto failure;
    849857        }
    850 
    851 //        printk("sizeof elem_info %i\n",sizeof(struct snd_ctl_elem_info));
    852858
    853859        pElem->id.numid = id;
     
    857863        if(pHandle) kfree(pHandle);
    858864
     865        dprintf(("GetUniaudControlValueGet: id=%x 0=%x 1=%x", pElem->id.numid, pElem->value.integer.value[0], pElem->value.integer.value[1]));
     866
    859867        return OSSERR_SUCCESS;
    860868failure:
     
    869877{
    870878        struct snd_ctl_elem_value *pElem = NULL;
    871         struct snd_ctl_elem_info  *pElemInfo = NULL;
     879        //struct snd_ctl_elem_info  *pElemInfo = NULL;
    872880        mixerhandle *pHandle = NULL;
    873881        int              ret, i, j, sz;
     
    907915        }
    908916
    909 //        printk("sizeof elem_info %i\n",sizeof(struct snd_ctl_elem_info));
    910 
    911917        pElem->id.numid = id;
    912918        pElem->indirect = 0;
     919
    913920        ret = pHandle->file.f_op->ioctl(&pHandle->inode, &pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem);
    914921        ret = pHandle->file.f_op->release(&pHandle->inode, &pHandle->file);
     
    930937        soundhandle        *pHandle = (soundhandle *)streamid;
    931938        struct snd_pcm_hw_params *params = NULL;
    932         printk("PS UniaudIoctlHWRefine\n");
    933939        params = (struct snd_pcm_hw_params *)pHwParams;
     940
     941        dprintf(("UniaudIoctlHWRefine"));
    934942
    935943        if (!params) return -1001;
     
    947955        soundhandle        *pHandle = (soundhandle *)streamid;
    948956        struct snd_pcm_hw_params *params = NULL;
    949         printk("PS UniaudIoctlHWParamSet\n");
    950957        params = (struct snd_pcm_hw_params *)pHwParams;
     958
     959        dprintf(("UniaudIoctlHWParamSet"));
    951960
    952961        if (!params) return -1001;
     
    963972        soundhandle        *pHandle = (soundhandle *)streamid;
    964973        struct snd_pcm_sw_params *params = NULL;
    965         printk("PS UniaudIoctlSWParamSet\n");
     974
    966975        params = (struct snd_pcm_sw_params *)pSwParams;
     976
     977        dprintf(("UniaudIoctlSWParamSet"));
    967978
    968979        if (!params) return -1001;
     
    981992        struct snd_pcm_status   *status = (struct snd_pcm_status *)pstatus;
    982993
     994        dprintf(("UniaudIoctlPCMStatus"));
     995
    983996        if (!status) return -1001;
    984997        if (!pHandle) return -1002;
     
    9951008        soundhandle        *pHandle = (soundhandle *)streamid;
    9961009
     1010        dprintf(("UniaudIoctlPCMWrite"));
     1011
    9971012        if (!buf) return -1001;
    9981013        if (!pHandle) return -1002;
     
    10131028        if (!pHandle) return -1002;
    10141029
     1030        dprintf(("UniaudIoctlPCMRead"));
     1031
    10151032        pHandle->file.f_flags = O_NONBLOCK;
    10161033
     
    10251042        soundhandle        *pHandle = (soundhandle *)streamid;
    10261043
     1044        dprintf(("UniaudIoctlPCMPrepare"));
     1045
    10271046        if (!pHandle) return -1002;
    10281047
     
    10381057        soundhandle        *pHandle = (soundhandle *)streamid;
    10391058
     1059        dprintf(("UniaudIoctlPCMResume: %x", pause));
     1060
    10401061        if (!pHandle) return -1002;
    10411062
     
    10521073        soundhandle        *pHandle = (soundhandle *)streamid;
    10531074
     1075        dprintf(("UniaudIoctlPCMStart"));
     1076
    10541077        if (!pHandle) return -1002;
    10551078
     
    10651088        int ret;
    10661089        soundhandle        *pHandle = (soundhandle *)streamid;
     1090
     1091        dprintf(("UniaudIoctlPCMDrop"));
    10671092
    10681093        if (!pHandle) return -1002;
Note: See TracChangeset for help on using the changeset viewer.