Commit a254dba37c5a372fc8b44ba29509ba052d4e859d

Authored by Ben Hutchings
Committed by Takashi Iwai
1 parent 47023ec774

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>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

sound/synth/emux/emux_hwdep.c
... ... @@ -128,6 +128,9 @@
128 128 strcpy(hw->name, SNDRV_EMUX_HWDEP_NAME);
129 129 hw->iface = SNDRV_HWDEP_IFACE_EMUX_WAVETABLE;
130 130 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;
131 134 hw->exclusive = 1;
132 135 hw->private_data = emu;
133 136 if ((err = snd_card_register(emu->card)) < 0)