Ignore:
Timestamp:
Apr 3, 2017, 4:51:56 PM (8 years ago)
Author:
David Azarewicz
Message:

Merged/reintegrated v2 branch into trunk. Trunk is now v2

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/include/sound/asound.h

    r587 r598  
    4242#endif /* __KERNEL__ **/
    4343
    44 #ifdef TARGET_OS2
    4544#ifndef __force
    4645#define __force
     
    5150#endif
    5251
     52#ifdef TARGET_OS2
    5353#define SNDRV_PCM_VOL_FRONT_LEFT        0
    5454#define SNDRV_PCM_VOL_FRONT_RIGHT       1
     
    236236#define SNDRV_PCM_FORMAT_U18_3LE        ((__force snd_pcm_format_t) 42) /* in three bytes */
    237237#define SNDRV_PCM_FORMAT_U18_3BE        ((__force snd_pcm_format_t) 43) /* in three bytes */
    238 #define SNDRV_PCM_FORMAT_LAST           SNDRV_PCM_FORMAT_U18_3BE
     238#define SNDRV_PCM_FORMAT_G723_24        ((__force snd_pcm_format_t) 44) /* 8 samples in 3 bytes */
     239#define SNDRV_PCM_FORMAT_G723_24_1B     ((__force snd_pcm_format_t) 45) /* 1 sample in 1 byte */
     240#define SNDRV_PCM_FORMAT_G723_40        ((__force snd_pcm_format_t) 46) /* 8 Samples in 5 bytes */
     241#define SNDRV_PCM_FORMAT_G723_40_1B     ((__force snd_pcm_format_t) 47) /* 1 sample in 1 byte */
     242#define SNDRV_PCM_FORMAT_LAST           SNDRV_PCM_FORMAT_G723_40_1B
    239243
    240244#ifdef SNDRV_LITTLE_ENDIAN
     
    279283#define SNDRV_PCM_INFO_JOINT_DUPLEX     0x00200000      /* playback and capture stream are somewhat correlated */
    280284#define SNDRV_PCM_INFO_SYNC_START       0x00400000      /* pcm support some kind of sync go */
     285#define SNDRV_PCM_INFO_NO_PERIOD_WAKEUP 0x00800000      /* period wakeup can be disabled */
    281286#define SNDRV_PCM_INFO_FIFO_IN_FRAMES   0x80000000      /* internal kernel flag - FIFO size is in frames */
    282287
     
    323328typedef int snd_pcm_hw_param_t;
    324329#define SNDRV_PCM_HW_PARAM_ACCESS       0       /* Access type */
    325 #ifndef TARGET_OS2
    326 #define SNDRV_PCM_HW_PARAM_FORMAT       1       /* Format */
    327 #define SNDRV_PCM_HW_PARAM_SUBFORMAT    2       /* Subformat */
    328 #else
     330#ifdef TARGET_OS2
    329331#define SNDRV_PCM_HW_PARAM_RATE_MASK    1 /* Format */
     332#endif
    330333#define SNDRV_PCM_HW_PARAM_FORMAT       2       /* Format */
    331334#define SNDRV_PCM_HW_PARAM_SUBFORMAT    3       /* Subformat */
    332 #endif
    333335#define SNDRV_PCM_HW_PARAM_FIRST_MASK   SNDRV_PCM_HW_PARAM_ACCESS
    334336#define SNDRV_PCM_HW_PARAM_LAST_MASK    SNDRV_PCM_HW_PARAM_SUBFORMAT
     
    360362
    361363#define SNDRV_PCM_HW_PARAMS_NORESAMPLE  (1<<0)  /* avoid rate resampling */
     364#define SNDRV_PCM_HW_PARAMS_EXPORT_BUFFER       (1<<1)  /* export buffer */
     365#define SNDRV_PCM_HW_PARAMS_NO_PERIOD_WAKEUP    (1<<2)  /* disable period wakeups */
    362366
    363367struct snd_interval {
     
    574578 */
    575579
    576 #define SNDRV_TIMER_VERSION             SNDRV_PROTOCOL_VERSION(2, 0, 5)
     580#define SNDRV_TIMER_VERSION             SNDRV_PROTOCOL_VERSION(2, 0, 6)
    577581
    578582enum {
     
    604608
    605609struct snd_timer_id {
    606         int dev_class; 
     610        int dev_class;
    607611        int dev_sclass;
    608612        int card;
     
    731735#define SNDRV_CTL_VERSION               SNDRV_PROTOCOL_VERSION(2, 0, 6)
    732736
     737/******************** This section used in uniaud.dll interface *********************/
    733738struct snd_ctl_card_info {
    734739        int card;                       /* card number */
     
    792797        unsigned int device;            /* device/client number */
    793798        unsigned int subdevice;         /* subdevice (substream) number */
    794         unsigned char name[44];         /* ASCII name of item */
     799        unsigned char name[44];         /* ASCII name of item */
    795800        unsigned int index;             /* index of item */
    796801};
     
    839844        struct snd_ctl_elem_id id;      /* W: element ID */
    840845        unsigned int indirect: 1;       /* W: indirect access - obsoleted */
    841         union {
     846        union {
    842847                union {
    843848                        long value[128];
     
    857862                } bytes;
    858863                struct snd_aes_iec958 iec958;
    859         } value;                /* RO */
     864        } value;                /* RO */
    860865        struct timespec tstamp;
    861         unsigned char reserved[128-sizeof(struct timespec)];
     866        unsigned char reserved[128-sizeof(struct timespec)];
    862867};
    863868
    864869struct snd_ctl_tlv {
    865         unsigned int numid;     /* control element numeric identification */
    866         unsigned int length;    /* in bytes aligned to 4 */
     870        unsigned int numid;     /* control element numeric identification */
     871        unsigned int length;    /* in bytes aligned to 4 */
    867872#ifndef TARGET_OS2
    868         unsigned int tlv[0];    /* first TLV */
     873        unsigned int tlv[0];    /* first TLV */
    869874#else
    870         unsigned int tlv[1];    /* first TLV */
     875        unsigned int tlv[1];    /* first TLV */
    871876#endif
    872877};
     
    924929                        struct snd_ctl_elem_id id;
    925930                } elem;
    926                 unsigned char data8[60];
    927         } data;
     931                unsigned char data8[60];
     932        } data;
    928933};
    929934
Note: See TracChangeset for help on using the changeset viewer.