aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/drivers/opl4/opl4_lib.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sound/drivers/opl4/opl4_lib.c b/sound/drivers/opl4/opl4_lib.c
index 4bc860ae02de..01997f24c895 100644
--- a/sound/drivers/opl4/opl4_lib.c
+++ b/sound/drivers/opl4/opl4_lib.c
@@ -43,6 +43,8 @@ void snd_opl4_write(struct snd_opl4 *opl4, u8 reg, u8 value)
43 outb(value, opl4->pcm_port + 1); 43 outb(value, opl4->pcm_port + 1);
44} 44}
45 45
46EXPORT_SYMBOL(snd_opl4_write);
47
46u8 snd_opl4_read(struct snd_opl4 *opl4, u8 reg) 48u8 snd_opl4_read(struct snd_opl4 *opl4, u8 reg)
47{ 49{
48 snd_opl4_wait(opl4); 50 snd_opl4_wait(opl4);
@@ -52,6 +54,8 @@ u8 snd_opl4_read(struct snd_opl4 *opl4, u8 reg)
52 return inb(opl4->pcm_port + 1); 54 return inb(opl4->pcm_port + 1);
53} 55}
54 56
57EXPORT_SYMBOL(snd_opl4_read);
58
55void snd_opl4_read_memory(struct snd_opl4 *opl4, char *buf, int offset, int size) 59void snd_opl4_read_memory(struct snd_opl4 *opl4, char *buf, int offset, int size)
56{ 60{
57 unsigned long flags; 61 unsigned long flags;
@@ -76,6 +80,8 @@ void snd_opl4_read_memory(struct snd_opl4 *opl4, char *buf, int offset, int size
76 spin_unlock_irqrestore(&opl4->reg_lock, flags); 80 spin_unlock_irqrestore(&opl4->reg_lock, flags);
77} 81}
78 82
83EXPORT_SYMBOL(snd_opl4_read_memory);
84
79void snd_opl4_write_memory(struct snd_opl4 *opl4, const char *buf, int offset, int size) 85void snd_opl4_write_memory(struct snd_opl4 *opl4, const char *buf, int offset, int size)
80{ 86{
81 unsigned long flags; 87 unsigned long flags;
@@ -100,6 +106,8 @@ void snd_opl4_write_memory(struct snd_opl4 *opl4, const char *buf, int offset, i
100 spin_unlock_irqrestore(&opl4->reg_lock, flags); 106 spin_unlock_irqrestore(&opl4->reg_lock, flags);
101} 107}
102 108
109EXPORT_SYMBOL(snd_opl4_write_memory);
110
103static void snd_opl4_enable_opl4(struct snd_opl4 *opl4) 111static void snd_opl4_enable_opl4(struct snd_opl4 *opl4)
104{ 112{
105 outb(OPL3_REG_MODE, opl4->fm_port + 2); 113 outb(OPL3_REG_MODE, opl4->fm_port + 2);
@@ -256,10 +264,6 @@ int snd_opl4_create(struct snd_card *card,
256 return 0; 264 return 0;
257} 265}
258 266
259EXPORT_SYMBOL(snd_opl4_write);
260EXPORT_SYMBOL(snd_opl4_read);
261EXPORT_SYMBOL(snd_opl4_write_memory);
262EXPORT_SYMBOL(snd_opl4_read_memory);
263EXPORT_SYMBOL(snd_opl4_create); 267EXPORT_SYMBOL(snd_opl4_create);
264 268
265static int __init alsa_opl4_init(void) 269static int __init alsa_opl4_init(void)