Lines Matching refs:err
78 int err; in snd_sb8_probe() local
80 err = snd_devm_card_new(pdev, index[dev], id[dev], THIS_MODULE, in snd_sb8_probe()
82 if (err < 0) in snd_sb8_probe()
83 return err; in snd_sb8_probe()
95 err = snd_sbdsp_create(card, port[dev], irq[dev], in snd_sb8_probe()
98 if (err < 0) in snd_sb8_probe()
99 return err; in snd_sb8_probe()
107 err = snd_sbdsp_create(card, possible_ports[i], in snd_sb8_probe()
114 if (err >= 0) { in snd_sb8_probe()
134 err = snd_sb8dsp_pcm(chip, 0); in snd_sb8_probe()
135 if (err < 0) in snd_sb8_probe()
136 return err; in snd_sb8_probe()
138 err = snd_sbmixer_new(chip); in snd_sb8_probe()
139 if (err < 0) in snd_sb8_probe()
140 return err; in snd_sb8_probe()
143 err = snd_opl3_create(card, chip->port + 8, 0, in snd_sb8_probe()
145 if (err < 0) in snd_sb8_probe()
148 err = snd_opl3_create(card, chip->port, chip->port + 2, in snd_sb8_probe()
150 if (err < 0) { in snd_sb8_probe()
155 if (err >= 0) { in snd_sb8_probe()
156 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_sb8_probe()
157 if (err < 0) in snd_sb8_probe()
158 return err; in snd_sb8_probe()
161 err = snd_sb8dsp_midi(chip, 0); in snd_sb8_probe()
162 if (err < 0) in snd_sb8_probe()
163 return err; in snd_sb8_probe()
172 err = snd_card_register(card); in snd_sb8_probe()
173 if (err < 0) in snd_sb8_probe()
174 return err; in snd_sb8_probe()