Lines Matching refs:err
144 int err; in mixart_enum_connectors() local
154 err = -ENOMEM; in mixart_enum_connectors()
167 err = snd_mixart_send_msg(mgr, &request, sizeof(*connector), connector); in mixart_enum_connectors()
168 if((err < 0) || (connector->error_code) || (connector->uid_count > MIXART_MAX_PHYS_CONNECTORS)) { in mixart_enum_connectors()
171 err = -EINVAL; in mixart_enum_connectors()
197 err = snd_mixart_send_msg(mgr, &request, sizeof(*audio_info), audio_info); in mixart_enum_connectors()
198 if( err < 0 ) { in mixart_enum_connectors()
211 err = snd_mixart_send_msg(mgr, &request, sizeof(*connector), connector); in mixart_enum_connectors()
212 if((err < 0) || (connector->error_code) || (connector->uid_count > MIXART_MAX_PHYS_CONNECTORS)) { in mixart_enum_connectors()
215 err = -EINVAL; in mixart_enum_connectors()
241 err = snd_mixart_send_msg(mgr, &request, sizeof(*audio_info), audio_info); in mixart_enum_connectors()
242 if( err < 0 ) { in mixart_enum_connectors()
249 err = 0; in mixart_enum_connectors()
256 return err; in mixart_enum_connectors()
262 int err; in mixart_enum_physio() local
277 err = snd_mixart_send_msg(mgr, &request, sizeof(console_mgr), &console_mgr); in mixart_enum_physio()
279 if( (err < 0) || (console_mgr.error_code != 0) ) { in mixart_enum_physio()
294 err = snd_mixart_send_msg(mgr, &request, sizeof(phys_io), &phys_io); in mixart_enum_physio()
295 if( (err < 0) || ( phys_io.error_code != 0 ) ) { in mixart_enum_physio()
298 err, phys_io.error_code); in mixart_enum_physio()
318 int err; in mixart_first_init() local
321 if((err = mixart_enum_connectors(mgr)) < 0) return err; in mixart_first_init()
323 if((err = mixart_enum_physio(mgr)) < 0) return err; in mixart_first_init()
332 err = snd_mixart_send_msg(mgr, &request, sizeof(k), &k); in mixart_first_init()
333 if( (err < 0) || (k != 0) ) { in mixart_first_init()
335 return err == 0 ? -EINVAL : err; in mixart_first_init()
347 int err, card_index; in mixart_dsp_load() local
419 …err = mixart_wait_nice_for_register_value( mgr, MIXART_PSEUDOREG_MXLX_STATUS_OFFSET, 1, 4, 500); /… in mixart_dsp_load()
420 if (err < 0) { in mixart_dsp_load()
423 return err; in mixart_dsp_load()
434 err = mixart_load_elf( mgr, dsp ); in mixart_dsp_load()
435 if (err < 0) return err; in mixart_dsp_load()
441 …err = mixart_wait_nice_for_register_value( mgr, MIXART_PSEUDOREG_ELF_STATUS_OFFSET, 1, 4, 300); /*… in mixart_dsp_load()
442 if (err < 0) { in mixart_dsp_load()
444 return err; in mixart_dsp_load()
463 …err = mixart_wait_nice_for_register_value( mgr, MIXART_PSEUDOREG_DBRD_PRESENCE_OFFSET, 0, 0, 30); … in mixart_dsp_load()
464 if (err < 0) { in mixart_dsp_load()
466 return err; in mixart_dsp_load()
500 …err = mixart_wait_nice_for_register_value( mgr, MIXART_PSEUDOREG_DXLX_STATUS_OFFSET, 1, 2, 30); /*… in mixart_dsp_load()
501 if (err < 0) { in mixart_dsp_load()
503 return err; in mixart_dsp_load()
522 …err = mixart_wait_nice_for_register_value( mgr, MIXART_PSEUDOREG_DXLX_STATUS_OFFSET, 1, 3, 300); /… in mixart_dsp_load()
523 if (err < 0) { in mixart_dsp_load()
526 return err; in mixart_dsp_load()
533 err = mixart_first_init(mgr); in mixart_dsp_load()
534 if (err < 0) { in mixart_dsp_load()
536 return err; in mixart_dsp_load()
543 if ((err = snd_mixart_create_pcm(chip)) < 0) in mixart_dsp_load()
544 return err; in mixart_dsp_load()
547 if ((err = snd_mixart_create_mixer(chip->mgr)) < 0) in mixart_dsp_load()
548 return err; in mixart_dsp_load()
551 if ((err = snd_card_register(chip->card)) < 0) in mixart_dsp_load()
552 return err; in mixart_dsp_load()
570 int i, err; in snd_mixart_setup_firmware() local
580 err = mixart_dsp_load(mgr, i, fw_entry); in snd_mixart_setup_firmware()
582 if (err < 0) in snd_mixart_setup_firmware()
583 return err; in snd_mixart_setup_firmware()