Lines Matching refs:arg
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()
58 emux->num_ports = arg->seq_ports; in snd_emu10k1_synth_probe()
62 emux->midi_ports = arg->seq_ports < 2 ? arg->seq_ports : 2; in snd_emu10k1_synth_probe()
68 if (snd_emux_register(emux, dev->card, arg->index, "Emu10k1") < 0) { in snd_emu10k1_synth_probe()