Commit 873b0cdb authored by Ben Hutchings's avatar Ben Hutchings Committed by Greg Kroah-Hartman

ALSA: emux: Add trivial compat ioctl handler

commit a254dba3 upstream.
Reported-by: default avatarCarmen Cru <carmen.cru@belgacom.net>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 7f81077f
...@@ -128,6 +128,9 @@ snd_emux_init_hwdep(struct snd_emux *emu) ...@@ -128,6 +128,9 @@ snd_emux_init_hwdep(struct snd_emux *emu)
strcpy(hw->name, SNDRV_EMUX_HWDEP_NAME); strcpy(hw->name, SNDRV_EMUX_HWDEP_NAME);
hw->iface = SNDRV_HWDEP_IFACE_EMUX_WAVETABLE; hw->iface = SNDRV_HWDEP_IFACE_EMUX_WAVETABLE;
hw->ops.ioctl = snd_emux_hwdep_ioctl; 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->exclusive = 1;
hw->private_data = emu; hw->private_data = emu;
if ((err = snd_card_register(emu->card)) < 0) if ((err = snd_card_register(emu->card)) < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment