Skip to content

Commit 4467b4f

Browse files
Colin Ian Kinggregkh
authored andcommitted
ALSA: opl3: fix mismatch between snd_opl3_drum_switch definition and declaration
[ Upstream commit b4748e7 ] The function snd_opl3_drum_switch declaration in the header file has the order of the two arguments on_off and vel swapped when compared to the definition arguments of vel and on_off. Fix this by swapping them around to match the definition. This error predates the git history, so no idea when this error was introduced. Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent eebec30 commit 4467b4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/drivers/opl3/opl3_voice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void snd_opl3_timer_func(unsigned long data);
4141

4242
/* Prototypes for opl3_drums.c */
4343
void snd_opl3_load_drums(struct snd_opl3 *opl3);
44-
void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int on_off, int vel, struct snd_midi_channel *chan);
44+
void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int vel, int on_off, struct snd_midi_channel *chan);
4545

4646
/* Prototypes for opl3_oss.c */
4747
#if IS_ENABLED(CONFIG_SND_SEQUENCER_OSS)

0 commit comments

Comments
 (0)