]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ALSA: emux: Add trivial compat ioctl handler
authorBen Hutchings <ben@decadent.org.uk>
Sun, 12 Sep 2010 01:41:47 +0000 (02:41 +0100)
committerAndi Kleen <ak@linux.intel.com>
Mon, 1 Aug 2011 20:54:45 +0000 (13:54 -0700)
commit a254dba37c5a372fc8b44ba29509ba052d4e859d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
sound/synth/emux/emux_hwdep.c

index ff0b2a8fd25bbe20dd51191935582746f8ba6edf..5ae1eae9f6dbc2491c5b6bb378ca81cc896e22dc 100644 (file)
@@ -128,6 +128,9 @@ snd_emux_init_hwdep(struct snd_emux *emu)
        strcpy(hw->name, SNDRV_EMUX_HWDEP_NAME);
        hw->iface = SNDRV_HWDEP_IFACE_EMUX_WAVETABLE;
        hw->ops.ioctl = snd_emux_hwdep_ioctl;
+       /* The ioctl parameter types are compatible between 32- and
+        * 64-bit architectures, so use the same function. */
+       hw->ops.ioctl_compat = snd_emux_hwdep_ioctl;
        hw->exclusive = 1;
        hw->private_data = emu;
        if ((err = snd_card_register(emu->card)) < 0)