Ignore:
Timestamp:
Apr 21, 2025, 7:17:25 PM (5 months ago)
Author:
David Azarewicz
Message:

Merge from uniaud32-exp branch

Location:
GPL/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/include/uapi/sound/asequencer.h

    r772 r777  
    1111
    1212/** 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)
    1414
    1515/**
     
    209209        unsigned int len;       /* length of data */
    210210        void *ptr;              /* pointer to data (note: maybe 64-bit) */
    211 } __attribute__((packed));
     211} __packed;
    212212#else
    213213#pragma pack(1)
     
    262262        unsigned short value;           /* optional data */
    263263        struct snd_seq_event *event;            /* quoted event */
    264 } __attribute__((packed));
     264} __packed;
    265265#else
    266266#pragma pack(1)
     
    481481#define SNDRV_SEQ_PORT_FLG_TIME_REAL    (1<<2)
    482482
     483#define SNDRV_SEQ_PORT_FLG_IS_MIDI1     (1<<3)  /* Keep MIDI 1.0 protocol */
     484
    483485/* port direction */
    484486#define SNDRV_SEQ_PORT_DIR_UNKNOWN      0
     
    543545struct snd_seq_queue_tempo {
    544546        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) */
    546548        int ppq;                        /* time resolution, ticks/quarter */
    547549        unsigned int skew_value;        /* queue skew */
    548550        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 */
    550553};
    551554
  • GPL/trunk/alsa-kernel/include/uapi/sound/asoc.h

    r772 r777  
    8989/* ABI version */
    9090#define SND_SOC_TPLG_ABI_VERSION        0x5     /* current version */
    91 #define SND_SOC_TPLG_ABI_VERSION_MIN    0x4     /* oldest version supported */
     91#define SND_SOC_TPLG_ABI_VERSION_MIN    0x5     /* oldest version supported */
    9292
    9393/* Max size of TLV data */
     
    577577} __attribute__((packed));
    578578
    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 
    635579#endif
  • GPL/trunk/alsa-kernel/include/uapi/sound/asound.h

    r772 r777  
    171171 *****************************************************************************/
    172172
    173 #define SNDRV_PCM_VERSION               SNDRV_PROTOCOL_VERSION(2, 0, 15)
     173#define SNDRV_PCM_VERSION               SNDRV_PROTOCOL_VERSION(2, 0, 18)
    174174
    175175typedef unsigned long snd_pcm_uframes_t;
     
    296296typedef int __bitwise snd_pcm_subformat_t;
    297297#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
    299302
    300303#define SNDRV_PCM_INFO_MMAP             0x00000001      /* hardware supports mmap */
     
    360363        unsigned short id16[8];
    361364        unsigned int id32[4];
    362 };
     365} /*__attribute__((deprecated))*/;
    363366
    364367struct snd_pcm_info {
     
    374377        unsigned int subdevices_count;
    375378        unsigned int subdevices_avail;
    376         union snd_pcm_sync_id sync;     /* hardware synchronization ID */
     379        unsigned char pad1[16];         /* was: hardware synchronization ID */
    377380        unsigned char reserved[64];     /* reserved for future... */
    378381};
     
    445448        unsigned int cmask;             /* R: changed masks */
    446449        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) */
    448451        unsigned int rate_num;          /* R: rate numerator */
    449452        unsigned int rate_den;          /* R: rate denominator */
    450453        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 */
    452456};
    453457
     
    911915 */
    912916
    913 #define SNDRV_TIMER_VERSION             SNDRV_PROTOCOL_VERSION(2, 0, 7)
     917#define SNDRV_TIMER_VERSION             SNDRV_PROTOCOL_VERSION(2, 0, 8)
    914918
    915919enum {
     
    936940#define SNDRV_TIMER_GLOBAL_HPET         2
    937941#define SNDRV_TIMER_GLOBAL_HRTIMER      3
     942#define SNDRV_TIMER_GLOBAL_UDRIVEN      4
    938943
    939944/* info flags */
     
    10151020};
    10161021#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 */
     1027struct 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};
    10171034
    10181035#define SNDRV_TIMER_IOCTL_PVERSION      _IOR('T', 0x00, int)
     
    10321049#define SNDRV_TIMER_IOCTL_PAUSE         _IO('T', 0xa3)
    10331050#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)
    10341053
    10351054#if __BITS_PER_LONG == 64
Note: See TracChangeset for help on using the changeset viewer.