summaryrefslogtreecommitdiffstats
path: root/sound/drivers/opl3/opl3_voice.h
diff options
context:
space:
mode:
authorTakashi Iwai2018-07-25 23:00:52 +0200
committerTakashi Iwai2018-07-26 08:31:48 +0200
commit7e9c20f40304a16d5f69dbdc44a551cc48252266 (patch)
tree5614c2a1684e3f782d73fcc46d5c0cf89501cf14 /sound/drivers/opl3/opl3_voice.h
parentALSA: hda - Fix a sparse warning about snd_ctl_elem_iface_t (diff)
downloadkernel-qcow2-linux-7e9c20f40304a16d5f69dbdc44a551cc48252266.tar.gz
kernel-qcow2-linux-7e9c20f40304a16d5f69dbdc44a551cc48252266.tar.xz
kernel-qcow2-linux-7e9c20f40304a16d5f69dbdc44a551cc48252266.zip
ALSA: opl3: Declare common variables properly
Move the declarations of common variables into opl3_voice.h instead of declaring at each file multiple times, which was error-prone. This fixes sparse warnings like: sound/drivers/opl3/opl3_synth.c:51:6: warning: symbol 'snd_opl3_regmap' was not declared. Should it be static? Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers/opl3/opl3_voice.h')
-rw-r--r--sound/drivers/opl3/opl3_voice.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/drivers/opl3/opl3_voice.h b/sound/drivers/opl3/opl3_voice.h
index a2445163008e..5b02bd49fde4 100644
--- a/sound/drivers/opl3/opl3_voice.h
+++ b/sound/drivers/opl3/opl3_voice.h
@@ -52,4 +52,8 @@ void snd_opl3_free_seq_oss(struct snd_opl3 *opl3);
#define snd_opl3_free_seq_oss(opl3) /* NOP */
#endif
+extern char snd_opl3_regmap[MAX_OPL2_VOICES][4];
+extern bool use_internal_drums;
+extern struct snd_midi_op opl3_ops;
+
#endif