Lines Matching refs:arg
35 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()
56 emux->num_ports = arg->seq_ports; in snd_emu10k1_synth_new_device()
60 emux->midi_ports = arg->seq_ports < 2 ? arg->seq_ports : 2; in snd_emu10k1_synth_new_device()
66 if (snd_emux_register(emux, dev->card, arg->index, "Emu10k1") < 0) { in snd_emu10k1_synth_new_device()