diff options
Diffstat (limited to 'sound/synth/emux/emux_hwdep.c')
-rw-r--r-- | sound/synth/emux/emux_hwdep.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/sound/synth/emux/emux_hwdep.c b/sound/synth/emux/emux_hwdep.c index 4182b44eb47e..9b63814c3f64 100644 --- a/sound/synth/emux/emux_hwdep.c +++ b/sound/synth/emux/emux_hwdep.c | |||
@@ -29,7 +29,7 @@ | |||
29 | * open the hwdep device | 29 | * open the hwdep device |
30 | */ | 30 | */ |
31 | static int | 31 | static int |
32 | snd_emux_hwdep_open(snd_hwdep_t *hw, struct file *file) | 32 | snd_emux_hwdep_open(struct snd_hwdep *hw, struct file *file) |
33 | { | 33 | { |
34 | return 0; | 34 | return 0; |
35 | } | 35 | } |
@@ -39,7 +39,7 @@ snd_emux_hwdep_open(snd_hwdep_t *hw, struct file *file) | |||
39 | * close the device | 39 | * close the device |
40 | */ | 40 | */ |
41 | static int | 41 | static int |
42 | snd_emux_hwdep_release(snd_hwdep_t *hw, struct file *file) | 42 | snd_emux_hwdep_release(struct snd_hwdep *hw, struct file *file) |
43 | { | 43 | { |
44 | return 0; | 44 | return 0; |
45 | } | 45 | } |
@@ -51,10 +51,10 @@ snd_emux_hwdep_release(snd_hwdep_t *hw, struct file *file) | |||
51 | * load patch | 51 | * load patch |
52 | */ | 52 | */ |
53 | static int | 53 | static int |
54 | snd_emux_hwdep_load_patch(snd_emux_t *emu, void __user *arg) | 54 | snd_emux_hwdep_load_patch(struct snd_emux *emu, void __user *arg) |
55 | { | 55 | { |
56 | int err; | 56 | int err; |
57 | soundfont_patch_info_t patch; | 57 | struct soundfont_patch_info patch; |
58 | 58 | ||
59 | if (copy_from_user(&patch, arg, sizeof(patch))) | 59 | if (copy_from_user(&patch, arg, sizeof(patch))) |
60 | return -EFAULT; | 60 | return -EFAULT; |
@@ -77,9 +77,9 @@ snd_emux_hwdep_load_patch(snd_emux_t *emu, void __user *arg) | |||
77 | * set misc mode | 77 | * set misc mode |
78 | */ | 78 | */ |
79 | static int | 79 | static int |
80 | snd_emux_hwdep_misc_mode(snd_emux_t *emu, void __user *arg) | 80 | snd_emux_hwdep_misc_mode(struct snd_emux *emu, void __user *arg) |
81 | { | 81 | { |
82 | struct sndrv_emux_misc_mode info; | 82 | struct snd_emux_misc_mode info; |
83 | int i; | 83 | int i; |
84 | 84 | ||
85 | if (copy_from_user(&info, arg, sizeof(info))) | 85 | if (copy_from_user(&info, arg, sizeof(info))) |
@@ -102,9 +102,10 @@ snd_emux_hwdep_misc_mode(snd_emux_t *emu, void __user *arg) | |||
102 | * ioctl | 102 | * ioctl |
103 | */ | 103 | */ |
104 | static int | 104 | static int |
105 | snd_emux_hwdep_ioctl(snd_hwdep_t * hw, struct file *file, unsigned int cmd, unsigned long arg) | 105 | snd_emux_hwdep_ioctl(struct snd_hwdep * hw, struct file *file, |
106 | unsigned int cmd, unsigned long arg) | ||
106 | { | 107 | { |
107 | snd_emux_t *emu = hw->private_data; | 108 | struct snd_emux *emu = hw->private_data; |
108 | 109 | ||
109 | switch (cmd) { | 110 | switch (cmd) { |
110 | case SNDRV_EMUX_IOCTL_VERSION: | 111 | case SNDRV_EMUX_IOCTL_VERSION: |
@@ -136,9 +137,9 @@ snd_emux_hwdep_ioctl(snd_hwdep_t * hw, struct file *file, unsigned int cmd, unsi | |||
136 | */ | 137 | */ |
137 | 138 | ||
138 | int | 139 | int |
139 | snd_emux_init_hwdep(snd_emux_t *emu) | 140 | snd_emux_init_hwdep(struct snd_emux *emu) |
140 | { | 141 | { |
141 | snd_hwdep_t *hw; | 142 | struct snd_hwdep *hw; |
142 | int err; | 143 | int err; |
143 | 144 | ||
144 | if ((err = snd_hwdep_new(emu->card, SNDRV_EMUX_HWDEP_NAME, emu->hwdep_idx, &hw)) < 0) | 145 | if ((err = snd_hwdep_new(emu->card, SNDRV_EMUX_HWDEP_NAME, emu->hwdep_idx, &hw)) < 0) |
@@ -162,7 +163,7 @@ snd_emux_init_hwdep(snd_emux_t *emu) | |||
162 | * unregister | 163 | * unregister |
163 | */ | 164 | */ |
164 | void | 165 | void |
165 | snd_emux_delete_hwdep(snd_emux_t *emu) | 166 | snd_emux_delete_hwdep(struct snd_emux *emu) |
166 | { | 167 | { |
167 | if (emu->hwdep) { | 168 | if (emu->hwdep) { |
168 | snd_device_free(emu->card, emu->hwdep); | 169 | snd_device_free(emu->card, emu->hwdep); |