Changeset 777 for GPL/trunk/alsa-kernel/include/uapi
- Timestamp:
- Apr 21, 2025, 7:17:25 PM (5 months ago)
- Location:
- GPL/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-exp merged: 766-767,770-771,773-774
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/include/uapi/sound/asequencer.h
r772 r777 11 11 12 12 /** version of the sequencer */ 13 #define SNDRV_SEQ_VERSION SNDRV_PROTOCOL_VERSION(1, 0, 3)13 #define SNDRV_SEQ_VERSION SNDRV_PROTOCOL_VERSION(1, 0, 4) 14 14 15 15 /** … … 209 209 unsigned int len; /* length of data */ 210 210 void *ptr; /* pointer to data (note: maybe 64-bit) */ 211 } __ attribute__((packed));211 } __packed; 212 212 #else 213 213 #pragma pack(1) … … 262 262 unsigned short value; /* optional data */ 263 263 struct snd_seq_event *event; /* quoted event */ 264 } __ attribute__((packed));264 } __packed; 265 265 #else 266 266 #pragma pack(1) … … 481 481 #define SNDRV_SEQ_PORT_FLG_TIME_REAL (1<<2) 482 482 483 #define SNDRV_SEQ_PORT_FLG_IS_MIDI1 (1<<3) /* Keep MIDI 1.0 protocol */ 484 483 485 /* port direction */ 484 486 #define SNDRV_SEQ_PORT_DIR_UNKNOWN 0 … … 543 545 struct snd_seq_queue_tempo { 544 546 int queue; /* sequencer queue */ 545 unsigned int tempo; /* current tempo, us/tick */547 unsigned int tempo; /* current tempo, us/tick (or different time-base below) */ 546 548 int ppq; /* time resolution, ticks/quarter */ 547 549 unsigned int skew_value; /* queue skew */ 548 550 unsigned int skew_base; /* queue skew base */ 549 char reserved[24]; /* for the future */ 551 unsigned short tempo_base; /* tempo base in nsec unit; either 10 or 1000 */ 552 char reserved[22]; /* for the future */ 550 553 }; 551 554 -
GPL/trunk/alsa-kernel/include/uapi/sound/asoc.h
r772 r777 89 89 /* ABI version */ 90 90 #define SND_SOC_TPLG_ABI_VERSION 0x5 /* current version */ 91 #define SND_SOC_TPLG_ABI_VERSION_MIN 0x 4/* oldest version supported */91 #define SND_SOC_TPLG_ABI_VERSION_MIN 0x5 /* oldest version supported */ 92 92 93 93 /* Max size of TLV data */ … … 577 577 } __attribute__((packed)); 578 578 579 /*580 * Old version of ABI structs, supported for backward compatibility.581 */582 583 /* Manifest v4 */584 struct snd_soc_tplg_manifest_v4 {585 __le32 size; /* in bytes of this structure */586 __le32 control_elems; /* number of control elements */587 __le32 widget_elems; /* number of widget elements */588 __le32 graph_elems; /* number of graph elements */589 __le32 pcm_elems; /* number of PCM elements */590 __le32 dai_link_elems; /* number of DAI link elements */591 struct snd_soc_tplg_private priv;592 } __packed;593 594 /* Stream Capabilities v4 */595 struct snd_soc_tplg_stream_caps_v4 {596 __le32 size; /* in bytes of this structure */597 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];598 __le64 formats; /* supported formats SNDRV_PCM_FMTBIT_* */599 __le32 rates; /* supported rates SNDRV_PCM_RATE_* */600 __le32 rate_min; /* min rate */601 __le32 rate_max; /* max rate */602 __le32 channels_min; /* min channels */603 __le32 channels_max; /* max channels */604 __le32 periods_min; /* min number of periods */605 __le32 periods_max; /* max number of periods */606 __le32 period_size_min; /* min period size bytes */607 __le32 period_size_max; /* max period size bytes */608 __le32 buffer_size_min; /* min buffer size bytes */609 __le32 buffer_size_max; /* max buffer size bytes */610 } __packed;611 612 /* PCM v4 */613 struct snd_soc_tplg_pcm_v4 {614 __le32 size; /* in bytes of this structure */615 char pcm_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];616 char dai_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];617 __le32 pcm_id; /* unique ID - used to match with DAI link */618 __le32 dai_id; /* unique ID - used to match */619 __le32 playback; /* supports playback mode */620 __le32 capture; /* supports capture mode */621 __le32 compress; /* 1 = compressed; 0 = PCM */622 struct snd_soc_tplg_stream stream[SND_SOC_TPLG_STREAM_CONFIG_MAX]; /* for DAI link */623 __le32 num_streams; /* number of streams */624 struct snd_soc_tplg_stream_caps_v4 caps[2]; /* playback and capture for DAI */625 } __packed;626 627 /* Physical link config v4 */628 struct snd_soc_tplg_link_config_v4 {629 __le32 size; /* in bytes of this structure */630 __le32 id; /* unique ID - used to match */631 struct snd_soc_tplg_stream stream[SND_SOC_TPLG_STREAM_CONFIG_MAX]; /* supported configs playback and captrure */632 __le32 num_streams; /* number of streams */633 } __packed;634 635 579 #endif -
GPL/trunk/alsa-kernel/include/uapi/sound/asound.h
r772 r777 171 171 *****************************************************************************/ 172 172 173 #define SNDRV_PCM_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 1 5)173 #define SNDRV_PCM_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 18) 174 174 175 175 typedef unsigned long snd_pcm_uframes_t; … … 296 296 typedef int __bitwise snd_pcm_subformat_t; 297 297 #define SNDRV_PCM_SUBFORMAT_STD ((__force snd_pcm_subformat_t) 0) 298 #define SNDRV_PCM_SUBFORMAT_LAST SNDRV_PCM_SUBFORMAT_STD 298 #define SNDRV_PCM_SUBFORMAT_MSBITS_MAX ((__force snd_pcm_subformat_t) 1) 299 #define SNDRV_PCM_SUBFORMAT_MSBITS_20 ((__force snd_pcm_subformat_t) 2) 300 #define SNDRV_PCM_SUBFORMAT_MSBITS_24 ((__force snd_pcm_subformat_t) 3) 301 #define SNDRV_PCM_SUBFORMAT_LAST SNDRV_PCM_SUBFORMAT_MSBITS_24 299 302 300 303 #define SNDRV_PCM_INFO_MMAP 0x00000001 /* hardware supports mmap */ … … 360 363 unsigned short id16[8]; 361 364 unsigned int id32[4]; 362 } ;365 } /*__attribute__((deprecated))*/; 363 366 364 367 struct snd_pcm_info { … … 374 377 unsigned int subdevices_count; 375 378 unsigned int subdevices_avail; 376 un ion snd_pcm_sync_id sync; /*hardware synchronization ID */379 unsigned char pad1[16]; /* was: hardware synchronization ID */ 377 380 unsigned char reserved[64]; /* reserved for future... */ 378 381 }; … … 445 448 unsigned int cmask; /* R: changed masks */ 446 449 unsigned int info; /* R: Info flags for returned setup */ 447 unsigned int msbits; /* R: used most significant bits */450 unsigned int msbits; /* R: used most significant bits (in sample bit-width) */ 448 451 unsigned int rate_num; /* R: rate numerator */ 449 452 unsigned int rate_den; /* R: rate denominator */ 450 453 snd_pcm_uframes_t fifo_size; /* R: chip FIFO size in frames */ 451 unsigned char reserved[64]; /* reserved for future */ 454 unsigned char sync[16]; /* R: synchronization ID (perfect sync - one clock source) */ 455 unsigned char reserved[48]; /* reserved for future */ 452 456 }; 453 457 … … 911 915 */ 912 916 913 #define SNDRV_TIMER_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 7)917 #define SNDRV_TIMER_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 8) 914 918 915 919 enum { … … 936 940 #define SNDRV_TIMER_GLOBAL_HPET 2 937 941 #define SNDRV_TIMER_GLOBAL_HRTIMER 3 942 #define SNDRV_TIMER_GLOBAL_UDRIVEN 4 938 943 939 944 /* info flags */ … … 1015 1020 }; 1016 1021 #endif 1022 1023 /* 1024 * This structure describes the userspace-driven timer. Such timers are purely virtual, 1025 * and can only be triggered from software (for instance, by userspace application). 1026 */ 1027 struct snd_timer_uinfo { 1028 /* To pretend being a normal timer, we need to know the resolution in ns. */ 1029 __u64 resolution; 1030 int fd; 1031 unsigned int id; 1032 unsigned char reserved[16]; 1033 }; 1017 1034 1018 1035 #define SNDRV_TIMER_IOCTL_PVERSION _IOR('T', 0x00, int) … … 1032 1049 #define SNDRV_TIMER_IOCTL_PAUSE _IO('T', 0xa3) 1033 1050 #define SNDRV_TIMER_IOCTL_TREAD64 _IOW('T', 0xa4, int) 1051 #define SNDRV_TIMER_IOCTL_CREATE _IOWR('T', 0xa5, struct snd_timer_uinfo) 1052 #define SNDRV_TIMER_IOCTL_TRIGGER _IO('T', 0xa6) 1034 1053 1035 1054 #if __BITS_PER_LONG == 64
Note:
See TracChangeset
for help on using the changeset viewer.