Home
last modified time | relevance | path

Searched refs:opl4 (Results 1 - 24 of 24) sorted by relevance

/kernel/linux/linux-5.10/sound/drivers/opl4/
H A Dopl4_lib.c19 static inline void snd_opl4_wait(struct snd_opl4 *opl4) in snd_opl4_wait() argument
22 while ((inb(opl4->fm_port) & OPL4_STATUS_BUSY) && --timeout > 0) in snd_opl4_wait()
26 void snd_opl4_write(struct snd_opl4 *opl4, u8 reg, u8 value) in snd_opl4_write() argument
28 snd_opl4_wait(opl4); in snd_opl4_write()
29 outb(reg, opl4->pcm_port); in snd_opl4_write()
31 snd_opl4_wait(opl4); in snd_opl4_write()
32 outb(value, opl4->pcm_port + 1); in snd_opl4_write()
37 u8 snd_opl4_read(struct snd_opl4 *opl4, u8 reg) in snd_opl4_read() argument
39 snd_opl4_wait(opl4); in snd_opl4_read()
40 outb(reg, opl4 in snd_opl4_read()
48 snd_opl4_read_memory(struct snd_opl4 *opl4, char *buf, int offset, int size) snd_opl4_read_memory() argument
74 snd_opl4_write_memory(struct snd_opl4 *opl4, const char *buf, int offset, int size) snd_opl4_write_memory() argument
100 snd_opl4_enable_opl4(struct snd_opl4 *opl4) snd_opl4_enable_opl4() argument
110 snd_opl4_detect(struct snd_opl4 *opl4) snd_opl4_detect() argument
146 struct snd_opl4 *opl4 = seq_dev->private_data; snd_opl4_seq_dev_free() local
150 snd_opl4_create_seq_dev(struct snd_opl4 *opl4, int seq_device) snd_opl4_create_seq_dev() argument
164 snd_opl4_free(struct snd_opl4 *opl4) snd_opl4_free() argument
174 struct snd_opl4 *opl4 = device->device_data; snd_opl4_dev_free() local
184 struct snd_opl4 *opl4; snd_opl4_create() local
[all...]
H A Dopl4_seq.c49 static int snd_opl4_seq_use_inc(struct snd_opl4 *opl4) in snd_opl4_seq_use_inc() argument
51 if (!try_module_get(opl4->card->module)) in snd_opl4_seq_use_inc()
56 static void snd_opl4_seq_use_dec(struct snd_opl4 *opl4) in snd_opl4_seq_use_dec() argument
58 module_put(opl4->card->module); in snd_opl4_seq_use_dec()
63 struct snd_opl4 *opl4 = private_data; in snd_opl4_seq_use() local
66 mutex_lock(&opl4->access_mutex); in snd_opl4_seq_use()
68 if (opl4->used) { in snd_opl4_seq_use()
69 mutex_unlock(&opl4->access_mutex); in snd_opl4_seq_use()
72 opl4->used++; in snd_opl4_seq_use()
75 err = snd_opl4_seq_use_inc(opl4); in snd_opl4_seq_use()
90 struct snd_opl4 *opl4 = private_data; snd_opl4_seq_unuse() local
114 struct snd_opl4 *opl4 = private_data; snd_opl4_seq_event_input() local
122 struct snd_opl4 *opl4 = private_data; snd_opl4_seq_free_port() local
130 struct snd_opl4 *opl4; snd_opl4_seq_probe() local
187 struct snd_opl4 *opl4; snd_opl4_seq_remove() local
[all...]
H A Dopl4_proc.c15 struct snd_opl4 *opl4 = entry->private_data; in snd_opl4_mem_proc_open() local
17 mutex_lock(&opl4->access_mutex); in snd_opl4_mem_proc_open()
18 if (opl4->memory_access) { in snd_opl4_mem_proc_open()
19 mutex_unlock(&opl4->access_mutex); in snd_opl4_mem_proc_open()
22 opl4->memory_access++; in snd_opl4_mem_proc_open()
23 mutex_unlock(&opl4->access_mutex); in snd_opl4_mem_proc_open()
30 struct snd_opl4 *opl4 = entry->private_data; in snd_opl4_mem_proc_release() local
32 mutex_lock(&opl4->access_mutex); in snd_opl4_mem_proc_release()
33 opl4->memory_access--; in snd_opl4_mem_proc_release()
34 mutex_unlock(&opl4 in snd_opl4_mem_proc_release()
43 struct snd_opl4 *opl4 = entry->private_data; snd_opl4_mem_proc_read() local
64 struct snd_opl4 *opl4 = entry->private_data; snd_opl4_mem_proc_write() local
86 snd_opl4_create_proc(struct snd_opl4 *opl4) snd_opl4_create_proc() argument
109 snd_opl4_free_proc(struct snd_opl4 *opl4) snd_opl4_free_proc() argument
[all...]
H A Dopl4_synth.c273 void snd_opl4_synth_reset(struct snd_opl4 *opl4) in snd_opl4_synth_reset() argument
278 spin_lock_irqsave(&opl4->reg_lock, flags); in snd_opl4_synth_reset()
280 snd_opl4_write(opl4, OPL4_REG_MISC + i, OPL4_DAMP_BIT); in snd_opl4_synth_reset()
281 spin_unlock_irqrestore(&opl4->reg_lock, flags); in snd_opl4_synth_reset()
283 INIT_LIST_HEAD(&opl4->off_voices); in snd_opl4_synth_reset()
284 INIT_LIST_HEAD(&opl4->on_voices); in snd_opl4_synth_reset()
285 memset(opl4->voices, 0, sizeof(opl4->voices)); in snd_opl4_synth_reset()
287 opl4->voices[i].number = i; in snd_opl4_synth_reset()
288 list_add_tail(&opl4 in snd_opl4_synth_reset()
297 snd_opl4_synth_shutdown(struct snd_opl4 *opl4) snd_opl4_synth_shutdown() argument
312 snd_opl4_do_for_note(struct snd_opl4 *opl4, int note, struct snd_midi_channel *chan, void (*func)(struct snd_opl4 *opl4, struct opl4_voice *voice)) snd_opl4_do_for_note() argument
332 snd_opl4_do_for_channel(struct snd_opl4 *opl4, struct snd_midi_channel *chan, void (*func)(struct snd_opl4 *opl4, struct opl4_voice *voice)) snd_opl4_do_for_channel() argument
353 snd_opl4_do_for_all(struct snd_opl4 *opl4, void (*func)(struct snd_opl4 *opl4, struct opl4_voice *voice)) snd_opl4_do_for_all() argument
369 snd_opl4_update_volume(struct snd_opl4 *opl4, struct opl4_voice *voice) snd_opl4_update_volume() argument
388 snd_opl4_update_pan(struct snd_opl4 *opl4, struct opl4_voice *voice) snd_opl4_update_pan() argument
403 snd_opl4_update_vibrato_depth(struct snd_opl4 *opl4, struct opl4_voice *voice) snd_opl4_update_vibrato_depth() argument
419 snd_opl4_update_pitch(struct snd_opl4 *opl4, struct opl4_voice *voice) snd_opl4_update_pitch() argument
450 snd_opl4_update_tone_parameters(struct snd_opl4 *opl4, struct opl4_voice *voice) snd_opl4_update_tone_parameters() argument
464 snd_opl4_get_voice(struct snd_opl4 *opl4) snd_opl4_get_voice() argument
474 snd_opl4_wait_for_wave_headers(struct snd_opl4 *opl4) snd_opl4_wait_for_wave_headers() argument
484 struct snd_opl4 *opl4 = private_data; snd_opl4_note_on() local
555 snd_opl4_voice_off(struct snd_opl4 *opl4, struct opl4_voice *voice) snd_opl4_voice_off() argument
565 struct snd_opl4 *opl4 = private_data; snd_opl4_note_off() local
570 snd_opl4_terminate_voice(struct snd_opl4 *opl4, struct opl4_voice *voice) snd_opl4_terminate_voice() argument
580 struct snd_opl4 *opl4 = private_data; snd_opl4_terminate_note() local
587 struct snd_opl4 *opl4 = private_data; snd_opl4_control() local
627 struct snd_opl4 *opl4 = private_data; snd_opl4_sysex() local
[all...]
H A Dopl4_mixer.c21 struct snd_opl4 *opl4 = snd_kcontrol_chip(kcontrol); in snd_opl4_ctl_get() local
26 spin_lock_irqsave(&opl4->reg_lock, flags); in snd_opl4_ctl_get()
27 value = snd_opl4_read(opl4, reg); in snd_opl4_ctl_get()
28 spin_unlock_irqrestore(&opl4->reg_lock, flags); in snd_opl4_ctl_get()
36 struct snd_opl4 *opl4 = snd_kcontrol_chip(kcontrol); in snd_opl4_ctl_put() local
43 spin_lock_irqsave(&opl4->reg_lock, flags); in snd_opl4_ctl_put()
44 old_value = snd_opl4_read(opl4, reg); in snd_opl4_ctl_put()
45 snd_opl4_write(opl4, reg, value); in snd_opl4_ctl_put()
46 spin_unlock_irqrestore(&opl4->reg_lock, flags); in snd_opl4_ctl_put()
69 int snd_opl4_create_mixer(struct snd_opl4 *opl4) in snd_opl4_create_mixer() argument
[all...]
H A Dopl4_local.h37 #include <sound/opl4.h>
131 #define SNDRV_SEQ_DEV_ID_OPL4 "opl4-synth"
202 void snd_opl4_write(struct snd_opl4 *opl4, u8 reg, u8 value);
203 u8 snd_opl4_read(struct snd_opl4 *opl4, u8 reg);
204 void snd_opl4_read_memory(struct snd_opl4 *opl4, char *buf, int offset, int size);
205 void snd_opl4_write_memory(struct snd_opl4 *opl4, const char *buf, int offset, int size);
208 int snd_opl4_create_mixer(struct snd_opl4 *opl4);
212 int snd_opl4_create_proc(struct snd_opl4 *opl4);
213 void snd_opl4_free_proc(struct snd_opl4 *opl4);
215 static inline int snd_opl4_create_proc(struct snd_opl4 *opl4) { retur argument
216 snd_opl4_free_proc(struct snd_opl4 *opl4) snd_opl4_free_proc() argument
[all...]
H A DMakefile7 snd-opl4-lib-objs := opl4_lib.o opl4_mixer.o
8 snd-opl4-lib-$(CONFIG_SND_PROC_FS) += opl4_proc.o
9 snd-opl4-synth-objs := opl4_seq.o opl4_synth.o yrw801.o
11 obj-$(CONFIG_SND_OPL4_LIB) += snd-opl4-lib.o
12 obj-$(CONFIG_SND_OPL4_LIB_SEQ) += snd-opl4-synth.o
H A Dyrw801.c36 int snd_yrw801_detect(struct snd_opl4 *opl4) in snd_yrw801_detect() argument
40 snd_opl4_read_memory(opl4, buf, 0x001200, 15); in snd_yrw801_detect()
43 snd_opl4_read_memory(opl4, buf, 0x1ffffe, 2); in snd_yrw801_detect()
/kernel/linux/linux-6.6/sound/drivers/opl4/
H A Dopl4_lib.c19 static inline void snd_opl4_wait(struct snd_opl4 *opl4) in snd_opl4_wait() argument
22 while ((inb(opl4->fm_port) & OPL4_STATUS_BUSY) && --timeout > 0) in snd_opl4_wait()
26 void snd_opl4_write(struct snd_opl4 *opl4, u8 reg, u8 value) in snd_opl4_write() argument
28 snd_opl4_wait(opl4); in snd_opl4_write()
29 outb(reg, opl4->pcm_port); in snd_opl4_write()
31 snd_opl4_wait(opl4); in snd_opl4_write()
32 outb(value, opl4->pcm_port + 1); in snd_opl4_write()
37 u8 snd_opl4_read(struct snd_opl4 *opl4, u8 reg) in snd_opl4_read() argument
39 snd_opl4_wait(opl4); in snd_opl4_read()
40 outb(reg, opl4 in snd_opl4_read()
48 snd_opl4_read_memory(struct snd_opl4 *opl4, char *buf, int offset, int size) snd_opl4_read_memory() argument
74 snd_opl4_write_memory(struct snd_opl4 *opl4, const char *buf, int offset, int size) snd_opl4_write_memory() argument
100 snd_opl4_enable_opl4(struct snd_opl4 *opl4) snd_opl4_enable_opl4() argument
110 snd_opl4_detect(struct snd_opl4 *opl4) snd_opl4_detect() argument
146 struct snd_opl4 *opl4 = seq_dev->private_data; snd_opl4_seq_dev_free() local
150 snd_opl4_create_seq_dev(struct snd_opl4 *opl4, int seq_device) snd_opl4_create_seq_dev() argument
164 snd_opl4_free(struct snd_opl4 *opl4) snd_opl4_free() argument
174 struct snd_opl4 *opl4 = device->device_data; snd_opl4_dev_free() local
184 struct snd_opl4 *opl4; snd_opl4_create() local
[all...]
H A Dopl4_seq.c49 static int snd_opl4_seq_use_inc(struct snd_opl4 *opl4) in snd_opl4_seq_use_inc() argument
51 if (!try_module_get(opl4->card->module)) in snd_opl4_seq_use_inc()
56 static void snd_opl4_seq_use_dec(struct snd_opl4 *opl4) in snd_opl4_seq_use_dec() argument
58 module_put(opl4->card->module); in snd_opl4_seq_use_dec()
63 struct snd_opl4 *opl4 = private_data; in snd_opl4_seq_use() local
66 mutex_lock(&opl4->access_mutex); in snd_opl4_seq_use()
68 if (opl4->used) { in snd_opl4_seq_use()
69 mutex_unlock(&opl4->access_mutex); in snd_opl4_seq_use()
72 opl4->used++; in snd_opl4_seq_use()
75 err = snd_opl4_seq_use_inc(opl4); in snd_opl4_seq_use()
90 struct snd_opl4 *opl4 = private_data; snd_opl4_seq_unuse() local
114 struct snd_opl4 *opl4 = private_data; snd_opl4_seq_event_input() local
122 struct snd_opl4 *opl4 = private_data; snd_opl4_seq_free_port() local
130 struct snd_opl4 *opl4; snd_opl4_seq_probe() local
187 struct snd_opl4 *opl4; snd_opl4_seq_remove() local
[all...]
H A Dopl4_proc.c15 struct snd_opl4 *opl4 = entry->private_data; in snd_opl4_mem_proc_open() local
17 mutex_lock(&opl4->access_mutex); in snd_opl4_mem_proc_open()
18 if (opl4->memory_access) { in snd_opl4_mem_proc_open()
19 mutex_unlock(&opl4->access_mutex); in snd_opl4_mem_proc_open()
22 opl4->memory_access++; in snd_opl4_mem_proc_open()
23 mutex_unlock(&opl4->access_mutex); in snd_opl4_mem_proc_open()
30 struct snd_opl4 *opl4 = entry->private_data; in snd_opl4_mem_proc_release() local
32 mutex_lock(&opl4->access_mutex); in snd_opl4_mem_proc_release()
33 opl4->memory_access--; in snd_opl4_mem_proc_release()
34 mutex_unlock(&opl4 in snd_opl4_mem_proc_release()
43 struct snd_opl4 *opl4 = entry->private_data; snd_opl4_mem_proc_read() local
64 struct snd_opl4 *opl4 = entry->private_data; snd_opl4_mem_proc_write() local
86 snd_opl4_create_proc(struct snd_opl4 *opl4) snd_opl4_create_proc() argument
109 snd_opl4_free_proc(struct snd_opl4 *opl4) snd_opl4_free_proc() argument
[all...]
H A Dopl4_synth.c273 void snd_opl4_synth_reset(struct snd_opl4 *opl4) in snd_opl4_synth_reset() argument
278 spin_lock_irqsave(&opl4->reg_lock, flags); in snd_opl4_synth_reset()
280 snd_opl4_write(opl4, OPL4_REG_MISC + i, OPL4_DAMP_BIT); in snd_opl4_synth_reset()
281 spin_unlock_irqrestore(&opl4->reg_lock, flags); in snd_opl4_synth_reset()
283 INIT_LIST_HEAD(&opl4->off_voices); in snd_opl4_synth_reset()
284 INIT_LIST_HEAD(&opl4->on_voices); in snd_opl4_synth_reset()
285 memset(opl4->voices, 0, sizeof(opl4->voices)); in snd_opl4_synth_reset()
287 opl4->voices[i].number = i; in snd_opl4_synth_reset()
288 list_add_tail(&opl4 in snd_opl4_synth_reset()
297 snd_opl4_synth_shutdown(struct snd_opl4 *opl4) snd_opl4_synth_shutdown() argument
312 snd_opl4_do_for_note(struct snd_opl4 *opl4, int note, struct snd_midi_channel *chan, void (*func)(struct snd_opl4 *opl4, struct opl4_voice *voice)) snd_opl4_do_for_note() argument
332 snd_opl4_do_for_channel(struct snd_opl4 *opl4, struct snd_midi_channel *chan, void (*func)(struct snd_opl4 *opl4, struct opl4_voice *voice)) snd_opl4_do_for_channel() argument
353 snd_opl4_do_for_all(struct snd_opl4 *opl4, void (*func)(struct snd_opl4 *opl4, struct opl4_voice *voice)) snd_opl4_do_for_all() argument
369 snd_opl4_update_volume(struct snd_opl4 *opl4, struct opl4_voice *voice) snd_opl4_update_volume() argument
388 snd_opl4_update_pan(struct snd_opl4 *opl4, struct opl4_voice *voice) snd_opl4_update_pan() argument
403 snd_opl4_update_vibrato_depth(struct snd_opl4 *opl4, struct opl4_voice *voice) snd_opl4_update_vibrato_depth() argument
419 snd_opl4_update_pitch(struct snd_opl4 *opl4, struct opl4_voice *voice) snd_opl4_update_pitch() argument
450 snd_opl4_update_tone_parameters(struct snd_opl4 *opl4, struct opl4_voice *voice) snd_opl4_update_tone_parameters() argument
464 snd_opl4_get_voice(struct snd_opl4 *opl4) snd_opl4_get_voice() argument
474 snd_opl4_wait_for_wave_headers(struct snd_opl4 *opl4) snd_opl4_wait_for_wave_headers() argument
484 struct snd_opl4 *opl4 = private_data; snd_opl4_note_on() local
555 snd_opl4_voice_off(struct snd_opl4 *opl4, struct opl4_voice *voice) snd_opl4_voice_off() argument
565 struct snd_opl4 *opl4 = private_data; snd_opl4_note_off() local
570 snd_opl4_terminate_voice(struct snd_opl4 *opl4, struct opl4_voice *voice) snd_opl4_terminate_voice() argument
580 struct snd_opl4 *opl4 = private_data; snd_opl4_terminate_note() local
587 struct snd_opl4 *opl4 = private_data; snd_opl4_control() local
627 struct snd_opl4 *opl4 = private_data; snd_opl4_sysex() local
[all...]
H A Dopl4_mixer.c21 struct snd_opl4 *opl4 = snd_kcontrol_chip(kcontrol); in snd_opl4_ctl_get() local
26 spin_lock_irqsave(&opl4->reg_lock, flags); in snd_opl4_ctl_get()
27 value = snd_opl4_read(opl4, reg); in snd_opl4_ctl_get()
28 spin_unlock_irqrestore(&opl4->reg_lock, flags); in snd_opl4_ctl_get()
36 struct snd_opl4 *opl4 = snd_kcontrol_chip(kcontrol); in snd_opl4_ctl_put() local
43 spin_lock_irqsave(&opl4->reg_lock, flags); in snd_opl4_ctl_put()
44 old_value = snd_opl4_read(opl4, reg); in snd_opl4_ctl_put()
45 snd_opl4_write(opl4, reg, value); in snd_opl4_ctl_put()
46 spin_unlock_irqrestore(&opl4->reg_lock, flags); in snd_opl4_ctl_put()
69 int snd_opl4_create_mixer(struct snd_opl4 *opl4) in snd_opl4_create_mixer() argument
[all...]
H A Dopl4_local.h37 #include <sound/opl4.h>
131 #define SNDRV_SEQ_DEV_ID_OPL4 "opl4-synth"
202 void snd_opl4_write(struct snd_opl4 *opl4, u8 reg, u8 value);
203 u8 snd_opl4_read(struct snd_opl4 *opl4, u8 reg);
204 void snd_opl4_read_memory(struct snd_opl4 *opl4, char *buf, int offset, int size);
205 void snd_opl4_write_memory(struct snd_opl4 *opl4, const char *buf, int offset, int size);
208 int snd_opl4_create_mixer(struct snd_opl4 *opl4);
212 int snd_opl4_create_proc(struct snd_opl4 *opl4);
213 void snd_opl4_free_proc(struct snd_opl4 *opl4);
215 static inline int snd_opl4_create_proc(struct snd_opl4 *opl4) { retur argument
216 snd_opl4_free_proc(struct snd_opl4 *opl4) snd_opl4_free_proc() argument
[all...]
H A DMakefile7 snd-opl4-lib-objs := opl4_lib.o opl4_mixer.o
8 snd-opl4-lib-$(CONFIG_SND_PROC_FS) += opl4_proc.o
9 snd-opl4-synth-objs := opl4_seq.o opl4_synth.o yrw801.o
11 obj-$(CONFIG_SND_OPL4_LIB) += snd-opl4-lib.o
12 obj-$(CONFIG_SND_OPL4_LIB_SEQ) += snd-opl4-synth.o
H A Dyrw801.c36 int snd_yrw801_detect(struct snd_opl4 *opl4) in snd_yrw801_detect() argument
40 snd_opl4_read_memory(opl4, buf, 0x001200, 15); in snd_yrw801_detect()
43 snd_opl4_read_memory(opl4, buf, 0x1ffffe, 2); in snd_yrw801_detect()
/kernel/linux/linux-5.10/include/sound/
H A Dopl4.h17 struct snd_opl3 **opl3, struct snd_opl4 **opl4);
/kernel/linux/linux-6.6/include/sound/
H A Dopl4.h17 struct snd_opl3 **opl3, struct snd_opl4 **opl4);
/kernel/linux/linux-5.10/sound/drivers/
H A DMakefile24 obj-$(CONFIG_SND) += opl3/ opl4/ mpu401/ vx/ pcsp/
/kernel/linux/linux-6.6/sound/drivers/
H A DMakefile28 obj-$(CONFIG_SND) += opl3/ opl4/ mpu401/ vx/ pcsp/
/kernel/linux/linux-5.10/sound/isa/opti9xx/
H A Dopti92x-ad1848.c28 #include <sound/opl4.h>
908 struct snd_opl4 *opl4; local
913 2, &opl3, &opl4) < 0) {
H A Dmiro.c24 #include <sound/opl4.h>
1365 struct snd_opl4 *opl4; in snd_miro_probe() local
1368 2, &opl3, &opl4) < 0) in snd_miro_probe()
/kernel/linux/linux-6.6/sound/isa/opti9xx/
H A Dopti92x-ad1848.c28 #include <sound/opl4.h>
889 struct snd_opl4 *opl4; local
894 2, &opl3, &opl4) < 0) {
H A Dmiro.c24 #include <sound/opl4.h>
1364 struct snd_opl4 *opl4; in snd_miro_probe() local
1367 2, &opl3, &opl4) < 0) in snd_miro_probe()

Completed in 17 milliseconds