11da177e4SLinus Torvalds #ifndef __SOUND_EMUX_LEGACY_H 21da177e4SLinus Torvalds #define __SOUND_EMUX_LEGACY_H 31da177e4SLinus Torvalds 41da177e4SLinus Torvalds /* 51da177e4SLinus Torvalds * Copyright (c) 1999-2000 Takashi Iwai <tiwai@suse.de> 61da177e4SLinus Torvalds * 71da177e4SLinus Torvalds * Definitions of OSS compatible headers for Emu8000 device informations 81da177e4SLinus Torvalds * 91da177e4SLinus Torvalds * This program is free software; you can redistribute it and/or modify 101da177e4SLinus Torvalds * it under the terms of the GNU General Public License as published by 111da177e4SLinus Torvalds * the Free Software Foundation; either version 2 of the License, or 121da177e4SLinus Torvalds * (at your option) any later version. 131da177e4SLinus Torvalds * 141da177e4SLinus Torvalds * This program is distributed in the hope that it will be useful, 151da177e4SLinus Torvalds * but WITHOUT ANY WARRANTY; without even the implied warranty of 161da177e4SLinus Torvalds * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 171da177e4SLinus Torvalds * GNU General Public License for more details. 181da177e4SLinus Torvalds * 191da177e4SLinus Torvalds * You should have received a copy of the GNU General Public License 201da177e4SLinus Torvalds * along with this program; if not, write to the Free Software 211da177e4SLinus Torvalds * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 221da177e4SLinus Torvalds * 231da177e4SLinus Torvalds */ 241da177e4SLinus Torvalds 25a1ce3928SDavid Howells #include <sound/seq_oss_legacy.h> 261da177e4SLinus Torvalds 271da177e4SLinus Torvalds /* 281da177e4SLinus Torvalds * awe hardware controls 291da177e4SLinus Torvalds */ 301da177e4SLinus Torvalds 311da177e4SLinus Torvalds #define _EMUX_OSS_DEBUG_MODE 0x00 321da177e4SLinus Torvalds #define _EMUX_OSS_REVERB_MODE 0x01 331da177e4SLinus Torvalds #define _EMUX_OSS_CHORUS_MODE 0x02 341da177e4SLinus Torvalds #define _EMUX_OSS_REMOVE_LAST_SAMPLES 0x03 351da177e4SLinus Torvalds #define _EMUX_OSS_INITIALIZE_CHIP 0x04 361da177e4SLinus Torvalds #define _EMUX_OSS_SEND_EFFECT 0x05 371da177e4SLinus Torvalds #define _EMUX_OSS_TERMINATE_CHANNEL 0x06 381da177e4SLinus Torvalds #define _EMUX_OSS_TERMINATE_ALL 0x07 391da177e4SLinus Torvalds #define _EMUX_OSS_INITIAL_VOLUME 0x08 401da177e4SLinus Torvalds #define _EMUX_OSS_INITIAL_ATTEN _EMUX_OSS_INITIAL_VOLUME 411da177e4SLinus Torvalds #define _EMUX_OSS_RESET_CHANNEL 0x09 421da177e4SLinus Torvalds #define _EMUX_OSS_CHANNEL_MODE 0x0a 431da177e4SLinus Torvalds #define _EMUX_OSS_DRUM_CHANNELS 0x0b 441da177e4SLinus Torvalds #define _EMUX_OSS_MISC_MODE 0x0c 451da177e4SLinus Torvalds #define _EMUX_OSS_RELEASE_ALL 0x0d 461da177e4SLinus Torvalds #define _EMUX_OSS_NOTEOFF_ALL 0x0e 471da177e4SLinus Torvalds #define _EMUX_OSS_CHN_PRESSURE 0x0f 481da177e4SLinus Torvalds #define _EMUX_OSS_EQUALIZER 0x11 491da177e4SLinus Torvalds 501da177e4SLinus Torvalds #define _EMUX_OSS_MODE_FLAG 0x80 511da177e4SLinus Torvalds #define _EMUX_OSS_COOKED_FLAG 0x40 /* not supported */ 521da177e4SLinus Torvalds #define _EMUX_OSS_MODE_VALUE_MASK 0x3F 531da177e4SLinus Torvalds 541da177e4SLinus Torvalds 551da177e4SLinus Torvalds /* 561da177e4SLinus Torvalds * mode type definitions 571da177e4SLinus Torvalds */ 581da177e4SLinus Torvalds enum { 591da177e4SLinus Torvalds /* 0*/ EMUX_MD_EXCLUSIVE_OFF, /* obsolete */ 601da177e4SLinus Torvalds /* 1*/ EMUX_MD_EXCLUSIVE_ON, /* obsolete */ 611da177e4SLinus Torvalds /* 2*/ EMUX_MD_VERSION, /* read only */ 621da177e4SLinus Torvalds /* 3*/ EMUX_MD_EXCLUSIVE_SOUND, /* 0/1: exclusive note on (default=1) */ 631da177e4SLinus Torvalds /* 4*/ EMUX_MD_REALTIME_PAN, /* 0/1: do realtime pan change (default=1) */ 641da177e4SLinus Torvalds /* 5*/ EMUX_MD_GUS_BANK, /* bank number for GUS patches (default=0) */ 651da177e4SLinus Torvalds /* 6*/ EMUX_MD_KEEP_EFFECT, /* 0/1: keep effect values, (default=0) */ 661da177e4SLinus Torvalds /* 7*/ EMUX_MD_ZERO_ATTEN, /* attenuation of max volume (default=32) */ 671da177e4SLinus Torvalds /* 8*/ EMUX_MD_CHN_PRIOR, /* 0/1: set MIDI channel priority mode (default=1) */ 681da177e4SLinus Torvalds /* 9*/ EMUX_MD_MOD_SENSE, /* integer: modwheel sensitivity (def=18) */ 691da177e4SLinus Torvalds /*10*/ EMUX_MD_DEF_PRESET, /* integer: default preset number (def=0) */ 701da177e4SLinus Torvalds /*11*/ EMUX_MD_DEF_BANK, /* integer: default bank number (def=0) */ 711da177e4SLinus Torvalds /*12*/ EMUX_MD_DEF_DRUM, /* integer: default drumset number (def=0) */ 721da177e4SLinus Torvalds /*13*/ EMUX_MD_TOGGLE_DRUM_BANK, /* 0/1: toggle drum flag with bank# (def=0) */ 731da177e4SLinus Torvalds /*14*/ EMUX_MD_NEW_VOLUME_CALC, /* 0/1: volume calculation mode (def=1) */ 741da177e4SLinus Torvalds /*15*/ EMUX_MD_CHORUS_MODE, /* integer: chorus mode (def=2) */ 751da177e4SLinus Torvalds /*16*/ EMUX_MD_REVERB_MODE, /* integer: chorus mode (def=4) */ 761da177e4SLinus Torvalds /*17*/ EMUX_MD_BASS_LEVEL, /* integer: bass level (def=5) */ 771da177e4SLinus Torvalds /*18*/ EMUX_MD_TREBLE_LEVEL, /* integer: treble level (def=9) */ 781da177e4SLinus Torvalds /*19*/ EMUX_MD_DEBUG_MODE, /* integer: debug level (def=0) */ 791da177e4SLinus Torvalds /*20*/ EMUX_MD_PAN_EXCHANGE, /* 0/1: exchange panning direction (def=0) */ 801da177e4SLinus Torvalds EMUX_MD_END, 811da177e4SLinus Torvalds }; 821da177e4SLinus Torvalds 831da177e4SLinus Torvalds 841da177e4SLinus Torvalds /* 851da177e4SLinus Torvalds * effect parameters 861da177e4SLinus Torvalds */ 871da177e4SLinus Torvalds enum { 881da177e4SLinus Torvalds 891da177e4SLinus Torvalds /* modulation envelope parameters */ 901da177e4SLinus Torvalds /* 0*/ EMUX_FX_ENV1_DELAY, /* WORD: ENVVAL */ 911da177e4SLinus Torvalds /* 1*/ EMUX_FX_ENV1_ATTACK, /* BYTE: up ATKHLD */ 921da177e4SLinus Torvalds /* 2*/ EMUX_FX_ENV1_HOLD, /* BYTE: lw ATKHLD */ 931da177e4SLinus Torvalds /* 3*/ EMUX_FX_ENV1_DECAY, /* BYTE: lw DCYSUS */ 941da177e4SLinus Torvalds /* 4*/ EMUX_FX_ENV1_RELEASE, /* BYTE: lw DCYSUS */ 951da177e4SLinus Torvalds /* 5*/ EMUX_FX_ENV1_SUSTAIN, /* BYTE: up DCYSUS */ 961da177e4SLinus Torvalds /* 6*/ EMUX_FX_ENV1_PITCH, /* BYTE: up PEFE */ 971da177e4SLinus Torvalds /* 7*/ EMUX_FX_ENV1_CUTOFF, /* BYTE: lw PEFE */ 981da177e4SLinus Torvalds 991da177e4SLinus Torvalds /* volume envelope parameters */ 1001da177e4SLinus Torvalds /* 8*/ EMUX_FX_ENV2_DELAY, /* WORD: ENVVOL */ 1011da177e4SLinus Torvalds /* 9*/ EMUX_FX_ENV2_ATTACK, /* BYTE: up ATKHLDV */ 1021da177e4SLinus Torvalds /*10*/ EMUX_FX_ENV2_HOLD, /* BYTE: lw ATKHLDV */ 1031da177e4SLinus Torvalds /*11*/ EMUX_FX_ENV2_DECAY, /* BYTE: lw DCYSUSV */ 1041da177e4SLinus Torvalds /*12*/ EMUX_FX_ENV2_RELEASE, /* BYTE: lw DCYSUSV */ 1051da177e4SLinus Torvalds /*13*/ EMUX_FX_ENV2_SUSTAIN, /* BYTE: up DCYSUSV */ 1061da177e4SLinus Torvalds 1071da177e4SLinus Torvalds /* LFO1 (tremolo & vibrato) parameters */ 1081da177e4SLinus Torvalds /*14*/ EMUX_FX_LFO1_DELAY, /* WORD: LFO1VAL */ 1091da177e4SLinus Torvalds /*15*/ EMUX_FX_LFO1_FREQ, /* BYTE: lo TREMFRQ */ 1101da177e4SLinus Torvalds /*16*/ EMUX_FX_LFO1_VOLUME, /* BYTE: up TREMFRQ */ 1111da177e4SLinus Torvalds /*17*/ EMUX_FX_LFO1_PITCH, /* BYTE: up FMMOD */ 1121da177e4SLinus Torvalds /*18*/ EMUX_FX_LFO1_CUTOFF, /* BYTE: lo FMMOD */ 1131da177e4SLinus Torvalds 1141da177e4SLinus Torvalds /* LFO2 (vibrato) parameters */ 1151da177e4SLinus Torvalds /*19*/ EMUX_FX_LFO2_DELAY, /* WORD: LFO2VAL */ 1161da177e4SLinus Torvalds /*20*/ EMUX_FX_LFO2_FREQ, /* BYTE: lo FM2FRQ2 */ 1171da177e4SLinus Torvalds /*21*/ EMUX_FX_LFO2_PITCH, /* BYTE: up FM2FRQ2 */ 1181da177e4SLinus Torvalds 1191da177e4SLinus Torvalds /* Other overall effect parameters */ 1201da177e4SLinus Torvalds /*22*/ EMUX_FX_INIT_PITCH, /* SHORT: pitch offset */ 1211da177e4SLinus Torvalds /*23*/ EMUX_FX_CHORUS, /* BYTE: chorus effects send (0-255) */ 1221da177e4SLinus Torvalds /*24*/ EMUX_FX_REVERB, /* BYTE: reverb effects send (0-255) */ 1231da177e4SLinus Torvalds /*25*/ EMUX_FX_CUTOFF, /* BYTE: up IFATN */ 1241da177e4SLinus Torvalds /*26*/ EMUX_FX_FILTERQ, /* BYTE: up CCCA */ 1251da177e4SLinus Torvalds 1261da177e4SLinus Torvalds /* Sample / loop offset changes */ 1271da177e4SLinus Torvalds /*27*/ EMUX_FX_SAMPLE_START, /* SHORT: offset */ 1281da177e4SLinus Torvalds /*28*/ EMUX_FX_LOOP_START, /* SHORT: offset */ 1291da177e4SLinus Torvalds /*29*/ EMUX_FX_LOOP_END, /* SHORT: offset */ 1301da177e4SLinus Torvalds /*30*/ EMUX_FX_COARSE_SAMPLE_START, /* SHORT: upper word offset */ 1311da177e4SLinus Torvalds /*31*/ EMUX_FX_COARSE_LOOP_START, /* SHORT: upper word offset */ 1321da177e4SLinus Torvalds /*32*/ EMUX_FX_COARSE_LOOP_END, /* SHORT: upper word offset */ 1331da177e4SLinus Torvalds /*33*/ EMUX_FX_ATTEN, /* BYTE: lo IFATN */ 1341da177e4SLinus Torvalds 1351da177e4SLinus Torvalds EMUX_FX_END, 1361da177e4SLinus Torvalds }; 1371da177e4SLinus Torvalds /* number of effects */ 1381da177e4SLinus Torvalds #define EMUX_NUM_EFFECTS EMUX_FX_END 1391da177e4SLinus Torvalds 1401da177e4SLinus Torvalds /* effect flag values */ 1411da177e4SLinus Torvalds #define EMUX_FX_FLAG_OFF 0 1421da177e4SLinus Torvalds #define EMUX_FX_FLAG_SET 1 1431da177e4SLinus Torvalds #define EMUX_FX_FLAG_ADD 2 1441da177e4SLinus Torvalds 1451da177e4SLinus Torvalds 1461da177e4SLinus Torvalds #endif /* __SOUND_EMUX_LEGACY_H */ 147