Home
last modified time | relevance | path

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

1234

/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.c51 static int pcm_set_speed(int arg) in pcm_set_speed() argument
56 if (arg == 0) in pcm_set_speed()
59 if (arg > 44100) in pcm_set_speed()
60 arg = 44100; in pcm_set_speed()
61 if (arg < 5000) in pcm_set_speed()
62 arg = 5000; in pcm_set_speed()
66 foo = ((CLOCK_TICK_RATE / 2) + (arg / 2)) / arg; in pcm_set_speed()
67 arg = ((CLOCK_TICK_RATE / 2) + (foo / 2)) / foo; in pcm_set_speed()
71 foo = (CLOCK_TICK_RATE + (arg / 2)) / arg; in pcm_set_speed()
72 arg = (CLOCK_TICK_RATE + (foo / 2)) / foo; in pcm_set_speed()
[all …]
Dsh_dac_audio.c115 unsigned int cmd, unsigned long arg) in dac_audio_ioctl() argument
121 return put_user(SOUND_VERSION, (int *)arg); in dac_audio_ioctl()
132 return put_user(AFMT_U8, (int *)arg); in dac_audio_ioctl()
135 return put_user(AFMT_U8, (int *)arg); in dac_audio_ioctl()
145 val = *(int *)arg; in dac_audio_ioctl()
150 return put_user(rate, (int *)arg); in dac_audio_ioctl()
153 return put_user(0, (int *)arg); in dac_audio_ioctl()
156 return put_user(1, (int *)arg); in dac_audio_ioctl()
165 return put_user(BUFFER_SIZE, (int *)arg); in dac_audio_ioctl()
Dpss.c502 static int call_ad_mixer(pss_confdata *devc,unsigned int cmd, void __user *arg) in call_ad_mixer() argument
505 return mixer_devs[devc->ad_mixer_dev]->ioctl(devc->ad_mixer_dev, cmd, arg); in call_ad_mixer()
510 static int pss_mixer_ioctl (int dev, unsigned int cmd, void __user *arg) in pss_mixer_ioctl() argument
521 return call_ad_mixer(devc, cmd, arg); in pss_mixer_ioctl()
533 return call_ad_mixer(devc, cmd, arg); in pss_mixer_ioctl()
537 if (get_user(v, (int __user *)arg)) in pss_mixer_ioctl()
544 if (set_volume_stereo(arg, in pss_mixer_ioctl()
554 if (set_volume_mono(arg, &devc->mixer.bass)) in pss_mixer_ioctl()
560 if (set_volume_mono(arg, &devc->mixer.treble)) in pss_mixer_ioctl()
566 if (set_volume_mono(arg, &devc->mixer.synth)) in pss_mixer_ioctl()
[all …]
Dswarm_cs4297a.c1142 unsigned long arg) in mixer_ioctl() argument
1196 (unsigned long *) arg); in mixer_ioctl()
1200 (unsigned long *) arg); in mixer_ioctl()
1203 if (get_user(val, (unsigned long *) arg)) in mixer_ioctl()
1209 if (get_user(val, (unsigned long *) arg)) in mixer_ioctl()
1226 if (get_user(val, (int *) arg)) in mixer_ioctl()
1237 return put_user((temp1 << 2) | 3, (int *) arg); in mixer_ioctl()
1245 if (copy_to_user((void *) arg, &info, sizeof(info))) in mixer_ioctl()
1254 if (copy_to_user((void *) arg, &info, sizeof(info))) in mixer_ioctl()
1259 return put_user(SOUND_VERSION, (int *) arg); in mixer_ioctl()
[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()
287 static int get_mixer_info(int dev, void __user *arg) in get_mixer_info() argument
294 if (__copy_to_user(arg, &info, sizeof(info))) in get_mixer_info()
299 static int get_old_mixer_info(int dev, void __user *arg) in get_old_mixer_info() argument
305 if (copy_to_user(arg, &info, sizeof(info))) in get_old_mixer_info()
[all …]
Dwaveartist.c155 static int vnc_private_ioctl(int dev, unsigned int cmd, int __user *arg);
331 waveartist_cmd2(wavnc_info *devc, unsigned int cmd, unsigned int arg) in waveartist_cmd2() argument
336 vals[1] = arg; in waveartist_cmd2()
517 waveartist_ioctl(int dev, unsigned int cmd, void __user * arg) in waveartist_ioctl() argument
771 waveartist_set_speed(int dev, int arg) in waveartist_set_speed() argument
775 if (arg <= 0) in waveartist_set_speed()
778 if (arg < 5000) in waveartist_set_speed()
779 arg = 5000; in waveartist_set_speed()
780 if (arg > 44100) in waveartist_set_speed()
781 arg = 44100; in waveartist_set_speed()
[all …]
Dau1550_ac97.c75 #define err(format, arg...) printk(KERN_ERR format "\n" , ## arg) argument
819 unsigned long arg) in mixdev_ioctl() argument
821 return codec->mixer_ioctl(codec, cmd, arg); in mixdev_ioctl()
826 unsigned int cmd, unsigned long arg) in au1550_ioctl_mixdev() argument
831 return mixdev_ioctl(codec, cmd, arg); in au1550_ioctl_mixdev()
1343 unsigned long arg) in au1550_ioctl() argument
1361 pr_debug("ioctl %s, arg=0x%lxn", ioctl_str[count].str, arg); in au1550_ioctl()
1363 pr_debug("ioctl 0x%x unknown, arg=0x%lx\n", cmd, arg); in au1550_ioctl()
1368 return put_user(SOUND_VERSION, (int *) arg); in au1550_ioctl()
1380 DSP_CAP_TRIGGER | DSP_CAP_MMAP, (int *)arg); in au1550_ioctl()
[all …]
Dad1848.c671 static int ad1848_mixer_ioctl(int dev, unsigned int cmd, void __user *arg) in ad1848_mixer_ioctl() argument
678 if (get_user(val, (int __user *)arg)) in ad1848_mixer_ioctl()
696 return put_user(val, (int __user *)arg); in ad1848_mixer_ioctl()
700 if (get_user(val, (int __user *)arg)) in ad1848_mixer_ioctl()
711 if (get_user(val, (int __user *)arg)) in ad1848_mixer_ioctl()
717 if (get_user(val, (int __user *)arg)) in ad1848_mixer_ioctl()
722 return put_user(val, (int __user *)arg); in ad1848_mixer_ioctl()
758 return put_user(val, (int __user *)arg); in ad1848_mixer_ioctl()
765 static int ad1848_set_speed(int dev, int arg) in ad1848_set_speed() argument
808 if (arg <= 0) in ad1848_set_speed()
[all …]
Daudio.c41 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()
524 return dma_ioctl(dev, cmd, arg); in audio_ioctl()
738 static int dma_ioctl(int dev, unsigned int cmd, void __user *arg) in dma_ioctl() argument
752 if (get_user(fact, (int __user *)arg)) in dma_ioctl()
815 if (copy_to_user(arg, &info, sizeof(info))) in dma_ioctl()
[all …]
/sound/pci/emu10k1/
Demu10k1_synth.c35 struct snd_emu10k1_synth_arg *arg; in snd_emu10k1_synth_new_device() local
38 arg = SNDRV_SEQ_DEVICE_ARGPTR(dev); in snd_emu10k1_synth_new_device()
39 if (arg == NULL) in snd_emu10k1_synth_new_device()
42 if (arg->seq_ports <= 0) in snd_emu10k1_synth_new_device()
44 if (arg->max_voices < 1) in snd_emu10k1_synth_new_device()
45 arg->max_voices = 1; in snd_emu10k1_synth_new_device()
46 else if (arg->max_voices > 64) in snd_emu10k1_synth_new_device()
47 arg->max_voices = 64; in snd_emu10k1_synth_new_device()
53 hw = arg->hwptr; in snd_emu10k1_synth_new_device()
55 emux->max_voices = arg->max_voices; in snd_emu10k1_synth_new_device()
[all …]
Demu10k1.c170 struct snd_emu10k1_synth_arg *arg; in snd_card_emu10k1_probe() local
171 arg = SNDRV_SEQ_DEVICE_ARGPTR(wave); in snd_card_emu10k1_probe()
173 arg->hwptr = emu; in snd_card_emu10k1_probe()
174 arg->index = 1; in snd_card_emu10k1_probe()
175 arg->seq_ports = seq_ports[dev]; in snd_card_emu10k1_probe()
176 arg->max_voices = max_synth_voices[dev]; in snd_card_emu10k1_probe()
/sound/synth/emux/
Demux_oss.c33 static int snd_emux_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure);
34 static int snd_emux_close_seq_oss(struct snd_seq_oss_arg *arg);
35 static int snd_emux_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd,
37 static int snd_emux_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format,
39 static int snd_emux_reset_seq_oss(struct snd_seq_oss_arg *arg);
68 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 …]
Demux_hwdep.c53 snd_emux_hwdep_load_patch(struct snd_emux *emu, void __user *arg) in snd_emux_hwdep_load_patch() argument
58 if (copy_from_user(&patch, arg, sizeof(patch))) in snd_emux_hwdep_load_patch()
63 err = snd_soundfont_load(emu->sflist, arg, patch.len + sizeof(patch), TMP_CLIENT_ID); in snd_emux_hwdep_load_patch()
68 return emu->ops.load_fx(emu, patch.type, patch.optarg, arg, patch.len + sizeof(patch)); in snd_emux_hwdep_load_patch()
79 snd_emux_hwdep_misc_mode(struct snd_emux *emu, void __user *arg) in snd_emux_hwdep_misc_mode() argument
84 if (copy_from_user(&info, arg, sizeof(info))) in snd_emux_hwdep_misc_mode()
105 unsigned int cmd, unsigned long arg) in snd_emux_hwdep_ioctl() argument
111 return put_user(SNDRV_EMUX_VERSION, (unsigned int __user *)arg); in snd_emux_hwdep_ioctl()
113 return snd_emux_hwdep_load_patch(emu, (void __user *)arg); in snd_emux_hwdep_ioctl()
123 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.c228 info->arg.app_index = dp->port; in snd_seq_oss_synth_setup()
229 info->arg.file_mode = dp->file_mode; in snd_seq_oss_synth_setup()
230 info->arg.seq_mode = dp->seq_mode; in snd_seq_oss_synth_setup()
232 info->arg.event_passing = SNDRV_SEQ_OSS_PROCESS_EVENTS; in snd_seq_oss_synth_setup()
234 info->arg.event_passing = SNDRV_SEQ_OSS_PASS_EVENTS; in snd_seq_oss_synth_setup()
240 if (rec->oper.open(&info->arg, rec->private_data) < 0) { in snd_seq_oss_synth_setup()
250 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.h72 struct snd_seq_oss_arg arg; member
128 int snd_seq_oss_ioctl(struct seq_oss_devinfo *dp, unsigned int cmd, unsigned long arg);
160 snd_seq_oss_control(struct seq_oss_devinfo *dp, unsigned int type, void *arg) in snd_seq_oss_control() argument
162 return snd_seq_kernel_client_ctl(dp->cseq, type, arg); in snd_seq_oss_control()
Dseq_oss_timer.c230 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()
260 if (get_user(value, arg)) in snd_seq_oss_timer_ioctl()
265 if (get_user(value, arg)) in snd_seq_oss_timer_ioctl()
/sound/core/seq/
Dseq_clientmgr.c1110 static int snd_seq_ioctl_system_info(struct snd_seq_client *client, void __user *arg) in snd_seq_ioctl_system_info() argument
1123 if (copy_to_user(arg, &info, sizeof(info))) in snd_seq_ioctl_system_info()
1130 static int snd_seq_ioctl_running_mode(struct snd_seq_client *client, void __user *arg) in snd_seq_ioctl_running_mode() argument
1136 if (copy_from_user(&info, arg, sizeof(info))) in snd_seq_ioctl_running_mode()
1183 void __user *arg) in snd_seq_ioctl_get_client_info() argument
1188 if (copy_from_user(&client_info, arg, sizeof(client_info))) in snd_seq_ioctl_get_client_info()
1199 if (copy_to_user(arg, &client_info, sizeof(client_info))) in snd_seq_ioctl_get_client_info()
1207 void __user *arg) in snd_seq_ioctl_set_client_info() argument
1211 if (copy_from_user(&client_info, arg, sizeof(client_info))) in snd_seq_ioctl_set_client_info()
1237 void __user *arg) in snd_seq_ioctl_create_port() argument
[all …]
/sound/i2c/other/
Dtea575x-tuner.c91 void __user *arg = (void __user *)data; in snd_tea575x_ioctl() local
106 if (copy_to_user(arg,&v,sizeof(v))) in snd_tea575x_ioctl()
113 if (copy_from_user(&v, arg,sizeof(v))!=0) in snd_tea575x_ioctl()
123 if (copy_to_user(arg, &v, sizeof(v))) in snd_tea575x_ioctl()
130 if(copy_from_user(&v, arg, sizeof(v))) in snd_tea575x_ioctl()
138 if(copy_to_user(arg, &tea->freq, sizeof(tea->freq))) in snd_tea575x_ioctl()
142 if(copy_from_user(&tea->freq, arg, sizeof(tea->freq))) in snd_tea575x_ioctl()
151 if(copy_to_user(arg,&v, sizeof(v))) in snd_tea575x_ioctl()
158 if(copy_from_user(&v, arg, sizeof(v))) in snd_tea575x_ioctl()
/sound/oss/dmasound/
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);
1359 static int AtaMixerIoctl(u_int cmd, u_long arg) in AtaMixerIoctl() argument
1371 return IOCTL_OUT(arg, porta & 0x40 ? 0 : 100); in AtaMixerIoctl()
1375 IOCTL_IN(arg, data); in AtaMixerIoctl()
1376 return IOCTL_OUT(arg, dmasound_set_volume(data)); in AtaMixerIoctl()
1380 IOCTL_IN(arg, data); in AtaMixerIoctl()
1387 return IOCTL_OUT(arg, porta & 0x40 ? 0 : 100); in AtaMixerIoctl()
1394 static int TTMixerIoctl(u_int cmd, u_long arg) in TTMixerIoctl() argument
[all …]
Ddmasound_core.c339 u_long arg) in mixer_ioctl() argument
345 return IOCTL_OUT(arg, SOUND_VERSION); in mixer_ioctl()
353 if (copy_to_user((void __user *)arg, &info, sizeof(info))) in mixer_ioctl()
359 return dmasound.mach.mixer_ioctl(cmd, arg); in mixer_ioctl()
957 u_long arg) in sq_ioctl() argument
972 return IOCTL_OUT(arg, fmt); in sq_ioctl()
989 return IOCTL_OUT(arg, size); in sq_ioctl()
1016 return IOCTL_OUT(arg, dmasound.soft.speed); in sq_ioctl()
1025 IOCTL_IN(arg, data); in sq_ioctl()
1028 return IOCTL_OUT(arg, data); in sq_ioctl()
[all …]
Ddmasound_paula.c119 static int AmiMixerIoctl(u_int cmd, u_long arg);
617 static int AmiMixerIoctl(u_int cmd, u_long arg) in AmiMixerIoctl() argument
622 return IOCTL_OUT(arg, SOUND_MASK_VOLUME | SOUND_MASK_TREBLE); in AmiMixerIoctl()
624 return IOCTL_OUT(arg, 0); in AmiMixerIoctl()
626 return IOCTL_OUT(arg, SOUND_MASK_VOLUME); in AmiMixerIoctl()
628 return IOCTL_OUT(arg, in AmiMixerIoctl()
632 IOCTL_IN(arg, data); in AmiMixerIoctl()
633 return IOCTL_OUT(arg, dmasound_set_volume(data)); in AmiMixerIoctl()
635 return IOCTL_OUT(arg, dmasound.treble); in AmiMixerIoctl()
637 IOCTL_IN(arg, data); in AmiMixerIoctl()
[all …]
/sound/pci/hda/
Dhda_hwdep.c37 struct hda_verb_ioctl __user *arg) in verb_write_ioctl() argument
41 if (get_user(verb, &arg->verb)) in verb_write_ioctl()
45 if (put_user(res, &arg->res)) in verb_write_ioctl()
51 struct hda_verb_ioctl __user *arg) in get_wcap_ioctl() argument
55 if (get_user(verb, &arg->verb)) in get_wcap_ioctl()
58 if (put_user(res, &arg->res)) in get_wcap_ioctl()
67 unsigned int cmd, unsigned long arg) in hda_hwdep_ioctl() argument
70 void __user *argp = (void __user *)arg; in hda_hwdep_ioctl()
85 unsigned int cmd, unsigned long arg) in hda_hwdep_ioctl_compat() argument
87 return hda_hwdep_ioctl(hw, file, cmd, (unsigned long)compat_ptr(arg)); in hda_hwdep_ioctl_compat()
/sound/core/
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()

1234