Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 108.162.241.157
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
src /
linux-headers-5.15.0-25 /
include /
sound /
[ HOME SHELL ]
Name
Size
Permission
Action
ac97
[ DIR ]
drwxr-xr-x
sof
[ DIR ]
drwxr-xr-x
ac97_codec.h
15.67
KB
-rw-r--r--
aci.h
2.4
KB
-rw-r--r--
ad1816a.h
4.73
KB
-rw-r--r--
ad1843.h
1.48
KB
-rw-r--r--
adau1373.h
706
B
-rw-r--r--
ak4113.h
10.22
KB
-rw-r--r--
ak4114.h
9.54
KB
-rw-r--r--
ak4117.h
8.34
KB
-rw-r--r--
ak4531_codec.h
2.42
KB
-rw-r--r--
ak4641.h
476
B
-rw-r--r--
ak4xxx-adda.h
2.66
KB
-rw-r--r--
alc5623.h
536
B
-rw-r--r--
asequencer.h
2.91
KB
-rw-r--r--
asound.h
590
B
-rw-r--r--
asoundef.h
16.02
KB
-rw-r--r--
compress_driver.h
7.8
KB
-rw-r--r--
control.h
9.73
KB
-rw-r--r--
core.h
15.21
KB
-rw-r--r--
cs35l33.h
888
B
-rw-r--r--
cs35l34.h
741
B
-rw-r--r--
cs35l35.h
2.21
KB
-rw-r--r--
cs35l36.h
772
B
-rw-r--r--
cs4231-regs.h
7.6
KB
-rw-r--r--
cs4271.h
961
B
-rw-r--r--
cs42l52.h
592
B
-rw-r--r--
cs42l56.h
1.02
KB
-rw-r--r--
cs42l73.h
361
B
-rw-r--r--
cs8403.h
7.95
KB
-rw-r--r--
cs8427.h
9.72
KB
-rw-r--r--
da7213.h
1.01
KB
-rw-r--r--
da7218.h
2.41
KB
-rw-r--r--
da7219-aad.h
2.21
KB
-rw-r--r--
da7219.h
998
B
-rw-r--r--
da9055.h
707
B
-rw-r--r--
designware_i2s.h
1.59
KB
-rw-r--r--
dmaengine_pcm.h
6.68
KB
-rw-r--r--
emu10k1.h
88.6
KB
-rw-r--r--
emu10k1_synth.h
693
B
-rw-r--r--
emu8000.h
3.25
KB
-rw-r--r--
emu8000_reg.h
9.54
KB
-rw-r--r--
emux_legacy.h
4.7
KB
-rw-r--r--
emux_synth.h
6.79
KB
-rw-r--r--
es1688.h
2.85
KB
-rw-r--r--
graph_card.h
271
B
-rw-r--r--
gus.h
19.65
KB
-rw-r--r--
hda_chmap.h
2.6
KB
-rw-r--r--
hda_codec.h
17.25
KB
-rw-r--r--
hda_component.h
2.04
KB
-rw-r--r--
hda_hwdep.h
736
B
-rw-r--r--
hda_i915.h
589
B
-rw-r--r--
hda_register.h
10.41
KB
-rw-r--r--
hda_regmap.h
6.77
KB
-rw-r--r--
hda_verbs.h
16.89
KB
-rw-r--r--
hdaudio.h
20.93
KB
-rw-r--r--
hdaudio_ext.h
5.6
KB
-rw-r--r--
hdmi-codec.h
2.94
KB
-rw-r--r--
hwdep.h
1.88
KB
-rw-r--r--
i2c.h
2.79
KB
-rw-r--r--
info.h
7.86
KB
-rw-r--r--
initval.h
2.43
KB
-rw-r--r--
intel-dsp-config.h
869
B
-rw-r--r--
intel-nhlt.h
2.78
KB
-rw-r--r--
jack.h
3.07
KB
-rw-r--r--
l3.h
524
B
-rw-r--r--
madera-pdata.h
1.95
KB
-rw-r--r--
max9768.h
729
B
-rw-r--r--
max98088.h
1.05
KB
-rw-r--r--
max98090.h
534
B
-rw-r--r--
max98095.h
1.33
KB
-rw-r--r--
memalloc.h
2.58
KB
-rw-r--r--
minors.h
3.65
KB
-rw-r--r--
mixer_oss.h
1.73
KB
-rw-r--r--
mpu401.h
3.81
KB
-rw-r--r--
omap-hdmi-audio.h
971
B
-rw-r--r--
opl3.h
11.63
KB
-rw-r--r--
opl4.h
459
B
-rw-r--r--
pcm-indirect.h
5.04
KB
-rw-r--r--
pcm.h
51.27
KB
-rw-r--r--
pcm_drm_eld.h
183
B
-rw-r--r--
pcm_iec958.h
597
B
-rw-r--r--
pcm_oss.h
2.01
KB
-rw-r--r--
pcm_params.h
8.66
KB
-rw-r--r--
pt2258.h
513
B
-rw-r--r--
pxa2xx-lib.h
2.14
KB
-rw-r--r--
rawmidi.h
5.74
KB
-rw-r--r--
rt1015.h
283
B
-rw-r--r--
rt286.h
314
B
-rw-r--r--
rt298.h
373
B
-rw-r--r--
rt5514.h
399
B
-rw-r--r--
rt5659.h
880
B
-rw-r--r--
rt5660.h
578
B
-rw-r--r--
rt5663.h
476
B
-rw-r--r--
rt5665.h
761
B
-rw-r--r--
rt5668.h
646
B
-rw-r--r--
rt5682.h
901
B
-rw-r--r--
s3c24xx_uda134x.h
229
B
-rw-r--r--
sb.h
10.3
KB
-rw-r--r--
sb16_csp.h
2.05
KB
-rw-r--r--
seq_device.h
2.11
KB
-rw-r--r--
seq_kernel.h
3.3
KB
-rw-r--r--
seq_midi_emul.h
6.6
KB
-rw-r--r--
seq_midi_event.h
1.32
KB
-rw-r--r--
seq_oss.h
2.21
KB
-rw-r--r--
seq_oss_legacy.h
360
B
-rw-r--r--
seq_virmidi.h
2.07
KB
-rw-r--r--
sh_dac_audio.h
441
B
-rw-r--r--
sh_fsi.h
693
B
-rw-r--r--
simple_card.h
529
B
-rw-r--r--
simple_card_utils.h
8.16
KB
-rw-r--r--
snd_wavefront.h
5.57
KB
-rw-r--r--
soc-acpi-intel-match.h
2.03
KB
-rw-r--r--
soc-acpi.h
5.5
KB
-rw-r--r--
soc-card.h
2
KB
-rw-r--r--
soc-component.h
18.93
KB
-rw-r--r--
soc-dai.h
19.07
KB
-rw-r--r--
soc-dapm.h
32.16
KB
-rw-r--r--
soc-dpcm.h
5.19
KB
-rw-r--r--
soc-jack.h
3.73
KB
-rw-r--r--
soc-link.h
1.14
KB
-rw-r--r--
soc-topology.h
5.7
KB
-rw-r--r--
soc.h
46.39
KB
-rw-r--r--
sof.h
2.54
KB
-rw-r--r--
soundfont.h
3.81
KB
-rw-r--r--
spear_dma.h
350
B
-rw-r--r--
spear_spdif.h
345
B
-rw-r--r--
sta32x.h
1015
B
-rw-r--r--
sta350.h
1.44
KB
-rw-r--r--
tas2552-plat.h
283
B
-rw-r--r--
tas5086.h
210
B
-rw-r--r--
tea6330t.h
468
B
-rw-r--r--
timer.h
4.99
KB
-rw-r--r--
tlv.h
1.59
KB
-rw-r--r--
tlv320aic32x4.h
1.29
KB
-rw-r--r--
tlv320aic3x.h
1.74
KB
-rw-r--r--
tlv320dac33-plat.h
574
B
-rw-r--r--
tpa6130a2-plat.h
291
B
-rw-r--r--
uda134x.h
451
B
-rw-r--r--
uda1380.h
335
B
-rw-r--r--
util_mem.h
1.58
KB
-rw-r--r--
vx_core.h
14.7
KB
-rw-r--r--
wavefront.h
18.08
KB
-rw-r--r--
wm0010.h
466
B
-rw-r--r--
wm1250-ev1.h
510
B
-rw-r--r--
wm2000.h
479
B
-rw-r--r--
wm2200.h
1.32
KB
-rw-r--r--
wm5100.h
1.1
KB
-rw-r--r--
wm8903.h
15.02
KB
-rw-r--r--
wm8904.h
7.22
KB
-rw-r--r--
wm8955.h
442
B
-rw-r--r--
wm8960.h
888
B
-rw-r--r--
wm8962.h
1.65
KB
-rw-r--r--
wm8993.h
1.05
KB
-rw-r--r--
wm8996.h
1.26
KB
-rw-r--r--
wm9081.h
515
B
-rw-r--r--
wm9090.h
634
B
-rw-r--r--
wss.h
7.76
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : opl3.h
/* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __SOUND_OPL3_H #define __SOUND_OPL3_H /* * Definitions of the OPL-3 registers. * * Copyright (c) by Jaroslav Kysela <perex@perex.cz>, * Hannu Savolainen 1993-1996 * * The OPL-3 mode is switched on by writing 0x01, to the offset 5 * of the right side. * * Another special register at the right side is at offset 4. It contains * a bit mask defining which voices are used as 4 OP voices. * * The percussive mode is implemented in the left side only. * * With the above exceptions the both sides can be operated independently. * * A 4 OP voice can be created by setting the corresponding * bit at offset 4 of the right side. * * For example setting the rightmost bit (0x01) changes the * first voice on the right side to the 4 OP mode. The fourth * voice is made inaccessible. * * If a voice is set to the 2 OP mode, it works like 2 OP modes * of the original YM3812 (AdLib). In addition the voice can * be connected the left, right or both stereo channels. It can * even be left unconnected. This works with 4 OP voices also. * * The stereo connection bits are located in the FEEDBACK_CONNECTION * register of the voice (0xC0-0xC8). In 4 OP voices these bits are * in the second half of the voice. */ #include <sound/core.h> #include <sound/hwdep.h> #include <sound/timer.h> #include <sound/seq_midi_emul.h> #include <sound/seq_oss.h> #include <sound/seq_oss_legacy.h> #include <sound/seq_device.h> #include <sound/asound_fm.h> /* * Register numbers for the global registers */ #define OPL3_REG_TEST 0x01 #define OPL3_ENABLE_WAVE_SELECT 0x20 #define OPL3_REG_TIMER1 0x02 #define OPL3_REG_TIMER2 0x03 #define OPL3_REG_TIMER_CONTROL 0x04 /* Left side */ #define OPL3_IRQ_RESET 0x80 #define OPL3_TIMER1_MASK 0x40 #define OPL3_TIMER2_MASK 0x20 #define OPL3_TIMER1_START 0x01 #define OPL3_TIMER2_START 0x02 #define OPL3_REG_CONNECTION_SELECT 0x04 /* Right side */ #define OPL3_LEFT_4OP_0 0x01 #define OPL3_LEFT_4OP_1 0x02 #define OPL3_LEFT_4OP_2 0x04 #define OPL3_RIGHT_4OP_0 0x08 #define OPL3_RIGHT_4OP_1 0x10 #define OPL3_RIGHT_4OP_2 0x20 #define OPL3_REG_MODE 0x05 /* Right side */ #define OPL3_OPL3_ENABLE 0x01 /* OPL3 mode */ #define OPL3_OPL4_ENABLE 0x02 /* OPL4 mode */ #define OPL3_REG_KBD_SPLIT 0x08 /* Left side */ #define OPL3_COMPOSITE_SINE_WAVE_MODE 0x80 /* Don't use with OPL-3? */ #define OPL3_KEYBOARD_SPLIT 0x40 #define OPL3_REG_PERCUSSION 0xbd /* Left side only */ #define OPL3_TREMOLO_DEPTH 0x80 #define OPL3_VIBRATO_DEPTH 0x40 #define OPL3_PERCUSSION_ENABLE 0x20 #define OPL3_BASSDRUM_ON 0x10 #define OPL3_SNAREDRUM_ON 0x08 #define OPL3_TOMTOM_ON 0x04 #define OPL3_CYMBAL_ON 0x02 #define OPL3_HIHAT_ON 0x01 /* * Offsets to the register banks for operators. To get the * register number just add the operator offset to the bank offset * * AM/VIB/EG/KSR/Multiple (0x20 to 0x35) */ #define OPL3_REG_AM_VIB 0x20 #define OPL3_TREMOLO_ON 0x80 #define OPL3_VIBRATO_ON 0x40 #define OPL3_SUSTAIN_ON 0x20 #define OPL3_KSR 0x10 /* Key scaling rate */ #define OPL3_MULTIPLE_MASK 0x0f /* Frequency multiplier */ /* * KSL/Total level (0x40 to 0x55) */ #define OPL3_REG_KSL_LEVEL 0x40 #define OPL3_KSL_MASK 0xc0 /* Envelope scaling bits */ #define OPL3_TOTAL_LEVEL_MASK 0x3f /* Strength (volume) of OP */ /* * Attack / Decay rate (0x60 to 0x75) */ #define OPL3_REG_ATTACK_DECAY 0x60 #define OPL3_ATTACK_MASK 0xf0 #define OPL3_DECAY_MASK 0x0f /* * Sustain level / Release rate (0x80 to 0x95) */ #define OPL3_REG_SUSTAIN_RELEASE 0x80 #define OPL3_SUSTAIN_MASK 0xf0 #define OPL3_RELEASE_MASK 0x0f /* * Wave select (0xE0 to 0xF5) */ #define OPL3_REG_WAVE_SELECT 0xe0 #define OPL3_WAVE_SELECT_MASK 0x07 /* * Offsets to the register banks for voices. Just add to the * voice number to get the register number. * * F-Number low bits (0xA0 to 0xA8). */ #define OPL3_REG_FNUM_LOW 0xa0 /* * F-number high bits / Key on / Block (octave) (0xB0 to 0xB8) */ #define OPL3_REG_KEYON_BLOCK 0xb0 #define OPL3_KEYON_BIT 0x20 #define OPL3_BLOCKNUM_MASK 0x1c #define OPL3_FNUM_HIGH_MASK 0x03 /* * Feedback / Connection (0xc0 to 0xc8) * * These registers have two new bits when the OPL-3 mode * is selected. These bits controls connecting the voice * to the stereo channels. For 4 OP voices this bit is * defined in the second half of the voice (add 3 to the * register offset). * * For 4 OP voices the connection bit is used in the * both halves (gives 4 ways to connect the operators). */ #define OPL3_REG_FEEDBACK_CONNECTION 0xc0 #define OPL3_FEEDBACK_MASK 0x0e /* Valid just for 1st OP of a voice */ #define OPL3_CONNECTION_BIT 0x01 /* * In the 4 OP mode there is four possible configurations how the * operators can be connected together (in 2 OP modes there is just * AM or FM). The 4 OP connection mode is defined by the rightmost * bit of the FEEDBACK_CONNECTION (0xC0-0xC8) on the both halves. * * First half Second half Mode * * +---+ * v | * 0 0 >+-1-+--2--3--4--> * * * * +---+ * | | * 0 1 >+-1-+--2-+ * |-> * >--3----4-+ * * +---+ * | | * 1 0 >+-1-+-----+ * |-> * >--2--3--4-+ * * +---+ * | | * 1 1 >+-1-+--+ * | * >--2--3-+-> * | * >--4----+ */ #define OPL3_STEREO_BITS 0x30 /* OPL-3 only */ #define OPL3_VOICE_TO_LEFT 0x10 #define OPL3_VOICE_TO_RIGHT 0x20 /* */ #define OPL3_LEFT 0x0000 #define OPL3_RIGHT 0x0100 #define OPL3_HW_AUTO 0x0000 #define OPL3_HW_OPL2 0x0200 #define OPL3_HW_OPL3 0x0300 #define OPL3_HW_OPL3_SV 0x0301 /* S3 SonicVibes */ #define OPL3_HW_OPL3_CS 0x0302 /* CS4232/CS4236+ */ #define OPL3_HW_OPL3_FM801 0x0303 /* FM801 */ #define OPL3_HW_OPL3_CS4281 0x0304 /* CS4281 */ #define OPL3_HW_OPL4 0x0400 /* YMF278B/YMF295 */ #define OPL3_HW_OPL4_ML 0x0401 /* YMF704/YMF721 */ #define OPL3_HW_MASK 0xff00 #define MAX_OPL2_VOICES 9 #define MAX_OPL3_VOICES 18 struct snd_opl3; /* * Instrument record, aka "Patch" */ /* FM operator */ struct fm_operator { unsigned char am_vib; unsigned char ksl_level; unsigned char attack_decay; unsigned char sustain_release; unsigned char wave_select; } __attribute__((packed)); /* Instrument data */ struct fm_instrument { struct fm_operator op[4]; unsigned char feedback_connection[2]; unsigned char echo_delay; unsigned char echo_atten; unsigned char chorus_spread; unsigned char trnsps; unsigned char fix_dur; unsigned char modes; unsigned char fix_key; }; /* type */ #define FM_PATCH_OPL2 0x01 /* OPL2 2 operators FM instrument */ #define FM_PATCH_OPL3 0x02 /* OPL3 4 operators FM instrument */ /* Instrument record */ struct fm_patch { unsigned char prog; unsigned char bank; unsigned char type; struct fm_instrument inst; char name[24]; struct fm_patch *next; }; /* * A structure to keep track of each hardware voice */ struct snd_opl3_voice { int state; /* status */ #define SNDRV_OPL3_ST_OFF 0 /* Not playing */ #define SNDRV_OPL3_ST_ON_2OP 1 /* 2op voice is allocated */ #define SNDRV_OPL3_ST_ON_4OP 2 /* 4op voice is allocated */ #define SNDRV_OPL3_ST_NOT_AVAIL -1 /* voice is not available */ unsigned int time; /* An allocation time */ unsigned char note; /* Note currently assigned to this voice */ unsigned long note_off; /* note-off time */ int note_off_check; /* check note-off time */ unsigned char keyon_reg; /* KON register shadow */ struct snd_midi_channel *chan; /* Midi channel for this note */ }; struct snd_opl3 { unsigned long l_port; unsigned long r_port; struct resource *res_l_port; struct resource *res_r_port; unsigned short hardware; /* hardware access */ void (*command) (struct snd_opl3 * opl3, unsigned short cmd, unsigned char val); unsigned short timer_enable; int seq_dev_num; /* sequencer device number */ struct snd_timer *timer1; struct snd_timer *timer2; spinlock_t timer_lock; void *private_data; void (*private_free)(struct snd_opl3 *); struct snd_hwdep *hwdep; spinlock_t reg_lock; struct snd_card *card; /* The card that this belongs to */ unsigned char fm_mode; /* OPL mode, see SNDRV_DM_FM_MODE_XXX */ unsigned char rhythm; /* percussion mode flag */ unsigned char max_voices; /* max number of voices */ #if IS_ENABLED(CONFIG_SND_SEQUENCER) #define SNDRV_OPL3_MODE_SYNTH 0 /* OSS - voices allocated by application */ #define SNDRV_OPL3_MODE_SEQ 1 /* ALSA - driver handles voice allocation */ int synth_mode; /* synth mode */ int seq_client; struct snd_seq_device *seq_dev; /* sequencer device */ struct snd_midi_channel_set * chset; #if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS) struct snd_seq_device *oss_seq_dev; /* OSS sequencer device */ struct snd_midi_channel_set * oss_chset; #endif #define OPL3_PATCH_HASH_SIZE 32 struct fm_patch *patch_table[OPL3_PATCH_HASH_SIZE]; struct snd_opl3_voice voices[MAX_OPL3_VOICES]; /* Voices (OPL3 'channel') */ int use_time; /* allocation counter */ unsigned short connection_reg; /* connection reg shadow */ unsigned char drum_reg; /* percussion reg shadow */ spinlock_t voice_lock; /* Lock for voice access */ struct timer_list tlist; /* timer for note-offs and effects */ int sys_timer_status; /* system timer run status */ spinlock_t sys_timer_lock; /* Lock for system timer access */ #endif }; /* opl3.c */ void snd_opl3_interrupt(struct snd_hwdep * hw); int snd_opl3_new(struct snd_card *card, unsigned short hardware, struct snd_opl3 **ropl3); int snd_opl3_init(struct snd_opl3 *opl3); int snd_opl3_create(struct snd_card *card, unsigned long l_port, unsigned long r_port, unsigned short hardware, int integrated, struct snd_opl3 ** opl3); int snd_opl3_timer_new(struct snd_opl3 * opl3, int timer1_dev, int timer2_dev); int snd_opl3_hwdep_new(struct snd_opl3 * opl3, int device, int seq_device, struct snd_hwdep ** rhwdep); /* opl3_synth */ int snd_opl3_open(struct snd_hwdep * hw, struct file *file); int snd_opl3_ioctl(struct snd_hwdep * hw, struct file *file, unsigned int cmd, unsigned long arg); int snd_opl3_release(struct snd_hwdep * hw, struct file *file); void snd_opl3_reset(struct snd_opl3 * opl3); #if IS_ENABLED(CONFIG_SND_SEQUENCER) long snd_opl3_write(struct snd_hwdep *hw, const char __user *buf, long count, loff_t *offset); int snd_opl3_load_patch(struct snd_opl3 *opl3, int prog, int bank, int type, const char *name, const unsigned char *ext, const unsigned char *data); struct fm_patch *snd_opl3_find_patch(struct snd_opl3 *opl3, int prog, int bank, int create_patch); void snd_opl3_clear_patches(struct snd_opl3 *opl3); #else #define snd_opl3_write NULL static inline void snd_opl3_clear_patches(struct snd_opl3 *opl3) {} #endif #endif /* __SOUND_OPL3_H */
Close