Changeset 703 for GPL/trunk/alsa-kernel/include/uapi
- Timestamp:
- Sep 26, 2021, 6:18:40 PM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-next merged: 696-702
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/include/uapi/sound/asound.h
r629 r703 748 748 */ 749 749 750 #define SNDRV_RAWMIDI_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 1)750 #define SNDRV_RAWMIDI_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 2) 751 751 752 752 enum { … … 774 774 }; 775 775 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 789 struct 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 776 805 struct snd_rawmidi_params { 777 806 int stream; … … 779 808 size_t avail_min; /* minimum avail bytes for wakeup */ 780 809 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 */ 782 812 }; 783 813
Note:
See TracChangeset
for help on using the changeset viewer.