Skip to content

Commit a254dba

Browse files
bwhackstiwai
authored andcommitted
ALSA: emux: Add trivial compat ioctl handler
Reported-by: Carmen Cru <carmen.cru@belgacom.net> Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 47023ec commit a254dba

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎sound/synth/emux/emux_hwdep.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ snd_emux_init_hwdep(struct snd_emux *emu)
128128
strcpy(hw->name, SNDRV_EMUX_HWDEP_NAME);
129129
hw->iface = SNDRV_HWDEP_IFACE_EMUX_WAVETABLE;
130130
hw->ops.ioctl = snd_emux_hwdep_ioctl;
131+
/* The ioctl parameter types are compatible between 32- and
132+
* 64-bit architectures, so use the same function. */
133+
hw->ops.ioctl_compat = snd_emux_hwdep_ioctl;
131134
hw->exclusive = 1;
132135
hw->private_data = emu;
133136
if ((err = snd_card_register(emu->card)) < 0)

0 commit comments

Comments
 (0)