Lines Matching +full:0 +full:x0302
11 * The OPL-3 mode is switched on by writing 0x01, to the offset 5
24 * For example setting the rightmost bit (0x01) changes the
34 * register of the voice (0xC0-0xC8). In 4 OP voices these bits are
51 #define OPL3_REG_TEST 0x01
52 #define OPL3_ENABLE_WAVE_SELECT 0x20
54 #define OPL3_REG_TIMER1 0x02
55 #define OPL3_REG_TIMER2 0x03
56 #define OPL3_REG_TIMER_CONTROL 0x04 /* Left side */
57 #define OPL3_IRQ_RESET 0x80
58 #define OPL3_TIMER1_MASK 0x40
59 #define OPL3_TIMER2_MASK 0x20
60 #define OPL3_TIMER1_START 0x01
61 #define OPL3_TIMER2_START 0x02
63 #define OPL3_REG_CONNECTION_SELECT 0x04 /* Right side */
64 #define OPL3_LEFT_4OP_0 0x01
65 #define OPL3_LEFT_4OP_1 0x02
66 #define OPL3_LEFT_4OP_2 0x04
67 #define OPL3_RIGHT_4OP_0 0x08
68 #define OPL3_RIGHT_4OP_1 0x10
69 #define OPL3_RIGHT_4OP_2 0x20
71 #define OPL3_REG_MODE 0x05 /* Right side */
72 #define OPL3_OPL3_ENABLE 0x01 /* OPL3 mode */
73 #define OPL3_OPL4_ENABLE 0x02 /* OPL4 mode */
75 #define OPL3_REG_KBD_SPLIT 0x08 /* Left side */
76 #define OPL3_COMPOSITE_SINE_WAVE_MODE 0x80 /* Don't use with OPL-3? */
77 #define OPL3_KEYBOARD_SPLIT 0x40
79 #define OPL3_REG_PERCUSSION 0xbd /* Left side only */
80 #define OPL3_TREMOLO_DEPTH 0x80
81 #define OPL3_VIBRATO_DEPTH 0x40
82 #define OPL3_PERCUSSION_ENABLE 0x20
83 #define OPL3_BASSDRUM_ON 0x10
84 #define OPL3_SNAREDRUM_ON 0x08
85 #define OPL3_TOMTOM_ON 0x04
86 #define OPL3_CYMBAL_ON 0x02
87 #define OPL3_HIHAT_ON 0x01
93 * AM/VIB/EG/KSR/Multiple (0x20 to 0x35)
95 #define OPL3_REG_AM_VIB 0x20
96 #define OPL3_TREMOLO_ON 0x80
97 #define OPL3_VIBRATO_ON 0x40
98 #define OPL3_SUSTAIN_ON 0x20
99 #define OPL3_KSR 0x10 /* Key scaling rate */
100 #define OPL3_MULTIPLE_MASK 0x0f /* Frequency multiplier */
103 * KSL/Total level (0x40 to 0x55)
105 #define OPL3_REG_KSL_LEVEL 0x40
106 #define OPL3_KSL_MASK 0xc0 /* Envelope scaling bits */
107 #define OPL3_TOTAL_LEVEL_MASK 0x3f /* Strength (volume) of OP */
110 * Attack / Decay rate (0x60 to 0x75)
112 #define OPL3_REG_ATTACK_DECAY 0x60
113 #define OPL3_ATTACK_MASK 0xf0
114 #define OPL3_DECAY_MASK 0x0f
117 * Sustain level / Release rate (0x80 to 0x95)
119 #define OPL3_REG_SUSTAIN_RELEASE 0x80
120 #define OPL3_SUSTAIN_MASK 0xf0
121 #define OPL3_RELEASE_MASK 0x0f
124 * Wave select (0xE0 to 0xF5)
126 #define OPL3_REG_WAVE_SELECT 0xe0
127 #define OPL3_WAVE_SELECT_MASK 0x07
133 * F-Number low bits (0xA0 to 0xA8).
135 #define OPL3_REG_FNUM_LOW 0xa0
138 * F-number high bits / Key on / Block (octave) (0xB0 to 0xB8)
140 #define OPL3_REG_KEYON_BLOCK 0xb0
141 #define OPL3_KEYON_BIT 0x20
142 #define OPL3_BLOCKNUM_MASK 0x1c
143 #define OPL3_FNUM_HIGH_MASK 0x03
146 * Feedback / Connection (0xc0 to 0xc8)
157 #define OPL3_REG_FEEDBACK_CONNECTION 0xc0
158 #define OPL3_FEEDBACK_MASK 0x0e /* Valid just for 1st OP of a voice */
159 #define OPL3_CONNECTION_BIT 0x01
164 * bit of the FEEDBACK_CONNECTION (0xC0-0xC8) on the both halves.
170 * 0 0 >+-1-+--2--3--4-->
176 * 0 1 >+-1-+--2-+
182 * 1 0 >+-1-+-----+
194 #define OPL3_STEREO_BITS 0x30 /* OPL-3 only */
195 #define OPL3_VOICE_TO_LEFT 0x10
196 #define OPL3_VOICE_TO_RIGHT 0x20
202 #define OPL3_LEFT 0x0000
203 #define OPL3_RIGHT 0x0100
205 #define OPL3_HW_AUTO 0x0000
206 #define OPL3_HW_OPL2 0x0200
207 #define OPL3_HW_OPL3 0x0300
208 #define OPL3_HW_OPL3_SV 0x0301 /* S3 SonicVibes */
209 #define OPL3_HW_OPL3_CS 0x0302 /* CS4232/CS4236+ */
210 #define OPL3_HW_OPL3_FM801 0x0303 /* FM801 */
211 #define OPL3_HW_OPL3_CS4281 0x0304 /* CS4281 */
212 #define OPL3_HW_OPL4 0x0400 /* YMF278B/YMF295 */
213 #define OPL3_HW_OPL4_ML 0x0401 /* YMF704/YMF721 */
214 #define OPL3_HW_MASK 0xff00
248 #define FM_PATCH_OPL2 0x01 /* OPL2 2 operators FM instrument */
249 #define FM_PATCH_OPL3 0x02 /* OPL3 4 operators FM instrument */
267 #define SNDRV_OPL3_ST_OFF 0 /* Not playing */
307 #define SNDRV_OPL3_MODE_SYNTH 0 /* OSS - voices allocated by application */