Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 103) sorted by relevance

12345

/sound/drivers/opl3/
Dopl3_oss.c24 static int snd_opl3_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure);
25 static int snd_opl3_close_seq_oss(struct snd_seq_oss_arg *arg);
26 static int snd_opl3_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd, unsigned long ioar…
27 static int snd_opl3_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format, const char __user *…
28 static int snd_opl3_reset_seq_oss(struct snd_seq_oss_arg *arg);
121 struct snd_seq_oss_reg *arg; in snd_opl3_init_seq_oss() local
130 arg = SNDRV_SEQ_DEVICE_ARGPTR(dev); in snd_opl3_init_seq_oss()
131 arg->type = SYNTH_TYPE_FM; in snd_opl3_init_seq_oss()
133 arg->subtype = FM_TYPE_ADLIB; in snd_opl3_init_seq_oss()
134 arg->nvoices = MAX_OPL2_VOICES; in snd_opl3_init_seq_oss()
[all …]
/sound/oss/
Dpas2_pcm.c47 static int pcm_set_speed(int arg) in pcm_set_speed() argument
52 if (arg == 0) in pcm_set_speed()
55 if (arg > 44100) in pcm_set_speed()
56 arg = 44100; in pcm_set_speed()
57 if (arg < 5000) in pcm_set_speed()
58 arg = 5000; in pcm_set_speed()
62 foo = ((PIT_TICK_RATE / 2) + (arg / 2)) / arg; in pcm_set_speed()
63 arg = ((PIT_TICK_RATE / 2) + (foo / 2)) / foo; in pcm_set_speed()
67 foo = (PIT_TICK_RATE + (arg / 2)) / arg; in pcm_set_speed()
68 arg = (PIT_TICK_RATE + (foo / 2)) / foo; in pcm_set_speed()
[all …]
Dpss.c504 void __user *arg) in call_ad_mixer() argument
507 return mixer_devs[devc->ad_mixer_dev]->ioctl(devc->ad_mixer_dev, cmd, arg); in call_ad_mixer()
512 static int pss_mixer_ioctl (int dev, unsigned int cmd, void __user *arg) in pss_mixer_ioctl() argument
523 return call_ad_mixer(devc, cmd, arg); in pss_mixer_ioctl()
535 return call_ad_mixer(devc, cmd, arg); in pss_mixer_ioctl()
539 if (get_user(v, (int __user *)arg)) in pss_mixer_ioctl()
546 if (set_volume_stereo(arg, in pss_mixer_ioctl()
556 if (set_volume_mono(arg, &devc->mixer.bass)) in pss_mixer_ioctl()
562 if (set_volume_mono(arg, &devc->mixer.treble)) in pss_mixer_ioctl()
568 if (set_volume_mono(arg, &devc->mixer.synth)) in pss_mixer_ioctl()
[all …]
Dswarm_cs4297a.c1157 unsigned long arg) in mixer_ioctl() argument
1211 (unsigned long *) arg); in mixer_ioctl()
1215 (unsigned long *) arg); in mixer_ioctl()
1218 if (get_user(val, (unsigned long *) arg)) in mixer_ioctl()
1224 if (get_user(val, (unsigned long *) arg)) in mixer_ioctl()
1241 if (get_user(val, (int *) arg)) in mixer_ioctl()
1252 return put_user((temp1 << 2) | 3, (int *) arg); in mixer_ioctl()
1260 if (copy_to_user((void *) arg, &info, sizeof(info))) in mixer_ioctl()
1269 if (copy_to_user((void *) arg, &info, sizeof(info))) in mixer_ioctl()
1274 return put_user(SOUND_VERSION, (int *) arg); in mixer_ioctl()
[all …]
Dwaveartist.c156 static int vnc_private_ioctl(int dev, unsigned int cmd, int __user *arg);
326 waveartist_cmd2(struct wavnc_info *devc, unsigned int cmd, unsigned int arg) in waveartist_cmd2() argument
331 vals[1] = arg; in waveartist_cmd2()
518 waveartist_ioctl(int dev, unsigned int cmd, void __user * arg) in waveartist_ioctl() argument
781 waveartist_set_speed(int dev, int arg) in waveartist_set_speed() argument
786 if (arg <= 0) in waveartist_set_speed()
789 if (arg < 5000) in waveartist_set_speed()
790 arg = 5000; in waveartist_set_speed()
791 if (arg > 44100) in waveartist_set_speed()
792 arg = 44100; in waveartist_set_speed()
[all …]
Dsoundcard.c115 static int set_mixer_levels(void __user * arg) in set_mixer_levels() argument
120 if (__copy_from_user(&buf, arg, sizeof(buf))) in set_mixer_levels()
123 if (__copy_to_user(arg, &buf, sizeof(buf))) in set_mixer_levels()
128 static int get_mixer_levels(void __user * arg) in get_mixer_levels() argument
132 if (__get_user(n, (int __user *)(&(((mixer_vol_table __user *)arg)->num)))) in get_mixer_levels()
136 if (__copy_to_user(arg, &mixer_vols[n], sizeof(mixer_vol_table))) in get_mixer_levels()
285 static int get_mixer_info(int dev, void __user *arg) in get_mixer_info() argument
292 if (__copy_to_user(arg, &info, sizeof(info))) in get_mixer_info()
297 static int get_old_mixer_info(int dev, void __user *arg) in get_old_mixer_info() argument
303 if (copy_to_user(arg, &info, sizeof(info))) in get_old_mixer_info()
[all …]
/sound/pci/emu10k1/
Demu10k1_synth.c37 struct snd_emu10k1_synth_arg *arg; in snd_emu10k1_synth_probe() local
40 arg = SNDRV_SEQ_DEVICE_ARGPTR(dev); in snd_emu10k1_synth_probe()
41 if (arg == NULL) in snd_emu10k1_synth_probe()
44 if (arg->seq_ports <= 0) in snd_emu10k1_synth_probe()
46 if (arg->max_voices < 1) in snd_emu10k1_synth_probe()
47 arg->max_voices = 1; in snd_emu10k1_synth_probe()
48 else if (arg->max_voices > 64) in snd_emu10k1_synth_probe()
49 arg->max_voices = 64; in snd_emu10k1_synth_probe()
55 hw = arg->hwptr; in snd_emu10k1_synth_probe()
57 emux->max_voices = arg->max_voices; in snd_emu10k1_synth_probe()
[all …]
Demu10k1.c176 struct snd_emu10k1_synth_arg *arg; in snd_card_emu10k1_probe() local
177 arg = SNDRV_SEQ_DEVICE_ARGPTR(wave); in snd_card_emu10k1_probe()
179 arg->hwptr = emu; in snd_card_emu10k1_probe()
180 arg->index = 1; in snd_card_emu10k1_probe()
181 arg->seq_ports = seq_ports[dev]; in snd_card_emu10k1_probe()
182 arg->max_voices = max_synth_voices[dev]; in snd_card_emu10k1_probe()
/sound/synth/emux/
Demux_oss.c34 static int snd_emux_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure);
35 static int snd_emux_close_seq_oss(struct snd_seq_oss_arg *arg);
36 static int snd_emux_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd,
38 static int snd_emux_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format,
40 static int snd_emux_reset_seq_oss(struct snd_seq_oss_arg *arg);
69 struct snd_seq_oss_reg *arg; in snd_emux_init_seq_oss() local
79 arg = SNDRV_SEQ_DEVICE_ARGPTR(dev); in snd_emux_init_seq_oss()
80 arg->type = SYNTH_TYPE_SAMPLE; in snd_emux_init_seq_oss()
81 arg->subtype = SAMPLE_TYPE_AWE32; in snd_emux_init_seq_oss()
82 arg->nvoices = emu->max_voices; in snd_emux_init_seq_oss()
[all …]
Demux_hwdep.c34 snd_emux_hwdep_load_patch(struct snd_emux *emu, void __user *arg) in snd_emux_hwdep_load_patch() argument
39 if (copy_from_user(&patch, arg, sizeof(patch))) in snd_emux_hwdep_load_patch()
44 err = snd_soundfont_load(emu->sflist, arg, patch.len + sizeof(patch), TMP_CLIENT_ID); in snd_emux_hwdep_load_patch()
49 return emu->ops.load_fx(emu, patch.type, patch.optarg, arg, patch.len + sizeof(patch)); in snd_emux_hwdep_load_patch()
60 snd_emux_hwdep_misc_mode(struct snd_emux *emu, void __user *arg) in snd_emux_hwdep_misc_mode() argument
65 if (copy_from_user(&info, arg, sizeof(info))) in snd_emux_hwdep_misc_mode()
86 unsigned int cmd, unsigned long arg) in snd_emux_hwdep_ioctl() argument
92 return put_user(SNDRV_EMUX_VERSION, (unsigned int __user *)arg); in snd_emux_hwdep_ioctl()
94 return snd_emux_hwdep_load_patch(emu, (void __user *)arg); in snd_emux_hwdep_ioctl()
104 return put_user(size, (unsigned int __user *)arg); in snd_emux_hwdep_ioctl()
[all …]
/sound/core/seq/oss/
Dseq_oss_ioctl.c31 static int snd_seq_oss_synth_info_user(struct seq_oss_devinfo *dp, void __user *arg) in snd_seq_oss_synth_info_user() argument
35 if (copy_from_user(&info, arg, sizeof(info))) in snd_seq_oss_synth_info_user()
39 if (copy_to_user(arg, &info, sizeof(info))) in snd_seq_oss_synth_info_user()
44 static int snd_seq_oss_midi_info_user(struct seq_oss_devinfo *dp, void __user *arg) in snd_seq_oss_midi_info_user() argument
48 if (copy_from_user(&info, arg, sizeof(info))) in snd_seq_oss_midi_info_user()
52 if (copy_to_user(arg, &info, sizeof(info))) in snd_seq_oss_midi_info_user()
57 static int snd_seq_oss_oob_user(struct seq_oss_devinfo *dp, void __user *arg) in snd_seq_oss_oob_user() argument
62 if (copy_from_user(ev, arg, 8)) in snd_seq_oss_oob_user()
77 void __user *arg = (void __user *)carg; in snd_seq_oss_ioctl() local
78 int __user *p = arg; in snd_seq_oss_ioctl()
[all …]
Dseq_oss_synth.c230 info->arg.app_index = dp->port; in snd_seq_oss_synth_setup()
231 info->arg.file_mode = dp->file_mode; in snd_seq_oss_synth_setup()
232 info->arg.seq_mode = dp->seq_mode; in snd_seq_oss_synth_setup()
234 info->arg.event_passing = SNDRV_SEQ_OSS_PROCESS_EVENTS; in snd_seq_oss_synth_setup()
236 info->arg.event_passing = SNDRV_SEQ_OSS_PASS_EVENTS; in snd_seq_oss_synth_setup()
242 if (rec->oper.open(&info->arg, rec->private_data) < 0) { in snd_seq_oss_synth_setup()
251 rec->oper.close(&info->arg); in snd_seq_oss_synth_setup()
283 info->arg.app_index = dp->port; in snd_seq_oss_synth_setup_midi()
284 info->arg.file_mode = dp->file_mode; in snd_seq_oss_synth_setup_midi()
285 info->arg.seq_mode = dp->seq_mode; in snd_seq_oss_synth_setup_midi()
[all …]
Dseq_oss_device.h68 struct snd_seq_oss_arg arg; member
124 int snd_seq_oss_ioctl(struct seq_oss_devinfo *dp, unsigned int cmd, unsigned long arg);
155 snd_seq_oss_control(struct seq_oss_devinfo *dp, unsigned int type, void *arg) in snd_seq_oss_control() argument
157 return snd_seq_kernel_client_ctl(dp->cseq, type, arg); in snd_seq_oss_control()
Dseq_oss_timer.c231 snd_seq_oss_timer_ioctl(struct seq_oss_timer *timer, unsigned int cmd, int __user *arg) in snd_seq_oss_timer_ioctl() argument
237 if (get_user(value, arg)) in snd_seq_oss_timer_ioctl()
242 return put_user(value, arg) ? -EFAULT : 0; in snd_seq_oss_timer_ioctl()
256 if (get_user(value, arg)) in snd_seq_oss_timer_ioctl()
260 if (get_user(value, arg)) in snd_seq_oss_timer_ioctl()
/sound/pci/hda/
Dhda_hwdep.c34 struct hda_verb_ioctl __user *arg) in verb_write_ioctl() argument
38 if (get_user(verb, &arg->verb)) in verb_write_ioctl()
42 if (put_user(res, &arg->res)) in verb_write_ioctl()
48 struct hda_verb_ioctl __user *arg) in get_wcap_ioctl() argument
52 if (get_user(verb, &arg->verb)) in get_wcap_ioctl()
55 if (put_user(res, &arg->res)) in get_wcap_ioctl()
64 unsigned int cmd, unsigned long arg) in hda_hwdep_ioctl() argument
67 void __user *argp = (void __user *)arg; in hda_hwdep_ioctl()
82 unsigned int cmd, unsigned long arg) in hda_hwdep_ioctl_compat() argument
84 return hda_hwdep_ioctl(hw, file, cmd, (unsigned long)compat_ptr(arg)); in hda_hwdep_ioctl_compat()
/sound/core/seq/
Dseq_clientmgr.c1124 static int snd_seq_ioctl_pversion(struct snd_seq_client *client, void *arg) in snd_seq_ioctl_pversion() argument
1126 int *pversion = arg; in snd_seq_ioctl_pversion()
1132 static int snd_seq_ioctl_client_id(struct snd_seq_client *client, void *arg) in snd_seq_ioctl_client_id() argument
1134 int *client_id = arg; in snd_seq_ioctl_client_id()
1141 static int snd_seq_ioctl_system_info(struct snd_seq_client *client, void *arg) in snd_seq_ioctl_system_info() argument
1143 struct snd_seq_system_info *info = arg; in snd_seq_ioctl_system_info()
1159 static int snd_seq_ioctl_running_mode(struct snd_seq_client *client, void *arg) in snd_seq_ioctl_running_mode() argument
1161 struct snd_seq_running_info *info = arg; in snd_seq_ioctl_running_mode()
1220 void *arg) in snd_seq_ioctl_get_client_info() argument
1222 struct snd_seq_client_info *client_info = arg; in snd_seq_ioctl_get_client_info()
[all …]
/sound/core/
Dcompress_offload.c239 snd_compr_ioctl_avail(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_ioctl_avail() argument
256 if (copy_to_user((__u64 __user *)arg, in snd_compr_ioctl_avail()
459 snd_compr_get_caps(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_get_caps() argument
471 if (copy_to_user((void __user *)arg, &caps, sizeof(caps))) in snd_compr_get_caps()
479 snd_compr_get_codec_caps(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_get_codec_caps() argument
494 if (copy_to_user((void __user *)arg, caps, sizeof(*caps))) in snd_compr_get_codec_caps()
546 snd_compr_set_params(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_set_params() argument
556 params = memdup_user((void __user *)arg, sizeof(*params)); in snd_compr_set_params()
590 snd_compr_get_params(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_get_params() argument
604 if (copy_to_user((char __user *)arg, params, sizeof(*params))) in snd_compr_get_params()
[all …]
Dhwdep_compat.c63 unsigned long arg) in snd_hwdep_ioctl_compat() argument
66 void __user *argp = compat_ptr(arg); in snd_hwdep_ioctl_compat()
76 return hw->ops.ioctl_compat(hw, file, cmd, arg); in snd_hwdep_ioctl_compat()
/sound/oss/dmasound/
Ddmasound_core.c346 static int mixer_ioctl(struct file *file, u_int cmd, u_long arg) in mixer_ioctl() argument
352 return IOCTL_OUT(arg, SOUND_VERSION); in mixer_ioctl()
360 if (copy_to_user((void __user *)arg, &info, sizeof(info))) in mixer_ioctl()
366 return dmasound.mach.mixer_ioctl(cmd, arg); in mixer_ioctl()
370 static long mixer_unlocked_ioctl(struct file *file, u_int cmd, u_long arg) in mixer_unlocked_ioctl() argument
375 ret = mixer_ioctl(file, cmd, arg); in mixer_unlocked_ioctl()
988 static int sq_ioctl(struct file *file, u_int cmd, u_long arg) in sq_ioctl() argument
1003 return IOCTL_OUT(arg, fmt); in sq_ioctl()
1020 return IOCTL_OUT(arg, size); in sq_ioctl()
1047 return IOCTL_OUT(arg, dmasound.soft.speed); in sq_ioctl()
[all …]
Ddmasound_atari.c142 static int AtaMixerIoctl(u_int cmd, u_long arg);
143 static int TTMixerIoctl(u_int cmd, u_long arg);
144 static int FalconMixerIoctl(u_int cmd, u_long arg);
1360 static int AtaMixerIoctl(u_int cmd, u_long arg) in AtaMixerIoctl() argument
1372 return IOCTL_OUT(arg, porta & 0x40 ? 0 : 100); in AtaMixerIoctl()
1376 IOCTL_IN(arg, data); in AtaMixerIoctl()
1377 return IOCTL_OUT(arg, dmasound_set_volume(data)); in AtaMixerIoctl()
1381 IOCTL_IN(arg, data); in AtaMixerIoctl()
1388 return IOCTL_OUT(arg, porta & 0x40 ? 0 : 100); in AtaMixerIoctl()
1395 static int TTMixerIoctl(u_int cmd, u_long arg) in TTMixerIoctl() argument
[all …]
/sound/firewire/tascam/
Dtascam-hwdep.c71 static int hwdep_get_info(struct snd_tscm *tscm, void __user *arg) in hwdep_get_info() argument
84 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info()
139 unsigned int cmd, unsigned long arg) in hwdep_ioctl() argument
145 return hwdep_get_info(tscm, (void __user *)arg); in hwdep_ioctl()
157 unsigned int cmd, unsigned long arg) in hwdep_compat_ioctl() argument
160 (unsigned long)compat_ptr(arg)); in hwdep_compat_ioctl()
/sound/firewire/digi00x/
Ddigi00x-hwdep.c81 static int hwdep_get_info(struct snd_dg00x *dg00x, void __user *arg) in hwdep_get_info() argument
94 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info()
149 unsigned int cmd, unsigned long arg) in hwdep_ioctl() argument
155 return hwdep_get_info(dg00x, (void __user *)arg); in hwdep_ioctl()
167 unsigned int cmd, unsigned long arg) in hwdep_compat_ioctl() argument
170 (unsigned long)compat_ptr(arg)); in hwdep_compat_ioctl()
/sound/firewire/bebob/
Dbebob_hwdep.c75 hwdep_get_info(struct snd_bebob *bebob, void __user *arg) in hwdep_get_info() argument
88 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info()
147 unsigned int cmd, unsigned long arg) in hwdep_ioctl() argument
153 return hwdep_get_info(bebob, (void __user *)arg); in hwdep_ioctl()
166 unsigned int cmd, unsigned long arg) in hwdep_compat_ioctl() argument
169 (unsigned long)compat_ptr(arg)); in hwdep_compat_ioctl()
/sound/firewire/dice/
Ddice-hwdep.c73 static int hwdep_get_info(struct snd_dice *dice, void __user *arg) in hwdep_get_info() argument
86 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info()
141 unsigned int cmd, unsigned long arg) in hwdep_ioctl() argument
147 return hwdep_get_info(dice, (void __user *)arg); in hwdep_ioctl()
159 unsigned int cmd, unsigned long arg) in hwdep_compat_ioctl() argument
162 (unsigned long)compat_ptr(arg)); in hwdep_compat_ioctl()
/sound/firewire/oxfw/
Doxfw-hwdep.c73 static int hwdep_get_info(struct snd_oxfw *oxfw, void __user *arg) in hwdep_get_info() argument
86 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info()
141 unsigned int cmd, unsigned long arg) in hwdep_ioctl() argument
147 return hwdep_get_info(oxfw, (void __user *)arg); in hwdep_ioctl()
159 unsigned int cmd, unsigned long arg) in hwdep_compat_ioctl() argument
162 (unsigned long)compat_ptr(arg)); in hwdep_compat_ioctl()

12345