/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); 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/ |
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 …]
|
D | ad1848.c | 670 static int ad1848_mixer_ioctl(int dev, unsigned int cmd, void __user *arg) in ad1848_mixer_ioctl() argument 677 if (get_user(val, (int __user *)arg)) in ad1848_mixer_ioctl() 695 return put_user(val, (int __user *)arg); in ad1848_mixer_ioctl() 699 if (get_user(val, (int __user *)arg)) in ad1848_mixer_ioctl() 710 if (get_user(val, (int __user *)arg)) in ad1848_mixer_ioctl() 716 if (get_user(val, (int __user *)arg)) in ad1848_mixer_ioctl() 721 return put_user(val, (int __user *)arg); in ad1848_mixer_ioctl() 757 return put_user(val, (int __user *)arg); in ad1848_mixer_ioctl() 764 static int ad1848_set_speed(int dev, int arg) in ad1848_set_speed() argument 807 if (arg <= 0) in ad1848_set_speed() [all …]
|
D | audio.c | 41 static int dma_ioctl(int dev, unsigned int cmd, void __user *arg); 368 int audio_ioctl(int dev, struct file *file, unsigned int cmd, void __user *arg) in audio_ioctl() argument 373 int __user *p = arg; in audio_ioctl() 379 return audio_devs[dev]->coproc->ioctl(audio_devs[dev]->coproc->devc, cmd, arg, 0); in audio_ioctl() 426 return dma_ioctl(dev, cmd, arg); in audio_ioctl() 433 return dma_ioctl(dev, cmd, arg); in audio_ioctl() 526 return dma_ioctl(dev, cmd, arg); in audio_ioctl() 740 static int dma_ioctl(int dev, unsigned int cmd, void __user *arg) in dma_ioctl() argument 754 if (get_user(fact, (int __user *)arg)) in dma_ioctl() 817 if (copy_to_user(arg, &info, sizeof(info))) in dma_ioctl() [all …]
|
/sound/pci/emu10k1/ |
D | emu10k1_synth.c | 36 struct snd_emu10k1_synth_arg *arg; in snd_emu10k1_synth_new_device() local 39 arg = SNDRV_SEQ_DEVICE_ARGPTR(dev); in snd_emu10k1_synth_new_device() 40 if (arg == NULL) in snd_emu10k1_synth_new_device() 43 if (arg->seq_ports <= 0) in snd_emu10k1_synth_new_device() 45 if (arg->max_voices < 1) in snd_emu10k1_synth_new_device() 46 arg->max_voices = 1; in snd_emu10k1_synth_new_device() 47 else if (arg->max_voices > 64) in snd_emu10k1_synth_new_device() 48 arg->max_voices = 64; in snd_emu10k1_synth_new_device() 54 hw = arg->hwptr; in snd_emu10k1_synth_new_device() 56 emux->max_voices = arg->max_voices; in snd_emu10k1_synth_new_device() [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 | 34 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 …]
|
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() 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/ |
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 | 229 info->arg.app_index = dp->port; in snd_seq_oss_synth_setup() 230 info->arg.file_mode = dp->file_mode; in snd_seq_oss_synth_setup() 231 info->arg.seq_mode = dp->seq_mode; in snd_seq_oss_synth_setup() 233 info->arg.event_passing = SNDRV_SEQ_OSS_PROCESS_EVENTS; in snd_seq_oss_synth_setup() 235 info->arg.event_passing = SNDRV_SEQ_OSS_PASS_EVENTS; in snd_seq_oss_synth_setup() 241 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 …]
|
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()
|
D | seq_oss_timer.c | 231 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/ |
D | hda_hwdep.c | 34 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/ |
D | seq_clientmgr.c | 1132 static int snd_seq_ioctl_system_info(struct snd_seq_client *client, void __user *arg) in snd_seq_ioctl_system_info() argument 1145 if (copy_to_user(arg, &info, sizeof(info))) in snd_seq_ioctl_system_info() 1152 static int snd_seq_ioctl_running_mode(struct snd_seq_client *client, void __user *arg) in snd_seq_ioctl_running_mode() argument 1158 if (copy_from_user(&info, arg, sizeof(info))) in snd_seq_ioctl_running_mode() 1205 void __user *arg) in snd_seq_ioctl_get_client_info() argument 1210 if (copy_from_user(&client_info, arg, sizeof(client_info))) in snd_seq_ioctl_get_client_info() 1221 if (copy_to_user(arg, &client_info, sizeof(client_info))) in snd_seq_ioctl_get_client_info() 1229 void __user *arg) in snd_seq_ioctl_set_client_info() argument 1233 if (copy_from_user(&client_info, arg, sizeof(client_info))) in snd_seq_ioctl_set_client_info() 1259 void __user *arg) in snd_seq_ioctl_create_port() argument [all …]
|
/sound/core/ |
D | compress_offload.c | 227 snd_compr_ioctl_avail(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_ioctl_avail() argument 235 if (copy_to_user((__u64 __user *)arg, in snd_compr_ioctl_avail() 430 snd_compr_get_caps(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_get_caps() argument 442 if (copy_to_user((void __user *)arg, &caps, sizeof(caps))) in snd_compr_get_caps() 450 snd_compr_get_codec_caps(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_get_codec_caps() argument 465 if (copy_to_user((void __user *)arg, caps, sizeof(*caps))) in snd_compr_get_codec_caps() 517 snd_compr_set_params(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_set_params() argument 530 if (copy_from_user(params, (void __user *)arg, sizeof(*params))) { in snd_compr_set_params() 565 snd_compr_get_params(struct snd_compr_stream *stream, unsigned long arg) in snd_compr_get_params() argument 579 if (copy_to_user((char __user *)arg, params, sizeof(*params))) in snd_compr_get_params() [all …]
|
D | hwdep_compat.c | 63 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()
|
D | timer_compat.c | 110 unsigned long arg) in __snd_timer_user_ioctl_compat() argument 112 void __user *argp = compat_ptr(arg); in __snd_timer_user_ioctl_compat() 145 unsigned long arg) in snd_timer_user_ioctl_compat() argument 151 ret = __snd_timer_user_ioctl_compat(file, cmd, arg); in snd_timer_user_ioctl_compat()
|
/sound/oss/dmasound/ |
D | dmasound_core.c | 346 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 …]
|
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 …]
|
D | dmasound_paula.c | 120 static int AmiMixerIoctl(u_int cmd, u_long arg); 618 static int AmiMixerIoctl(u_int cmd, u_long arg) in AmiMixerIoctl() argument 623 return IOCTL_OUT(arg, SOUND_MASK_VOLUME | SOUND_MASK_TREBLE); in AmiMixerIoctl() 625 return IOCTL_OUT(arg, 0); in AmiMixerIoctl() 627 return IOCTL_OUT(arg, SOUND_MASK_VOLUME); in AmiMixerIoctl() 629 return IOCTL_OUT(arg, in AmiMixerIoctl() 633 IOCTL_IN(arg, data); in AmiMixerIoctl() 634 return IOCTL_OUT(arg, dmasound_set_volume(data)); in AmiMixerIoctl() 636 return IOCTL_OUT(arg, dmasound.treble); in AmiMixerIoctl() 638 IOCTL_IN(arg, data); in AmiMixerIoctl() [all …]
|
/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()
|