Changeset 598 for GPL/trunk/alsa-kernel/include/sound/asound.h
- Timestamp:
- Apr 3, 2017, 4:51:56 PM (8 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
-
Property svn:mergeinfo
set to
/GPL/branches/uniaud32-2.1.x merged eligible
-
Property svn:mergeinfo
set to
-
GPL/trunk/alsa-kernel/include/sound/asound.h
r587 r598 42 42 #endif /* __KERNEL__ **/ 43 43 44 #ifdef TARGET_OS245 44 #ifndef __force 46 45 #define __force … … 51 50 #endif 52 51 52 #ifdef TARGET_OS2 53 53 #define SNDRV_PCM_VOL_FRONT_LEFT 0 54 54 #define SNDRV_PCM_VOL_FRONT_RIGHT 1 … … 236 236 #define SNDRV_PCM_FORMAT_U18_3LE ((__force snd_pcm_format_t) 42) /* in three bytes */ 237 237 #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 239 243 240 244 #ifdef SNDRV_LITTLE_ENDIAN … … 279 283 #define SNDRV_PCM_INFO_JOINT_DUPLEX 0x00200000 /* playback and capture stream are somewhat correlated */ 280 284 #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 */ 281 286 #define SNDRV_PCM_INFO_FIFO_IN_FRAMES 0x80000000 /* internal kernel flag - FIFO size is in frames */ 282 287 … … 323 328 typedef int snd_pcm_hw_param_t; 324 329 #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 329 331 #define SNDRV_PCM_HW_PARAM_RATE_MASK 1 /* Format */ 332 #endif 330 333 #define SNDRV_PCM_HW_PARAM_FORMAT 2 /* Format */ 331 334 #define SNDRV_PCM_HW_PARAM_SUBFORMAT 3 /* Subformat */ 332 #endif333 335 #define SNDRV_PCM_HW_PARAM_FIRST_MASK SNDRV_PCM_HW_PARAM_ACCESS 334 336 #define SNDRV_PCM_HW_PARAM_LAST_MASK SNDRV_PCM_HW_PARAM_SUBFORMAT … … 360 362 361 363 #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 */ 362 366 363 367 struct snd_interval { … … 574 578 */ 575 579 576 #define SNDRV_TIMER_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 5)580 #define SNDRV_TIMER_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 6) 577 581 578 582 enum { … … 604 608 605 609 struct snd_timer_id { 606 int dev_class; 610 int dev_class; 607 611 int dev_sclass; 608 612 int card; … … 731 735 #define SNDRV_CTL_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 6) 732 736 737 /******************** This section used in uniaud.dll interface *********************/ 733 738 struct snd_ctl_card_info { 734 739 int card; /* card number */ … … 792 797 unsigned int device; /* device/client number */ 793 798 unsigned int subdevice; /* subdevice (substream) number */ 794 799 unsigned char name[44]; /* ASCII name of item */ 795 800 unsigned int index; /* index of item */ 796 801 }; … … 839 844 struct snd_ctl_elem_id id; /* W: element ID */ 840 845 unsigned int indirect: 1; /* W: indirect access - obsoleted */ 841 846 union { 842 847 union { 843 848 long value[128]; … … 857 862 } bytes; 858 863 struct snd_aes_iec958 iec958; 859 } value;/* RO */864 } value; /* RO */ 860 865 struct timespec tstamp; 861 866 unsigned char reserved[128-sizeof(struct timespec)]; 862 867 }; 863 868 864 869 struct snd_ctl_tlv { 865 866 870 unsigned int numid; /* control element numeric identification */ 871 unsigned int length; /* in bytes aligned to 4 */ 867 872 #ifndef TARGET_OS2 868 873 unsigned int tlv[0]; /* first TLV */ 869 874 #else 870 875 unsigned int tlv[1]; /* first TLV */ 871 876 #endif 872 877 }; … … 924 929 struct snd_ctl_elem_id id; 925 930 } elem; 926 927 931 unsigned char data8[60]; 932 } data; 928 933 }; 929 934
Note:
See TracChangeset
for help on using the changeset viewer.