Ignore:
Timestamp:
Apr 19, 2025, 8:08:37 PM (4 months ago)
Author:
David Azarewicz
Message:

Merge in changes from 6.6-LTS branch.
Fixed additional 25+ problems.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/include/sound/rawmidi.h

    r717 r772  
    1919#include <sound/seq_device.h>
    2020#endif
     21#include <sound/info.h>
    2122
    2223/*
     
    4849        void (*get_port_info)(struct snd_rawmidi *rmidi, int number,
    4950                              struct snd_seq_port_info *info);
     51        long (*ioctl)(struct snd_rawmidi *rmidi, unsigned int cmd,
     52                      void __user *argp);
     53        void (*proc_read)(struct snd_info_entry *entry,
     54                          struct snd_info_buffer *buf);
    5055};
    5156
     
    6267        size_t avail;           /* max used buffer for wakeup */
    6368        size_t xruns;           /* over/underruns counter */
     69        size_t align;           /* alignment (0 = byte stream, 3 = UMP) */
    6470        int buffer_ref;         /* buffer reference count */
    6571        /* misc */
    66         spinlock_t lock;
    6772        wait_queue_head_t sleep;
    6873        /* event handler (new bytes, input only) */
     
    8691        int use_count;                  /* use counter (for output) */
    8792        size_t bytes;
     93        spinlock_t lock;
    8894        struct snd_rawmidi *rmidi;
    8995        struct snd_rawmidi_str *pstr;
     
    130136        wait_queue_head_t open_wait;
    131137
    132         struct device dev;
     138        struct device *dev;
    133139
    134140        struct snd_info_entry *proc_entry;
     
    147153                         const struct snd_rawmidi_ops *ops);
    148154
     155/* internal */
     156int snd_rawmidi_init(struct snd_rawmidi *rmidi,
     157                     struct snd_card *card, char *id, int device,
     158                     int output_count, int input_count,
     159                     unsigned int info_flags);
     160int snd_rawmidi_free(struct snd_rawmidi *rmidi);
     161
    149162/* callbacks */
    150163
     
    157170int snd_rawmidi_transmit(struct snd_rawmidi_substream *substream,
    158171                         unsigned char *buffer, int count);
    159 int __snd_rawmidi_transmit_peek(struct snd_rawmidi_substream *substream,
    160                               unsigned char *buffer, int count);
    161 int __snd_rawmidi_transmit_ack(struct snd_rawmidi_substream *substream,
    162                                int count);
    163172int snd_rawmidi_proceed(struct snd_rawmidi_substream *substream);
    164173
     
    166175
    167176int snd_rawmidi_info_select(struct snd_card *card, struct snd_rawmidi_info *info);
    168 int snd_rawmidi_kernel_open(struct snd_card *card, int device, int subdevice,
     177int snd_rawmidi_kernel_open(struct snd_rawmidi *rmidi, int subdevice,
    169178                            int mode, struct snd_rawmidi_file *rfile);
    170179int snd_rawmidi_kernel_release(struct snd_rawmidi_file *rfile);
Note: See TracChangeset for help on using the changeset viewer.