Lines Matching refs:emu

20 snd_emux_hwdep_load_patch(struct snd_emux *emu, void __user *arg)  in snd_emux_hwdep_load_patch()  argument
29 return snd_soundfont_load_guspatch(emu->card, emu->sflist, arg, in snd_emux_hwdep_load_patch()
34 err = snd_soundfont_load(emu->card, emu->sflist, arg, in snd_emux_hwdep_load_patch()
40 if (emu->ops.load_fx) in snd_emux_hwdep_load_patch()
41 return emu->ops.load_fx(emu, patch.type, patch.optarg, arg, patch.len + sizeof(patch)); in snd_emux_hwdep_load_patch()
52 snd_emux_hwdep_misc_mode(struct snd_emux *emu, void __user *arg) in snd_emux_hwdep_misc_mode() argument
64 for (i = 0; i < emu->num_ports; i++) in snd_emux_hwdep_misc_mode()
65 emu->portptrs[i]->ctrls[info.mode] = info.value; in snd_emux_hwdep_misc_mode()
67 if (info.port < emu->num_ports) { in snd_emux_hwdep_misc_mode()
68 info.port = array_index_nospec(info.port, emu->num_ports); in snd_emux_hwdep_misc_mode()
69 emu->portptrs[info.port]->ctrls[info.mode] = info.value; in snd_emux_hwdep_misc_mode()
83 struct snd_emux *emu = hw->private_data; in snd_emux_hwdep_ioctl() local
89 return snd_emux_hwdep_load_patch(emu, (void __user *)arg); in snd_emux_hwdep_ioctl()
91 snd_soundfont_remove_samples(emu->sflist); in snd_emux_hwdep_ioctl()
94 snd_soundfont_remove_unlocked(emu->sflist); in snd_emux_hwdep_ioctl()
97 if (emu->memhdr) { in snd_emux_hwdep_ioctl()
98 int size = snd_util_mem_avail(emu->memhdr); in snd_emux_hwdep_ioctl()
103 return snd_emux_hwdep_misc_mode(emu, (void __user *)arg); in snd_emux_hwdep_ioctl()
115 snd_emux_init_hwdep(struct snd_emux *emu) in snd_emux_init_hwdep() argument
120 err = snd_hwdep_new(emu->card, SNDRV_EMUX_HWDEP_NAME, emu->hwdep_idx, &hw); in snd_emux_init_hwdep()
123 emu->hwdep = hw; in snd_emux_init_hwdep()
131 hw->private_data = emu; in snd_emux_init_hwdep()
132 err = snd_card_register(emu->card); in snd_emux_init_hwdep()
144 snd_emux_delete_hwdep(struct snd_emux *emu) in snd_emux_delete_hwdep() argument
146 if (emu->hwdep) { in snd_emux_delete_hwdep()
147 snd_device_free(emu->card, emu->hwdep); in snd_emux_delete_hwdep()
148 emu->hwdep = NULL; in snd_emux_delete_hwdep()