• Home
  • Raw
  • Download

Lines Matching refs:err

248 	int i, err, val;  in scarlett_ctl_switch_get()  local
251 err = snd_usb_get_cur_mix_value(elem, i, i, &val); in scarlett_ctl_switch_get()
252 if (err < 0) in scarlett_ctl_switch_get()
253 return err; in scarlett_ctl_switch_get()
267 int err, oval, val; in scarlett_ctl_switch_put() local
270 err = snd_usb_get_cur_mix_value(elem, i, i, &oval); in scarlett_ctl_switch_put()
271 if (err < 0) in scarlett_ctl_switch_put()
272 return err; in scarlett_ctl_switch_put()
277 err = snd_usb_set_cur_mix_value(elem, i, i, val); in scarlett_ctl_switch_put()
278 if (err < 0) in scarlett_ctl_switch_put()
279 return err; in scarlett_ctl_switch_put()
319 int i, err, val; in scarlett_ctl_get() local
322 err = snd_usb_get_cur_mix_value(elem, i, i, &val); in scarlett_ctl_get()
323 if (err < 0) in scarlett_ctl_get()
324 return err; in scarlett_ctl_get()
339 int err, oval, val; in scarlett_ctl_put() local
342 err = snd_usb_get_cur_mix_value(elem, i, i, &oval); in scarlett_ctl_put()
343 if (err < 0) in scarlett_ctl_put()
344 return err; in scarlett_ctl_put()
350 err = snd_usb_set_cur_mix_value(elem, i, i, val); in scarlett_ctl_put()
351 if (err < 0) in scarlett_ctl_put()
352 return err; in scarlett_ctl_put()
415 int err, val; in scarlett_ctl_enum_get() local
417 err = snd_usb_get_cur_mix_value(elem, 0, 0, &val); in scarlett_ctl_enum_get()
418 if (err < 0) in scarlett_ctl_enum_get()
419 return err; in scarlett_ctl_enum_get()
433 int err, oval, val; in scarlett_ctl_enum_put() local
435 err = snd_usb_get_cur_mix_value(elem, 0, 0, &oval); in scarlett_ctl_enum_put()
436 if (err < 0) in scarlett_ctl_enum_put()
437 return err; in scarlett_ctl_enum_put()
466 int err; in scarlett_ctl_meter_get() local
468 err = snd_usb_ctl_msg(chip->dev, in scarlett_ctl_meter_get()
473 if (err < 0) in scarlett_ctl_meter_get()
474 return err; in scarlett_ctl_meter_get()
549 int err; in add_new_ctl() local
576 err = snd_usb_mixer_add_control(&elem->head, kctl); in add_new_ctl()
577 if (err < 0) in add_new_ctl()
578 return err; in add_new_ctl()
590 int err; in add_output_ctls() local
597 err = add_new_ctl(mixer, &usb_scarlett_ctl_switch, in add_output_ctls()
600 if (err < 0) in add_output_ctls()
601 return err; in add_output_ctls()
606 err = add_new_ctl(mixer, &usb_scarlett_ctl_master, in add_output_ctls()
609 if (err < 0) in add_output_ctls()
610 return err; in add_output_ctls()
615 err = add_new_ctl(mixer, &usb_scarlett_ctl_dynamic_enum, in add_output_ctls()
619 if (err < 0) in add_output_ctls()
620 return err; in add_output_ctls()
625 err = add_new_ctl(mixer, &usb_scarlett_ctl_dynamic_enum, in add_output_ctls()
629 if (err < 0) in add_output_ctls()
630 return err; in add_output_ctls()
850 int i, err; in scarlett_controls_create_generic() local
856 err = add_new_ctl(mixer, &usb_scarlett_ctl_switch, in scarlett_controls_create_generic()
860 if (err < 0) in scarlett_controls_create_generic()
861 return err; in scarlett_controls_create_generic()
863 err = add_new_ctl(mixer, &usb_scarlett_ctl_master, in scarlett_controls_create_generic()
867 if (err < 0) in scarlett_controls_create_generic()
868 return err; in scarlett_controls_create_generic()
876 err = add_output_ctls(mixer, ctl->num, ctl->name, info); in scarlett_controls_create_generic()
877 if (err < 0) in scarlett_controls_create_generic()
878 return err; in scarlett_controls_create_generic()
882 err = add_new_ctl(mixer, &usb_scarlett_ctl_enum, in scarlett_controls_create_generic()
886 if (err < 0) in scarlett_controls_create_generic()
887 return err; in scarlett_controls_create_generic()
891 err = add_new_ctl(mixer, &usb_scarlett_ctl_enum, in scarlett_controls_create_generic()
895 if (err < 0) in scarlett_controls_create_generic()
896 return err; in scarlett_controls_create_generic()
909 int err, i, o; in snd_scarlett_controls_create() local
940 err = scarlett_controls_create_generic(mixer, info); in snd_scarlett_controls_create()
941 if (err < 0) in snd_scarlett_controls_create()
942 return err; in snd_scarlett_controls_create()
948 err = add_new_ctl(mixer, &usb_scarlett_ctl_dynamic_enum, in snd_scarlett_controls_create()
952 if (err < 0) in snd_scarlett_controls_create()
953 return err; in snd_scarlett_controls_create()
958 err = add_new_ctl(mixer, &usb_scarlett_ctl, in snd_scarlett_controls_create()
962 if (err < 0) in snd_scarlett_controls_create()
963 return err; in snd_scarlett_controls_create()
971 err = add_new_ctl(mixer, &usb_scarlett_ctl_dynamic_enum, in snd_scarlett_controls_create()
975 if (err < 0) in snd_scarlett_controls_create()
976 return err; in snd_scarlett_controls_create()
980 err = add_new_ctl(mixer, &usb_scarlett_ctl_enum, in snd_scarlett_controls_create()
984 if (err < 0) in snd_scarlett_controls_create()
985 return err; in snd_scarlett_controls_create()
988 err = add_new_ctl(mixer, &usb_scarlett_ctl_sync, NULL, 0x3c, 0x00, 2, in snd_scarlett_controls_create()
991 if (err < 0) in snd_scarlett_controls_create()
992 return err; in snd_scarlett_controls_create()
995 err = snd_usb_ctl_msg(mixer->chip->dev, in snd_scarlett_controls_create()
1000 if (err < 0) in snd_scarlett_controls_create()
1001 return err; in snd_scarlett_controls_create()
1003 return err; in snd_scarlett_controls_create()