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

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

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/sound/emux_legacy.h (Version linux-6.11.5) and /include/sound/emux_legacy.h (Version linux-6.4.16)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later *      1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 #ifndef __SOUND_EMUX_LEGACY_H                       2 #ifndef __SOUND_EMUX_LEGACY_H
  3 #define __SOUND_EMUX_LEGACY_H                       3 #define __SOUND_EMUX_LEGACY_H
  4                                                     4 
  5 /*                                                  5 /*
  6  *  Copyright (c) 1999-2000 Takashi Iwai <tiwa      6  *  Copyright (c) 1999-2000 Takashi Iwai <tiwai@suse.de>
  7  *                                                  7  *
  8  *  Definitions of OSS compatible headers for       8  *  Definitions of OSS compatible headers for Emu8000 device informations
  9  */                                                 9  */
 10                                                    10 
 11 #include <sound/seq_oss_legacy.h>                  11 #include <sound/seq_oss_legacy.h>
 12                                                    12 
 13 /*                                                 13 /*
 14  * awe hardware controls                           14  * awe hardware controls
 15  */                                                15  */
 16                                                    16 
 17 #define _EMUX_OSS_DEBUG_MODE            0x00       17 #define _EMUX_OSS_DEBUG_MODE            0x00
 18 #define _EMUX_OSS_REVERB_MODE           0x01       18 #define _EMUX_OSS_REVERB_MODE           0x01
 19 #define _EMUX_OSS_CHORUS_MODE           0x02       19 #define _EMUX_OSS_CHORUS_MODE           0x02
 20 #define _EMUX_OSS_REMOVE_LAST_SAMPLES   0x03       20 #define _EMUX_OSS_REMOVE_LAST_SAMPLES   0x03
 21 #define _EMUX_OSS_INITIALIZE_CHIP       0x04       21 #define _EMUX_OSS_INITIALIZE_CHIP       0x04
 22 #define _EMUX_OSS_SEND_EFFECT           0x05       22 #define _EMUX_OSS_SEND_EFFECT           0x05
 23 #define _EMUX_OSS_TERMINATE_CHANNEL     0x06       23 #define _EMUX_OSS_TERMINATE_CHANNEL     0x06
 24 #define _EMUX_OSS_TERMINATE_ALL         0x07       24 #define _EMUX_OSS_TERMINATE_ALL         0x07
 25 #define _EMUX_OSS_INITIAL_VOLUME        0x08       25 #define _EMUX_OSS_INITIAL_VOLUME        0x08
 26 #define _EMUX_OSS_INITIAL_ATTEN _EMUX_OSS_INIT     26 #define _EMUX_OSS_INITIAL_ATTEN _EMUX_OSS_INITIAL_VOLUME
 27 #define _EMUX_OSS_RESET_CHANNEL         0x09       27 #define _EMUX_OSS_RESET_CHANNEL         0x09
 28 #define _EMUX_OSS_CHANNEL_MODE          0x0a       28 #define _EMUX_OSS_CHANNEL_MODE          0x0a
 29 #define _EMUX_OSS_DRUM_CHANNELS         0x0b       29 #define _EMUX_OSS_DRUM_CHANNELS         0x0b
 30 #define _EMUX_OSS_MISC_MODE             0x0c       30 #define _EMUX_OSS_MISC_MODE             0x0c
 31 #define _EMUX_OSS_RELEASE_ALL           0x0d       31 #define _EMUX_OSS_RELEASE_ALL           0x0d
 32 #define _EMUX_OSS_NOTEOFF_ALL           0x0e       32 #define _EMUX_OSS_NOTEOFF_ALL           0x0e
 33 #define _EMUX_OSS_CHN_PRESSURE          0x0f       33 #define _EMUX_OSS_CHN_PRESSURE          0x0f
 34 #define _EMUX_OSS_EQUALIZER             0x11       34 #define _EMUX_OSS_EQUALIZER             0x11
 35                                                    35 
 36 #define _EMUX_OSS_MODE_FLAG             0x80       36 #define _EMUX_OSS_MODE_FLAG             0x80
 37 #define _EMUX_OSS_COOKED_FLAG           0x40       37 #define _EMUX_OSS_COOKED_FLAG           0x40    /* not supported */
 38 #define _EMUX_OSS_MODE_VALUE_MASK       0x3F       38 #define _EMUX_OSS_MODE_VALUE_MASK       0x3F
 39                                                    39 
 40                                                    40 
 41 /*                                                 41 /*
 42  * mode type definitions                           42  * mode type definitions
 43  */                                                43  */
 44 enum {                                             44 enum {
 45 /* 0*/  EMUX_MD_EXCLUSIVE_OFF,  /* obsolete */     45 /* 0*/  EMUX_MD_EXCLUSIVE_OFF,  /* obsolete */
 46 /* 1*/  EMUX_MD_EXCLUSIVE_ON,   /* obsolete */     46 /* 1*/  EMUX_MD_EXCLUSIVE_ON,   /* obsolete */
 47 /* 2*/  EMUX_MD_VERSION,                /* rea     47 /* 2*/  EMUX_MD_VERSION,                /* read only */
 48 /* 3*/  EMUX_MD_EXCLUSIVE_SOUND,        /* 0/1     48 /* 3*/  EMUX_MD_EXCLUSIVE_SOUND,        /* 0/1: exclusive note on (default=1) */
 49 /* 4*/  EMUX_MD_REALTIME_PAN,   /* 0/1: do rea     49 /* 4*/  EMUX_MD_REALTIME_PAN,   /* 0/1: do realtime pan change (default=1) */
 50 /* 5*/  EMUX_MD_GUS_BANK,       /* bank number     50 /* 5*/  EMUX_MD_GUS_BANK,       /* bank number for GUS patches (default=0) */
 51 /* 6*/  EMUX_MD_KEEP_EFFECT,    /* 0/1: keep e     51 /* 6*/  EMUX_MD_KEEP_EFFECT,    /* 0/1: keep effect values, (default=0) */
 52 /* 7*/  EMUX_MD_ZERO_ATTEN,     /* attenuation     52 /* 7*/  EMUX_MD_ZERO_ATTEN,     /* attenuation of max volume (default=32) */
 53 /* 8*/  EMUX_MD_CHN_PRIOR,      /* 0/1: set MI     53 /* 8*/  EMUX_MD_CHN_PRIOR,      /* 0/1: set MIDI channel priority mode (default=1) */
 54 /* 9*/  EMUX_MD_MOD_SENSE,      /* integer: mo     54 /* 9*/  EMUX_MD_MOD_SENSE,      /* integer: modwheel sensitivity (def=18) */
 55 /*10*/  EMUX_MD_DEF_PRESET,     /* integer: de     55 /*10*/  EMUX_MD_DEF_PRESET,     /* integer: default preset number (def=0) */
 56 /*11*/  EMUX_MD_DEF_BANK,       /* integer: de     56 /*11*/  EMUX_MD_DEF_BANK,       /* integer: default bank number (def=0) */
 57 /*12*/  EMUX_MD_DEF_DRUM,       /* integer: de     57 /*12*/  EMUX_MD_DEF_DRUM,       /* integer: default drumset number (def=0) */
 58 /*13*/  EMUX_MD_TOGGLE_DRUM_BANK, /* 0/1: togg     58 /*13*/  EMUX_MD_TOGGLE_DRUM_BANK, /* 0/1: toggle drum flag with bank# (def=0) */
 59 /*14*/  EMUX_MD_NEW_VOLUME_CALC,        /* 0/1     59 /*14*/  EMUX_MD_NEW_VOLUME_CALC,        /* 0/1: volume calculation mode (def=1) */
 60 /*15*/  EMUX_MD_CHORUS_MODE,    /* integer: ch     60 /*15*/  EMUX_MD_CHORUS_MODE,    /* integer: chorus mode (def=2) */
 61 /*16*/  EMUX_MD_REVERB_MODE,    /* integer: ch     61 /*16*/  EMUX_MD_REVERB_MODE,    /* integer: chorus mode (def=4) */
 62 /*17*/  EMUX_MD_BASS_LEVEL,     /* integer: ba     62 /*17*/  EMUX_MD_BASS_LEVEL,     /* integer: bass level (def=5) */
 63 /*18*/  EMUX_MD_TREBLE_LEVEL,   /* integer: tr     63 /*18*/  EMUX_MD_TREBLE_LEVEL,   /* integer: treble level (def=9) */
 64 /*19*/  EMUX_MD_DEBUG_MODE,     /* integer: de     64 /*19*/  EMUX_MD_DEBUG_MODE,     /* integer: debug level (def=0) */
 65 /*20*/  EMUX_MD_PAN_EXCHANGE,   /* 0/1: exchan     65 /*20*/  EMUX_MD_PAN_EXCHANGE,   /* 0/1: exchange panning direction (def=0) */
 66         EMUX_MD_END,                               66         EMUX_MD_END,
 67 };                                                 67 };
 68                                                    68 
 69                                                    69 
 70 /*                                                 70 /*
 71  * effect parameters                               71  * effect parameters
 72  */                                                72  */
 73 enum {                                             73 enum {
 74                                                    74 
 75 /* modulation envelope parameters */               75 /* modulation envelope parameters */
 76 /* 0*/  EMUX_FX_ENV1_DELAY,     /* WORD: ENVVA     76 /* 0*/  EMUX_FX_ENV1_DELAY,     /* WORD: ENVVAL */
 77 /* 1*/  EMUX_FX_ENV1_ATTACK,    /* BYTE: up AT     77 /* 1*/  EMUX_FX_ENV1_ATTACK,    /* BYTE: up ATKHLD */
 78 /* 2*/  EMUX_FX_ENV1_HOLD,      /* BYTE: lw AT     78 /* 2*/  EMUX_FX_ENV1_HOLD,      /* BYTE: lw ATKHLD */
 79 /* 3*/  EMUX_FX_ENV1_DECAY,     /* BYTE: lw DC     79 /* 3*/  EMUX_FX_ENV1_DECAY,     /* BYTE: lw DCYSUS */
 80 /* 4*/  EMUX_FX_ENV1_RELEASE,   /* BYTE: lw DC     80 /* 4*/  EMUX_FX_ENV1_RELEASE,   /* BYTE: lw DCYSUS */
 81 /* 5*/  EMUX_FX_ENV1_SUSTAIN,   /* BYTE: up DC     81 /* 5*/  EMUX_FX_ENV1_SUSTAIN,   /* BYTE: up DCYSUS */
 82 /* 6*/  EMUX_FX_ENV1_PITCH,     /* BYTE: up PE     82 /* 6*/  EMUX_FX_ENV1_PITCH,     /* BYTE: up PEFE */
 83 /* 7*/  EMUX_FX_ENV1_CUTOFF,    /* BYTE: lw PE     83 /* 7*/  EMUX_FX_ENV1_CUTOFF,    /* BYTE: lw PEFE */
 84                                                    84 
 85 /* volume envelope parameters */                   85 /* volume envelope parameters */
 86 /* 8*/  EMUX_FX_ENV2_DELAY,     /* WORD: ENVVO     86 /* 8*/  EMUX_FX_ENV2_DELAY,     /* WORD: ENVVOL */
 87 /* 9*/  EMUX_FX_ENV2_ATTACK,    /* BYTE: up AT     87 /* 9*/  EMUX_FX_ENV2_ATTACK,    /* BYTE: up ATKHLDV */
 88 /*10*/  EMUX_FX_ENV2_HOLD,      /* BYTE: lw AT     88 /*10*/  EMUX_FX_ENV2_HOLD,      /* BYTE: lw ATKHLDV */
 89 /*11*/  EMUX_FX_ENV2_DECAY,     /* BYTE: lw DC     89 /*11*/  EMUX_FX_ENV2_DECAY,     /* BYTE: lw DCYSUSV */
 90 /*12*/  EMUX_FX_ENV2_RELEASE,   /* BYTE: lw DC     90 /*12*/  EMUX_FX_ENV2_RELEASE,   /* BYTE: lw DCYSUSV */
 91 /*13*/  EMUX_FX_ENV2_SUSTAIN,   /* BYTE: up DC     91 /*13*/  EMUX_FX_ENV2_SUSTAIN,   /* BYTE: up DCYSUSV */
 92                                                    92         
 93 /* LFO1 (tremolo & vibrato) parameters */          93 /* LFO1 (tremolo & vibrato) parameters */
 94 /*14*/  EMUX_FX_LFO1_DELAY,     /* WORD: LFO1V     94 /*14*/  EMUX_FX_LFO1_DELAY,     /* WORD: LFO1VAL */
 95 /*15*/  EMUX_FX_LFO1_FREQ,      /* BYTE: lo TR     95 /*15*/  EMUX_FX_LFO1_FREQ,      /* BYTE: lo TREMFRQ */
 96 /*16*/  EMUX_FX_LFO1_VOLUME,    /* BYTE: up TR     96 /*16*/  EMUX_FX_LFO1_VOLUME,    /* BYTE: up TREMFRQ */
 97 /*17*/  EMUX_FX_LFO1_PITCH,     /* BYTE: up FM     97 /*17*/  EMUX_FX_LFO1_PITCH,     /* BYTE: up FMMOD */
 98 /*18*/  EMUX_FX_LFO1_CUTOFF,    /* BYTE: lo FM     98 /*18*/  EMUX_FX_LFO1_CUTOFF,    /* BYTE: lo FMMOD */
 99                                                    99 
100 /* LFO2 (vibrato) parameters */                   100 /* LFO2 (vibrato) parameters */
101 /*19*/  EMUX_FX_LFO2_DELAY,     /* WORD: LFO2V    101 /*19*/  EMUX_FX_LFO2_DELAY,     /* WORD: LFO2VAL */
102 /*20*/  EMUX_FX_LFO2_FREQ,      /* BYTE: lo FM    102 /*20*/  EMUX_FX_LFO2_FREQ,      /* BYTE: lo FM2FRQ2 */
103 /*21*/  EMUX_FX_LFO2_PITCH,     /* BYTE: up FM    103 /*21*/  EMUX_FX_LFO2_PITCH,     /* BYTE: up FM2FRQ2 */
104                                                   104 
105 /* Other overall effect parameters */             105 /* Other overall effect parameters */
106 /*22*/  EMUX_FX_INIT_PITCH,     /* SHORT: pitc    106 /*22*/  EMUX_FX_INIT_PITCH,     /* SHORT: pitch offset */
107 /*23*/  EMUX_FX_CHORUS,         /* BYTE: choru    107 /*23*/  EMUX_FX_CHORUS,         /* BYTE: chorus effects send (0-255) */
108 /*24*/  EMUX_FX_REVERB,         /* BYTE: rever    108 /*24*/  EMUX_FX_REVERB,         /* BYTE: reverb effects send (0-255) */
109 /*25*/  EMUX_FX_CUTOFF,         /* BYTE: up IF    109 /*25*/  EMUX_FX_CUTOFF,         /* BYTE: up IFATN */
110 /*26*/  EMUX_FX_FILTERQ,                /* BYT    110 /*26*/  EMUX_FX_FILTERQ,                /* BYTE: up CCCA */
111                                                   111 
112 /* Sample / loop offset changes */                112 /* Sample / loop offset changes */
113 /*27*/  EMUX_FX_SAMPLE_START,   /* SHORT: offs    113 /*27*/  EMUX_FX_SAMPLE_START,   /* SHORT: offset */
114 /*28*/  EMUX_FX_LOOP_START,     /* SHORT: offs    114 /*28*/  EMUX_FX_LOOP_START,     /* SHORT: offset */
115 /*29*/  EMUX_FX_LOOP_END,       /* SHORT: offs    115 /*29*/  EMUX_FX_LOOP_END,       /* SHORT: offset */
116 /*30*/  EMUX_FX_COARSE_SAMPLE_START,    /* SHO    116 /*30*/  EMUX_FX_COARSE_SAMPLE_START,    /* SHORT: upper word offset */
117 /*31*/  EMUX_FX_COARSE_LOOP_START,      /* SHO    117 /*31*/  EMUX_FX_COARSE_LOOP_START,      /* SHORT: upper word offset */
118 /*32*/  EMUX_FX_COARSE_LOOP_END,                  118 /*32*/  EMUX_FX_COARSE_LOOP_END,                /* SHORT: upper word offset */
119 /*33*/  EMUX_FX_ATTEN,          /* BYTE: lo IF    119 /*33*/  EMUX_FX_ATTEN,          /* BYTE: lo IFATN */
120                                                   120 
121         EMUX_FX_END,                              121         EMUX_FX_END,
122 };                                                122 };
123 /* number of effects */                           123 /* number of effects */
124 #define EMUX_NUM_EFFECTS  EMUX_FX_END             124 #define EMUX_NUM_EFFECTS  EMUX_FX_END
125                                                   125 
126 /* effect flag values */                          126 /* effect flag values */
127 #define EMUX_FX_FLAG_OFF        0                 127 #define EMUX_FX_FLAG_OFF        0
128 #define EMUX_FX_FLAG_SET        1                 128 #define EMUX_FX_FLAG_SET        1
129 #define EMUX_FX_FLAG_ADD        2                 129 #define EMUX_FX_FLAG_ADD        2
130                                                   130 
131                                                   131 
132 #endif /* __SOUND_EMUX_LEGACY_H */                132 #endif /* __SOUND_EMUX_LEGACY_H */
133                                                   133 

~ [ 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