X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=sound%2Fsynth%2Femux%2Femux_hwdep.c;h=0a5391436addfd3f0b67c5f91aa487f1af349bd7;hb=6aa5fc434958d15a4d66d922d0416dfb03c07def;hp=4182b44eb47e60ff7257296ed0ce21cc7be2ae65;hpb=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2;p=linux-2.6 diff --git a/sound/synth/emux/emux_hwdep.c b/sound/synth/emux/emux_hwdep.c index 4182b44eb4..0a5391436a 100644 --- a/sound/synth/emux/emux_hwdep.c +++ b/sound/synth/emux/emux_hwdep.c @@ -19,7 +19,6 @@ * */ -#include #include #include #include @@ -29,7 +28,7 @@ * open the hwdep device */ static int -snd_emux_hwdep_open(snd_hwdep_t *hw, struct file *file) +snd_emux_hwdep_open(struct snd_hwdep *hw, struct file *file) { return 0; } @@ -39,7 +38,7 @@ snd_emux_hwdep_open(snd_hwdep_t *hw, struct file *file) * close the device */ static int -snd_emux_hwdep_release(snd_hwdep_t *hw, struct file *file) +snd_emux_hwdep_release(struct snd_hwdep *hw, struct file *file) { return 0; } @@ -51,10 +50,10 @@ snd_emux_hwdep_release(snd_hwdep_t *hw, struct file *file) * load patch */ static int -snd_emux_hwdep_load_patch(snd_emux_t *emu, void __user *arg) +snd_emux_hwdep_load_patch(struct snd_emux *emu, void __user *arg) { int err; - soundfont_patch_info_t patch; + struct soundfont_patch_info patch; if (copy_from_user(&patch, arg, sizeof(patch))) return -EFAULT; @@ -77,9 +76,9 @@ snd_emux_hwdep_load_patch(snd_emux_t *emu, void __user *arg) * set misc mode */ static int -snd_emux_hwdep_misc_mode(snd_emux_t *emu, void __user *arg) +snd_emux_hwdep_misc_mode(struct snd_emux *emu, void __user *arg) { - struct sndrv_emux_misc_mode info; + struct snd_emux_misc_mode info; int i; if (copy_from_user(&info, arg, sizeof(info))) @@ -102,9 +101,10 @@ snd_emux_hwdep_misc_mode(snd_emux_t *emu, void __user *arg) * ioctl */ static int -snd_emux_hwdep_ioctl(snd_hwdep_t * hw, struct file *file, unsigned int cmd, unsigned long arg) +snd_emux_hwdep_ioctl(struct snd_hwdep * hw, struct file *file, + unsigned int cmd, unsigned long arg) { - snd_emux_t *emu = hw->private_data; + struct snd_emux *emu = hw->private_data; switch (cmd) { case SNDRV_EMUX_IOCTL_VERSION: @@ -136,9 +136,9 @@ snd_emux_hwdep_ioctl(snd_hwdep_t * hw, struct file *file, unsigned int cmd, unsi */ int -snd_emux_init_hwdep(snd_emux_t *emu) +snd_emux_init_hwdep(struct snd_emux *emu) { - snd_hwdep_t *hw; + struct snd_hwdep *hw; int err; if ((err = snd_hwdep_new(emu->card, SNDRV_EMUX_HWDEP_NAME, emu->hwdep_idx, &hw)) < 0) @@ -162,7 +162,7 @@ snd_emux_init_hwdep(snd_emux_t *emu) * unregister */ void -snd_emux_delete_hwdep(snd_emux_t *emu) +snd_emux_delete_hwdep(struct snd_emux *emu) { if (emu->hwdep) { snd_device_free(emu->card, emu->hwdep);