aboutsummaryrefslogtreecommitdiffstats
path: root/sound/synth/emux/emux_hwdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/synth/emux/emux_hwdep.c')
-rw-r--r--sound/synth/emux/emux_hwdep.c23
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 */
31static int 31static int
32snd_emux_hwdep_open(snd_hwdep_t *hw, struct file *file) 32snd_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 */
41static int 41static int
42snd_emux_hwdep_release(snd_hwdep_t *hw, struct file *file) 42snd_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 */
53static int 53static int
54snd_emux_hwdep_load_patch(snd_emux_t *emu, void __user *arg) 54snd_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 */
79static int 79static int
80snd_emux_hwdep_misc_mode(snd_emux_t *emu, void __user *arg) 80snd_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 */
104static int 104static int
105snd_emux_hwdep_ioctl(snd_hwdep_t * hw, struct file *file, unsigned int cmd, unsigned long arg) 105snd_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
138int 139int
139snd_emux_init_hwdep(snd_emux_t *emu) 140snd_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 */
164void 165void
165snd_emux_delete_hwdep(snd_emux_t *emu) 166snd_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);