Changeset 542


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

changes to debug statements for api debugging

Location:
GPL/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/core/pcm_lib.c

    r479 r542  
    302302        if (!xrun_debug(substream, 4))
    303303                goto no_jiffies_check;
    304 #endif
    305304        /* Skip the jiffies check for hardwares with BATCH flag.
    306305         * Such hardware usually just increases the position at each IRQ,
     
    336335        }
    337336 no_jiffies_check:
     337#endif
    338338        if (delta > runtime->period_size + runtime->period_size / 2) {
    339339                hw_ptr_error(substream,
     
    418418        if (!xrun_debug(substream, 4))
    419419                goto no_jiffies_check;
    420 #endif
    421420        if (delta < runtime->delay)
    422421                goto no_jiffies_check;
     
    432431        }
    433432 no_jiffies_check:
     433#endif
    434434        if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
    435435            runtime->silence_size > 0)
  • GPL/trunk/alsa-kernel/include/sound/asound.h

    r464 r542  
    374374struct snd_pcm_hw_params {
    375375        unsigned int flags;
    376         struct snd_mask masks[SNDRV_PCM_HW_PARAM_LAST_MASK - 
     376        struct snd_mask masks[SNDRV_PCM_HW_PARAM_LAST_MASK -
    377377                               SNDRV_PCM_HW_PARAM_FIRST_MASK + 1];
    378378        struct snd_mask mres[5];        /* reserved masks */
     
    772772#define SNDRV_CTL_ELEM_ACCESS_LOCK              (1<<9)  /* write lock */
    773773#define SNDRV_CTL_ELEM_ACCESS_OWNER             (1<<10) /* write lock owner */
    774 #define SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK      (1<<28) /* kernel use a TLV callback */ 
     774#define SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK      (1<<28) /* kernel use a TLV callback */
    775775#define SNDRV_CTL_ELEM_ACCESS_USER              (1<<29) /* user space element */
    776776/* bits 30 and 31 are obsoleted (for indirect access) */
     
    789789        unsigned int device;            /* device/client number */
    790790        unsigned int subdevice;         /* subdevice (substream) number */
    791         unsigned char name[44];         /* ASCII name of item */
     791    unsigned char name[44];             /* ASCII name of item */
    792792        unsigned int index;             /* index of item */
    793793};
     
    836836        struct snd_ctl_elem_id id;      /* W: element ID */
    837837        unsigned int indirect: 1;       /* W: indirect access - obsoleted */
    838         union {
     838    union {
    839839                union {
    840840                        long value[128];
     
    854854                } bytes;
    855855                struct snd_aes_iec958 iec958;
    856         } value;                /* RO */
     856    } value;                /* RO */
    857857        struct timespec tstamp;
    858         unsigned char reserved[128-sizeof(struct timespec)];
     858    unsigned char reserved[128-sizeof(struct timespec)];
    859859};
    860860
  • GPL/trunk/drv32/dispatch.c

    r485 r542  
    2727#include <os2.h>
    2828
     29#include <dbgos2.h>
    2930#include <devhelp.h>
    3031#include <devtype.h>
     
    375376        {
    376377
    377             if (rp->DataLength < sizeof(ULONG))
    378             {
    379                 // invalid Data Pkt
    380                 rc = RPERR_PARAMETER | RPDONE;
    381                 break;
    382             }
    383 
    384             if (rp->ParmLength < sizeof(ULONG))
    385             {
    386                 // invalid Data Pkt
    387                 rc = RPERR_PARAMETER | RPDONE;
    388                 break;
    389             }
    390 
    391             pData = (ULONG *) linData;
     378            if (rp->DataLength < sizeof(ULONG)) {
     379                // invalid Data Pkt
     380                rc = RPERR_PARAMETER | RPDONE;
     381                break;
     382            }
     383
     384            if (rp->ParmLength < sizeof(ULONG)) {
     385                // invalid Data Pkt
     386                rc = RPERR_PARAMETER | RPDONE;
     387                break;
     388            }
     389
     390            pData = (ULONG *)linData;
    392391            ULONG id = *((ULONG *)linParm);
    393392            card_id = (id >> 16) & 0x0000FFFF;
  • 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;
  • GPL/trunk/uniaud.inc

    r535 r542  
    1313# ex RC3  GA  FIXPACK2 beta_47
    1414# Comment out to avoid a fixpack line in bldlevel
    15 FIXPACK = SVNr535
     15FIXPACK = SVNr542
    1616
    1717# ALSA BUILD VERSION
Note: See TracChangeset for help on using the changeset viewer.