Ignore:
Timestamp:
Sep 26, 2021, 6:18:40 PM (4 years ago)
Author:
David Azarewicz
Message:

Merge changes from next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

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

    r629 r703  
    748748 */
    749749
    750 #define SNDRV_RAWMIDI_VERSION           SNDRV_PROTOCOL_VERSION(2, 0, 1)
     750#define SNDRV_RAWMIDI_VERSION           SNDRV_PROTOCOL_VERSION(2, 0, 2)
    751751
    752752enum {
     
    774774};
    775775
     776#define SNDRV_RAWMIDI_MODE_FRAMING_MASK         (7<<0)
     777#define SNDRV_RAWMIDI_MODE_FRAMING_SHIFT        0
     778#define SNDRV_RAWMIDI_MODE_FRAMING_NONE         (0<<0)
     779#define SNDRV_RAWMIDI_MODE_FRAMING_TSTAMP       (1<<0)
     780#define SNDRV_RAWMIDI_MODE_CLOCK_MASK           (7<<3)
     781#define SNDRV_RAWMIDI_MODE_CLOCK_SHIFT          3
     782#define SNDRV_RAWMIDI_MODE_CLOCK_NONE           (0<<3)
     783#define SNDRV_RAWMIDI_MODE_CLOCK_REALTIME       (1<<3)
     784#define SNDRV_RAWMIDI_MODE_CLOCK_MONOTONIC      (2<<3)
     785#define SNDRV_RAWMIDI_MODE_CLOCK_MONOTONIC_RAW  (3<<3)
     786
     787#define SNDRV_RAWMIDI_FRAMING_DATA_LENGTH 16
     788
     789struct snd_rawmidi_framing_tstamp {
     790        /* For now, frame_type is always 0. Midi 2.0 is expected to add new
     791         * types here. Applications are expected to skip unknown frame types.
     792         */
     793        __u8 frame_type;
     794        __u8 length; /* number of valid bytes in data field */
     795        __u8 reserved[2];
     796        __u32 tv_nsec;          /* nanoseconds */
     797        __u64 tv_sec;           /* seconds */
     798        __u8 data[SNDRV_RAWMIDI_FRAMING_DATA_LENGTH];
     799#ifndef TARGET_OS2
     800} __packed;
     801#else
     802};
     803#endif
     804
    776805struct snd_rawmidi_params {
    777806        int stream;
     
    779808        size_t avail_min;               /* minimum avail bytes for wakeup */
    780809        unsigned int no_active_sensing: 1; /* do not send active sensing byte in close() */
    781         unsigned char reserved[16];     /* reserved for future use */
     810        unsigned int mode;              /* For input data only, frame incoming data */
     811        unsigned char reserved[12];     /* reserved for future use */
    782812};
    783813
Note: See TracChangeset for help on using the changeset viewer.