~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/sound/seq_oss.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/sound/seq_oss.h (Version linux-6.12-rc7) and /include/sound/seq_oss.h (Version linux-4.16.18)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later * << 
  2 #ifndef __SOUND_SEQ_OSS_H                           1 #ifndef __SOUND_SEQ_OSS_H
  3 #define __SOUND_SEQ_OSS_H                           2 #define __SOUND_SEQ_OSS_H
  4                                                     3 
  5 /*                                                  4 /*
  6  * OSS compatible sequencer driver                  5  * OSS compatible sequencer driver
  7  *                                                  6  *
  8  * Copyright (C) 1998,99 Takashi Iwai               7  * Copyright (C) 1998,99 Takashi Iwai
                                                   >>   8  *
                                                   >>   9  * This program is free software; you can redistribute it and/or modify
                                                   >>  10  * it under the terms of the GNU General Public License as published by
                                                   >>  11  * the Free Software Foundation; either version 2 of the License, or
                                                   >>  12  * (at your option) any later version.
                                                   >>  13  *
                                                   >>  14  * This program is distributed in the hope that it will be useful,
                                                   >>  15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
                                                   >>  16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                                                   >>  17  * GNU General Public License for more details.
                                                   >>  18  *
                                                   >>  19  * You should have received a copy of the GNU General Public License
                                                   >>  20  * along with this program; if not, write to the Free Software
                                                   >>  21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  9  */                                                22  */
 10                                                    23 
 11 #include <sound/asequencer.h>                      24 #include <sound/asequencer.h>
 12 #include <sound/seq_kernel.h>                      25 #include <sound/seq_kernel.h>
 13                                                    26 
 14 /*                                                 27 /*
 15  * argument structure for synthesizer operatio     28  * argument structure for synthesizer operations
 16  */                                                29  */
 17 struct snd_seq_oss_arg {                           30 struct snd_seq_oss_arg {
 18         /* given by OSS sequencer */               31         /* given by OSS sequencer */
 19         int app_index;  /* application unique      32         int app_index;  /* application unique index */
 20         int file_mode;  /* file mode - see bel     33         int file_mode;  /* file mode - see below */
 21         int seq_mode;   /* sequencer mode - se     34         int seq_mode;   /* sequencer mode - see below */
 22                                                    35 
 23         /* following must be initialized in op     36         /* following must be initialized in open callback */
 24         struct snd_seq_addr addr;       /* ope     37         struct snd_seq_addr addr;       /* opened port address */
 25         void *private_data;     /* private dat     38         void *private_data;     /* private data for lowlevel drivers */
 26                                                    39 
 27         /* note-on event passing mode: initial     40         /* note-on event passing mode: initially given by OSS seq,
 28          * but configurable by drivers - see b     41          * but configurable by drivers - see below
 29          */                                        42          */
 30         int event_passing;                         43         int event_passing;
 31 };                                                 44 };
 32                                                    45 
 33                                                    46 
 34 /*                                                 47 /*
 35  * synthesizer operation callbacks                 48  * synthesizer operation callbacks
 36  */                                                49  */
 37 struct snd_seq_oss_callback {                      50 struct snd_seq_oss_callback {
 38         struct module *owner;                      51         struct module *owner;
 39         int (*open)(struct snd_seq_oss_arg *p,     52         int (*open)(struct snd_seq_oss_arg *p, void *closure);
 40         int (*close)(struct snd_seq_oss_arg *p     53         int (*close)(struct snd_seq_oss_arg *p);
 41         int (*ioctl)(struct snd_seq_oss_arg *p     54         int (*ioctl)(struct snd_seq_oss_arg *p, unsigned int cmd, unsigned long arg);
 42         int (*load_patch)(struct snd_seq_oss_a     55         int (*load_patch)(struct snd_seq_oss_arg *p, int format, const char __user *buf, int offs, int count);
 43         int (*reset)(struct snd_seq_oss_arg *p     56         int (*reset)(struct snd_seq_oss_arg *p);
 44         int (*raw_event)(struct snd_seq_oss_ar     57         int (*raw_event)(struct snd_seq_oss_arg *p, unsigned char *data);
 45 };                                                 58 };
 46                                                    59 
 47 /* flag: file_mode */                              60 /* flag: file_mode */
 48 #define SNDRV_SEQ_OSS_FILE_ACMODE                  61 #define SNDRV_SEQ_OSS_FILE_ACMODE               3
 49 #define SNDRV_SEQ_OSS_FILE_READ         1          62 #define SNDRV_SEQ_OSS_FILE_READ         1
 50 #define SNDRV_SEQ_OSS_FILE_WRITE                   63 #define SNDRV_SEQ_OSS_FILE_WRITE                2
 51 #define SNDRV_SEQ_OSS_FILE_NONBLOCK     4          64 #define SNDRV_SEQ_OSS_FILE_NONBLOCK     4
 52                                                    65 
 53 /* flag: seq_mode */                               66 /* flag: seq_mode */
 54 #define SNDRV_SEQ_OSS_MODE_SYNTH                   67 #define SNDRV_SEQ_OSS_MODE_SYNTH                0
 55 #define SNDRV_SEQ_OSS_MODE_MUSIC                   68 #define SNDRV_SEQ_OSS_MODE_MUSIC                1
 56                                                    69 
 57 /* flag: event_passing */                          70 /* flag: event_passing */
 58 #define SNDRV_SEQ_OSS_PROCESS_EVENTS    0          71 #define SNDRV_SEQ_OSS_PROCESS_EVENTS    0       /* key == 255 is processed as velocity change */
 59 #define SNDRV_SEQ_OSS_PASS_EVENTS                  72 #define SNDRV_SEQ_OSS_PASS_EVENTS               1       /* pass all events to callback */
 60 #define SNDRV_SEQ_OSS_PROCESS_KEYPRESS  2          73 #define SNDRV_SEQ_OSS_PROCESS_KEYPRESS  2       /* key >= 128 will be processed as key-pressure */
 61                                                    74 
 62 /* default control rate: fixed */                  75 /* default control rate: fixed */
 63 #define SNDRV_SEQ_OSS_CTRLRATE          100        76 #define SNDRV_SEQ_OSS_CTRLRATE          100
 64                                                    77 
 65 /* default max queue length: configurable by m     78 /* default max queue length: configurable by module option */
 66 #define SNDRV_SEQ_OSS_MAX_QLEN          1024       79 #define SNDRV_SEQ_OSS_MAX_QLEN          1024
 67                                                    80 
 68                                                    81 
 69 /*                                                 82 /*
 70  * data pointer to snd_seq_register_device         83  * data pointer to snd_seq_register_device
 71  */                                                84  */
 72 struct snd_seq_oss_reg {                           85 struct snd_seq_oss_reg {
 73         int type;                                  86         int type;
 74         int subtype;                               87         int subtype;
 75         int nvoices;                               88         int nvoices;
 76         struct snd_seq_oss_callback oper;          89         struct snd_seq_oss_callback oper;
 77         void *private_data;                        90         void *private_data;
 78 };                                                 91 };
 79                                                    92 
 80 /* device id */                                    93 /* device id */
 81 #define SNDRV_SEQ_DEV_ID_OSS            "seq-o     94 #define SNDRV_SEQ_DEV_ID_OSS            "seq-oss"
 82                                                    95 
 83 #endif /* __SOUND_SEQ_OSS_H */                     96 #endif /* __SOUND_SEQ_OSS_H */
 84                                                    97 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php