/sound/drivers/opl3/ |
D | opl3_oss.c | 24 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); 107 struct snd_seq_oss_reg *arg; in snd_opl3_init_seq_oss() local 116 arg = SNDRV_SEQ_DEVICE_ARGPTR(dev); in snd_opl3_init_seq_oss() 117 arg->type = SYNTH_TYPE_FM; in snd_opl3_init_seq_oss() 119 arg->subtype = FM_TYPE_ADLIB; in snd_opl3_init_seq_oss() 120 arg->nvoices = MAX_OPL2_VOICES; in snd_opl3_init_seq_oss() [all …]
|
/sound/oss/ |
D | pas2_pcm.c | 47 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 …]
|
D | pss.c | 504 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 …]
|
D | swarm_cs4297a.c | 1157 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 …]
|
D | waveartist.c | 156 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 …]
|
D | soundcard.c | 115 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/ |
D | emu10k1_synth.c | 37 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 …]
|
D | emu10k1.c | 176 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/ |
D | emux_oss.c | 32 static int snd_emux_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure); 33 static int snd_emux_close_seq_oss(struct snd_seq_oss_arg *arg); 34 static int snd_emux_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd, 36 static int snd_emux_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format, 38 static int snd_emux_reset_seq_oss(struct snd_seq_oss_arg *arg); 67 struct snd_seq_oss_reg *arg; in snd_emux_init_seq_oss() local 77 arg = SNDRV_SEQ_DEVICE_ARGPTR(dev); in snd_emux_init_seq_oss() 78 arg->type = SYNTH_TYPE_SAMPLE; in snd_emux_init_seq_oss() 79 arg->subtype = SAMPLE_TYPE_AWE32; in snd_emux_init_seq_oss() 80 arg->nvoices = emu->max_voices; in snd_emux_init_seq_oss() [all …]
|
D | emux_hwdep.c | 34 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() 89 unsigned int cmd, unsigned long arg) in snd_emux_hwdep_ioctl() argument 95 return put_user(SNDRV_EMUX_VERSION, (unsigned int __user *)arg); in snd_emux_hwdep_ioctl() 97 return snd_emux_hwdep_load_patch(emu, (void __user *)arg); in snd_emux_hwdep_ioctl() 107 return put_user(size, (unsigned int __user *)arg); in snd_emux_hwdep_ioctl() [all …]
|
/sound/core/seq/oss/ |
D | seq_oss_ioctl.c | 31 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 …]
|
D | seq_oss_synth.c | 231 info->arg.app_index = dp->port; in snd_seq_oss_synth_setup() 232 info->arg.file_mode = dp->file_mode; in snd_seq_oss_synth_setup() 233 info->arg.seq_mode = dp->seq_mode; in snd_seq_oss_synth_setup() 235 info->arg.event_passing = SNDRV_SEQ_OSS_PROCESS_EVENTS; in snd_seq_oss_synth_setup() 237 info->arg.event_passing = SNDRV_SEQ_OSS_PASS_EVENTS; in snd_seq_oss_synth_setup() 243 if (rec->oper.open(&info->arg, rec->private_data) < 0) { in snd_seq_oss_synth_setup() 252 rec->oper.close(&info->arg); in snd_seq_oss_synth_setup() 284 info->arg.app_index = dp->port; in snd_seq_oss_synth_setup_midi() 285 info->arg.file_mode = dp->file_mode; in snd_seq_oss_synth_setup_midi() 286 info->arg.seq_mode = dp->seq_mode; in snd_seq_oss_synth_setup_midi() [all …]
|
D | seq_oss_device.h | 68 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()
|
/sound/pci/hda/ |
D | hda_hwdep.c | 35 struct hda_verb_ioctl __user *arg) in verb_write_ioctl() argument 39 if (get_user(verb, &arg->verb)) in verb_write_ioctl() 43 if (put_user(res, &arg->res)) in verb_write_ioctl() 49 struct hda_verb_ioctl __user *arg) in get_wcap_ioctl() argument 53 if (get_user(verb, &arg->verb)) in get_wcap_ioctl() 65 if (put_user(res, &arg->res)) in get_wcap_ioctl() 74 unsigned int cmd, unsigned long arg) in hda_hwdep_ioctl() argument 77 void __user *argp = (void __user *)arg; in hda_hwdep_ioctl() 92 unsigned int cmd, unsigned long arg) in hda_hwdep_ioctl_compat() argument 94 return hda_hwdep_ioctl(hw, file, cmd, (unsigned long)compat_ptr(arg)); in hda_hwdep_ioctl_compat()
|
/sound/core/seq/ |
D | seq_clientmgr.c | 1133 static int snd_seq_ioctl_pversion(struct snd_seq_client *client, void *arg) in snd_seq_ioctl_pversion() argument 1135 int *pversion = arg; in snd_seq_ioctl_pversion() 1141 static int snd_seq_ioctl_client_id(struct snd_seq_client *client, void *arg) in snd_seq_ioctl_client_id() argument 1143 int *client_id = arg; in snd_seq_ioctl_client_id() 1150 static int snd_seq_ioctl_system_info(struct snd_seq_client *client, void *arg) in snd_seq_ioctl_system_info() argument 1152 struct snd_seq_system_info *info = arg; in snd_seq_ioctl_system_info() 1168 static int snd_seq_ioctl_running_mode(struct snd_seq_client *client, void *arg) in snd_seq_ioctl_running_mode() argument 1170 struct snd_seq_running_info *info = arg; in snd_seq_ioctl_running_mode() 1229 void *arg) in snd_seq_ioctl_get_client_info() argument 1231 struct snd_seq_client_info *client_info = arg; in snd_seq_ioctl_get_client_info() [all …]
|
/sound/core/ |
D | compress_offload.c | 239 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() 547 snd_compr_set_params(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_set_params() argument 557 params = memdup_user((void __user *)arg, sizeof(*params)); in snd_compr_set_params() 588 snd_compr_get_params(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_get_params() argument 602 if (copy_to_user((char __user *)arg, params, sizeof(*params))) in snd_compr_get_params() [all …]
|
/sound/oss/dmasound/ |
D | dmasound_core.c | 347 static int mixer_ioctl(struct file *file, u_int cmd, u_long arg) in mixer_ioctl() argument 353 return IOCTL_OUT(arg, SOUND_VERSION); in mixer_ioctl() 361 if (copy_to_user((void __user *)arg, &info, sizeof(info))) in mixer_ioctl() 367 return dmasound.mach.mixer_ioctl(cmd, arg); in mixer_ioctl() 371 static long mixer_unlocked_ioctl(struct file *file, u_int cmd, u_long arg) in mixer_unlocked_ioctl() argument 376 ret = mixer_ioctl(file, cmd, arg); in mixer_unlocked_ioctl() 989 static int sq_ioctl(struct file *file, u_int cmd, u_long arg) in sq_ioctl() argument 1004 return IOCTL_OUT(arg, fmt); in sq_ioctl() 1021 return IOCTL_OUT(arg, size); in sq_ioctl() 1048 return IOCTL_OUT(arg, dmasound.soft.speed); in sq_ioctl() [all …]
|
D | dmasound_atari.c | 142 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/ |
D | tascam-hwdep.c | 71 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/bebob/ |
D | bebob_hwdep.c | 75 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/ |
D | dice-hwdep.c | 73 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/digi00x/ |
D | digi00x-hwdep.c | 81 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/oxfw/ |
D | oxfw-hwdep.c | 73 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()
|
/sound/firewire/motu/ |
D | motu-hwdep.c | 80 static int hwdep_get_info(struct snd_motu *motu, void __user *arg) in hwdep_get_info() argument 93 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info() 148 unsigned int cmd, unsigned long arg) in hwdep_ioctl() argument 154 return hwdep_get_info(motu, (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/fireface/ |
D | ff-hwdep.c | 73 static int hwdep_get_info(struct snd_ff *ff, 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(ff, (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()
|