Lines Matching defs:err

856 	int err;
858 err = snd_trident_allocate_pcm_mem(substream, hw_params);
859 if (err >= 0)
860 err = snd_trident_allocate_evoice(substream, hw_params);
861 return err;
1297 int err;
1299 err = snd_trident_allocate_pcm_mem(substream, hw_params);
1300 if (err < 0)
1301 return err;
1304 err = snd_trident_allocate_evoice(substream, hw_params);
1305 if (err < 0)
1306 return err;
2120 int err;
2122 if ((err = snd_pcm_new(trident->card, "trident_dx_nx", device, trident->ChanPCM, 1, &pcm)) < 0)
2123 return err;
2175 int err;
2181 if ((err = snd_pcm_new(trident->card, "trident_dx_nx", device, 0, num_chan, &foldback)) < 0)
2182 return err;
2229 int err;
2231 if ((err = snd_pcm_new(trident->card, "trident_dx_nx IEC958", device, 1, 0, &spdif)) < 0)
2232 return err;
2914 int idx, err, retries = 2;
2924 if ((err = snd_ac97_bus(trident->card, 0, &ops, NULL, &trident->ac97_bus)) < 0)
2932 if ((err = snd_ac97_mixer(trident->ac97_bus, &_ac97, &trident->ac97)) < 0) {
2934 if ((err = snd_trident_sis_reset(trident)) < 0)
2938 err = -EIO;
2947 err = snd_ac97_mixer(trident->ac97_bus, &_ac97, &trident->ac97_sec);
2948 if (err < 0)
2954 err = snd_ac97_modem(trident->card, &_ac97, &mc97);
2955 if (err < 0)
2957 "snd_ac97_modem returned error %i\n", err);
2965 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_trident_vol_wave_control, trident))) < 0)
2968 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_trident_vol_music_control, trident))) < 0)
2984 if ((err = snd_ctl_add(card, trident->ctl_vol)))
2989 if ((err = snd_ctl_add(card, trident->ctl_pan)))
2994 if ((err = snd_ctl_add(card, trident->ctl_rvol)))
2999 if ((err = snd_ctl_add(card, trident->ctl_cvol)))
3003 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_trident_ac97_rear_control, trident))) < 0)
3011 err = -ENOMEM;
3019 if ((err = snd_ctl_add(card, kctl)) < 0)
3025 err = -ENOMEM;
3030 if ((err = snd_ctl_add(card, kctl)) < 0)
3035 err = -ENOMEM;
3040 if ((err = snd_ctl_add(card, kctl)) < 0)
3045 err = -ENOMEM;
3050 if ((err = snd_ctl_add(card, kctl)) < 0)
3055 err = 0;
3059 err = -ENOMEM;
3064 return err;
3450 int err;
3452 if ((err = snd_trident_sis_reset(trident)) < 0)
3453 return err;
3487 int i, err;
3497 if ((err = pci_enable_device(pci)) < 0)
3498 return err;
3532 if ((err = pci_request_regions(pci, "Trident Audio")) < 0) {
3535 return err;
3552 if ((err = snd_trident_tlb_alloc(trident)) < 0) {
3554 return err;
3563 err = snd_trident_4d_dx_init(trident);
3566 err = snd_trident_4d_nx_init(trident);
3569 err = snd_trident_sis_init(trident);
3575 if (err < 0) {
3577 return err;
3580 if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, trident, &ops)) < 0) {
3582 return err;
3585 if ((err = snd_trident_mixer(trident, pcm_spdif_device)) < 0)
3586 return err;