Home
last modified time | relevance | path

Searched refs:opl4 (Results 1 – 14 of 14) sorted by relevance

/linux-6.15/sound/drivers/opl4/
H A Dopl4_lib.c28 snd_opl4_wait(opl4); in snd_opl4_write()
31 snd_opl4_wait(opl4); in snd_opl4_write()
39 snd_opl4_wait(opl4); in snd_opl4_read()
42 snd_opl4_wait(opl4); in snd_opl4_read()
62 snd_opl4_wait(opl4); in snd_opl4_read_memory()
157 opl4->seq_dev->private_data = opl4; in snd_opl4_create_seq_dev()
169 kfree(opl4); in snd_opl4_free()
196 opl4 = kzalloc(sizeof(*opl4), GFP_KERNEL); in snd_opl4_create()
197 if (!opl4) in snd_opl4_create()
202 if (!opl4->res_fm_port || !opl4->res_pcm_port) { in snd_opl4_create()
[all …]
H A Dopl4_seq.c68 if (opl4->used) { in snd_opl4_seq_use()
72 opl4->used++; in snd_opl4_seq_use()
95 opl4->used--; in snd_opl4_seq_unuse()
130 struct snd_opl4 *opl4; in snd_opl4_seq_probe() local
135 if (!opl4) in snd_opl4_seq_probe()
142 if (!opl4->chset) in snd_opl4_seq_probe()
144 opl4->chset->private_data = opl4; in snd_opl4_seq_probe()
147 client = snd_seq_create_kernel_client(opl4->card, opl4->seq_dev_num, in snd_opl4_seq_probe()
178 opl4->seq_client = -1; in snd_opl4_seq_probe()
187 struct snd_opl4 *opl4; in snd_opl4_seq_remove() local
[all …]
H A Dopl4_synth.c283 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->voices[i].list, &opl4->off_voices); in snd_opl4_synth_reset()
321 voice = &opl4->voices[i]; in snd_opl4_do_for_note()
323 func(opl4, voice); in snd_opl4_do_for_note()
342 voice = &opl4->voices[i]; in snd_opl4_do_for_channel()
344 func(opl4, voice); in snd_opl4_do_for_channel()
362 voice = &opl4->voices[i]; in snd_opl4_do_for_all()
[all …]
H A Dopl4_proc.c17 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()
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->access_mutex); in snd_opl4_mem_proc_release()
90 entry = snd_info_create_card_entry(opl4->card, "opl4-mem", opl4->card->proc_root); in snd_opl4_create_proc()
103 entry->private_data = opl4; in snd_opl4_create_proc()
[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.h202 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);
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) { return 0; } in snd_opl4_create_proc() argument
216 static inline void snd_opl4_free_proc(struct snd_opl4 *opl4) {} in snd_opl4_free_proc() argument
223 void snd_opl4_synth_reset(struct snd_opl4 *opl4);
224 void snd_opl4_synth_shutdown(struct snd_opl4 *opl4);
[all …]
H A DMakefile7 snd-opl4-lib-y := opl4_lib.o opl4_mixer.o
8 snd-opl4-lib-$(CONFIG_SND_PROC_FS) += opl4_proc.o
9 snd-opl4-synth-y := 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()
46 dev_dbg(opl4->card->dev, "YRW801 ROM version %02x.%02x\n", buf[0], buf[1]); in snd_yrw801_detect()
/linux-6.15/include/sound/
H A Dopl4.h17 struct snd_opl3 **opl3, struct snd_opl4 **opl4);
/linux-6.15/sound/drivers/
H A DMakefile28 obj-$(CONFIG_SND) += opl3/ opl4/ mpu401/ vx/ pcsp/
/linux-6.15/sound/isa/opti9xx/
H A Dopti92x-ad1848.c890 struct snd_opl4 *opl4; local
895 2, &opl3, &opl4) < 0) {
H A Dmiro.c1372 struct snd_opl4 *opl4; in snd_miro_probe() local
1375 2, &opl3, &opl4) < 0) in snd_miro_probe()
/linux-6.15/Documentation/sound/kernel-api/
H A Dwriting-an-alsa-driver.rst107 drivers/opl3 and opl4
/linux-6.15/
H A DMAINTAINERS18372 F: sound/drivers/opl4/