Lines Matching refs:err
136 int err; in snd_create_std_mono_table() local
139 err = snd_create_std_mono_ctl(mixer, t->unitid, t->control, in snd_create_std_mono_table()
141 if (err < 0) in snd_create_std_mono_table()
142 return err; in snd_create_std_mono_table()
226 int err; in snd_usb_sbrc_hwdep_read() local
231 err = wait_event_interruptible(mixer->rc_waitq, in snd_usb_sbrc_hwdep_read()
233 if (err == 0) { in snd_usb_sbrc_hwdep_read()
235 err = put_user(rc_code, buf); in snd_usb_sbrc_hwdep_read()
237 err = put_user(rc_code, (u32 __user *)buf); in snd_usb_sbrc_hwdep_read()
239 return err < 0 ? err : count; in snd_usb_sbrc_hwdep_read()
254 int err, len, i; in snd_usb_soundblaster_remote_init() local
266 err = snd_hwdep_new(mixer->chip->card, "SB remote control", 0, &hwdep); in snd_usb_soundblaster_remote_init()
267 if (err < 0) in snd_usb_soundblaster_remote_init()
268 return err; in snd_usb_soundblaster_remote_init()
311 int err; in snd_audigy2nx_led_update() local
313 err = snd_usb_lock_shutdown(chip); in snd_audigy2nx_led_update()
314 if (err < 0) in snd_audigy2nx_led_update()
315 return err; in snd_audigy2nx_led_update()
318 err = snd_usb_ctl_msg(chip->dev, in snd_audigy2nx_led_update()
324 err = snd_usb_ctl_msg(chip->dev, in snd_audigy2nx_led_update()
329 err = snd_usb_ctl_msg(chip->dev, in snd_audigy2nx_led_update()
334 return err; in snd_audigy2nx_led_update()
345 int err; in snd_audigy2nx_led_put() local
352 err = snd_audigy2nx_led_update(mixer, value, index); in snd_audigy2nx_led_put()
353 return err < 0 ? err : 1; in snd_audigy2nx_led_put()
380 int i, err; in snd_audigy2nx_controls_create() local
401 err = add_single_ctl_with_resume(mixer, 0, in snd_audigy2nx_controls_create()
404 if (err < 0) in snd_audigy2nx_controls_create()
405 return err; in snd_audigy2nx_controls_create()
430 int i, err; in snd_audigy2nx_proc_read() local
444 err = snd_usb_lock_shutdown(mixer->chip); in snd_audigy2nx_proc_read()
445 if (err < 0) in snd_audigy2nx_proc_read()
447 err = snd_usb_ctl_msg(mixer->chip->dev, in snd_audigy2nx_proc_read()
453 if (err == 3 && (buf[0] == 3 || buf[0] == 6)) in snd_audigy2nx_proc_read()
480 int err; in snd_emu0204_ch_switch_update() local
483 err = snd_usb_lock_shutdown(chip); in snd_emu0204_ch_switch_update()
484 if (err < 0) in snd_emu0204_ch_switch_update()
485 return err; in snd_emu0204_ch_switch_update()
489 err = snd_usb_ctl_msg(chip->dev, in snd_emu0204_ch_switch_update()
494 return err; in snd_emu0204_ch_switch_update()
503 int err; in snd_emu0204_ch_switch_put() local
512 err = snd_emu0204_ch_switch_update(mixer, value); in snd_emu0204_ch_switch_put()
513 return err < 0 ? err : 1; in snd_emu0204_ch_switch_put()
551 int err; in snd_xonar_u1_switch_update() local
553 err = snd_usb_lock_shutdown(chip); in snd_xonar_u1_switch_update()
554 if (err < 0) in snd_xonar_u1_switch_update()
555 return err; in snd_xonar_u1_switch_update()
556 err = snd_usb_ctl_msg(chip->dev, in snd_xonar_u1_switch_update()
561 return err; in snd_xonar_u1_switch_update()
569 int err; in snd_xonar_u1_switch_put() local
580 err = snd_xonar_u1_switch_update(list->mixer, new_status); in snd_xonar_u1_switch_put()
581 return err < 0 ? err : 1; in snd_xonar_u1_switch_put()
618 int err; in snd_mbox1_switch_update() local
621 err = snd_usb_lock_shutdown(chip); in snd_mbox1_switch_update()
622 if (err < 0) in snd_mbox1_switch_update()
623 return err; in snd_mbox1_switch_update()
626 err = snd_usb_ctl_msg(chip->dev, in snd_mbox1_switch_update()
631 if (err < 0) in snd_mbox1_switch_update()
632 goto err; in snd_mbox1_switch_update()
633 err = snd_usb_ctl_msg(chip->dev, in snd_mbox1_switch_update()
638 if (err < 0) in snd_mbox1_switch_update()
639 goto err; in snd_mbox1_switch_update()
657 err = snd_usb_ctl_msg(chip->dev, in snd_mbox1_switch_update()
661 if (err < 0) in snd_mbox1_switch_update()
662 goto err; in snd_mbox1_switch_update()
663 err = snd_usb_ctl_msg(chip->dev, in snd_mbox1_switch_update()
668 if (err < 0) in snd_mbox1_switch_update()
669 goto err; in snd_mbox1_switch_update()
670 err = snd_usb_ctl_msg(chip->dev, in snd_mbox1_switch_update()
675 if (err < 0) in snd_mbox1_switch_update()
676 goto err; in snd_mbox1_switch_update()
678 err: in snd_mbox1_switch_update()
680 return err; in snd_mbox1_switch_update()
688 int err; in snd_mbox1_switch_put() local
697 err = snd_mbox1_switch_update(mixer, new_val); in snd_mbox1_switch_put()
698 return err < 0 ? err : 1; in snd_mbox1_switch_put()
745 int err; in snd_ni_control_init_val() local
747 err = snd_usb_ctl_msg(dev, usb_rcvctrlpipe(dev, 0), in snd_ni_control_init_val()
751 if (err < 0) { in snd_ni_control_init_val()
753 "unable to issue vendor read request (ret = %d)", err); in snd_ni_control_init_val()
754 return err; in snd_ni_control_init_val()
772 int err; in snd_ni_update_cur_val() local
774 err = snd_usb_lock_shutdown(chip); in snd_ni_update_cur_val()
775 if (err < 0) in snd_ni_update_cur_val()
776 return err; in snd_ni_update_cur_val()
777 err = usb_control_msg(chip->dev, usb_sndctrlpipe(chip->dev, 0), in snd_ni_update_cur_val()
782 return err; in snd_ni_update_cur_val()
791 int err; in snd_nativeinstruments_control_put() local
798 err = snd_ni_update_cur_val(list); in snd_nativeinstruments_control_put()
799 return err < 0 ? err : 1; in snd_nativeinstruments_control_put()
860 int i, err = 0; in snd_nativeinstruments_create_mixer() local
875 err = add_single_ctl_with_resume(mixer, 0, in snd_nativeinstruments_create_mixer()
878 if (err < 0) in snd_nativeinstruments_create_mixer()
883 return err; in snd_nativeinstruments_create_mixer()
904 int err; in snd_ftu_eff_switch_init() local
910 err = snd_usb_ctl_msg(dev, usb_rcvctrlpipe(dev, 0), UAC_GET_CUR, in snd_ftu_eff_switch_init()
915 if (err < 0) in snd_ftu_eff_switch_init()
916 return err; in snd_ftu_eff_switch_init()
934 int err; in snd_ftu_eff_switch_update() local
939 err = snd_usb_lock_shutdown(chip); in snd_ftu_eff_switch_update()
940 if (err < 0) in snd_ftu_eff_switch_update()
941 return err; in snd_ftu_eff_switch_update()
942 err = snd_usb_ctl_msg(chip->dev, in snd_ftu_eff_switch_update()
950 return err; in snd_ftu_eff_switch_update()
958 int cur_val, err, new_val; in snd_ftu_eff_switch_put() local
967 err = snd_ftu_eff_switch_update(list); in snd_ftu_eff_switch_put()
968 return err < 0 ? err : 1; in snd_ftu_eff_switch_put()
984 int err; in snd_ftu_create_effect_switch() local
986 err = add_single_ctl_with_resume(mixer, bUnitID, in snd_ftu_create_effect_switch()
989 if (err < 0) in snd_ftu_create_effect_switch()
990 return err; in snd_ftu_create_effect_switch()
1001 int in, out, err; in snd_ftu_create_volume_ctls() local
1013 err = snd_create_std_mono_ctl(mixer, id, control, in snd_ftu_create_volume_ctls()
1016 if (err < 0) in snd_ftu_create_volume_ctls()
1017 return err; in snd_ftu_create_volume_ctls()
1024 err = snd_create_std_mono_ctl(mixer, id, control, in snd_ftu_create_volume_ctls()
1027 if (err < 0) in snd_ftu_create_volume_ctls()
1028 return err; in snd_ftu_create_volume_ctls()
1077 int err, ch; in snd_ftu_create_effect_return_ctls() local
1088 err = snd_create_std_mono_ctl(mixer, id, control, in snd_ftu_create_effect_return_ctls()
1091 if (err < 0) in snd_ftu_create_effect_return_ctls()
1092 return err; in snd_ftu_create_effect_return_ctls()
1101 int err, ch; in snd_ftu_create_effect_send_ctls() local
1112 err = snd_create_std_mono_ctl(mixer, id, control, cmask, in snd_ftu_create_effect_send_ctls()
1115 if (err < 0) in snd_ftu_create_effect_send_ctls()
1116 return err; in snd_ftu_create_effect_send_ctls()
1122 err = snd_create_std_mono_ctl(mixer, id, control, cmask, in snd_ftu_create_effect_send_ctls()
1125 if (err < 0) in snd_ftu_create_effect_send_ctls()
1126 return err; in snd_ftu_create_effect_send_ctls()
1133 int err; in snd_ftu_create_mixer() local
1135 err = snd_ftu_create_volume_ctls(mixer); in snd_ftu_create_mixer()
1136 if (err < 0) in snd_ftu_create_mixer()
1137 return err; in snd_ftu_create_mixer()
1139 err = snd_ftu_create_effect_switch(mixer, 1, 6); in snd_ftu_create_mixer()
1140 if (err < 0) in snd_ftu_create_mixer()
1141 return err; in snd_ftu_create_mixer()
1143 err = snd_ftu_create_effect_volume_ctl(mixer); in snd_ftu_create_mixer()
1144 if (err < 0) in snd_ftu_create_mixer()
1145 return err; in snd_ftu_create_mixer()
1147 err = snd_ftu_create_effect_duration_ctl(mixer); in snd_ftu_create_mixer()
1148 if (err < 0) in snd_ftu_create_mixer()
1149 return err; in snd_ftu_create_mixer()
1151 err = snd_ftu_create_effect_feedback_ctl(mixer); in snd_ftu_create_mixer()
1152 if (err < 0) in snd_ftu_create_mixer()
1153 return err; in snd_ftu_create_mixer()
1155 err = snd_ftu_create_effect_return_ctls(mixer); in snd_ftu_create_mixer()
1156 if (err < 0) in snd_ftu_create_mixer()
1157 return err; in snd_ftu_create_mixer()
1159 err = snd_ftu_create_effect_send_ctls(mixer); in snd_ftu_create_mixer()
1160 if (err < 0) in snd_ftu_create_mixer()
1161 return err; in snd_ftu_create_mixer()
1191 int out, chan, err; in snd_c400_create_vol_ctls() local
1224 err = snd_create_std_mono_ctl_offset(mixer, id, control, in snd_c400_create_vol_ctls()
1227 if (err < 0) in snd_c400_create_vol_ctls()
1228 return err; in snd_c400_create_vol_ctls()
1278 int chan, err; in snd_c400_create_effect_vol_ctls() local
1309 err = snd_create_std_mono_ctl(mixer, id, control, in snd_c400_create_effect_vol_ctls()
1312 if (err < 0) in snd_c400_create_effect_vol_ctls()
1313 return err; in snd_c400_create_effect_vol_ctls()
1323 int chan, err; in snd_c400_create_effect_ret_vol_ctls() local
1351 err = snd_create_std_mono_ctl_offset(mixer, id, control, in snd_c400_create_effect_ret_vol_ctls()
1354 if (err < 0) in snd_c400_create_effect_ret_vol_ctls()
1355 return err; in snd_c400_create_effect_ret_vol_ctls()
1363 int err; in snd_c400_create_mixer() local
1365 err = snd_c400_create_vol_ctls(mixer); in snd_c400_create_mixer()
1366 if (err < 0) in snd_c400_create_mixer()
1367 return err; in snd_c400_create_mixer()
1369 err = snd_c400_create_effect_vol_ctls(mixer); in snd_c400_create_mixer()
1370 if (err < 0) in snd_c400_create_mixer()
1371 return err; in snd_c400_create_mixer()
1373 err = snd_c400_create_effect_ret_vol_ctls(mixer); in snd_c400_create_mixer()
1374 if (err < 0) in snd_c400_create_mixer()
1375 return err; in snd_c400_create_mixer()
1377 err = snd_ftu_create_effect_switch(mixer, 2, 0x43); in snd_c400_create_mixer()
1378 if (err < 0) in snd_c400_create_mixer()
1379 return err; in snd_c400_create_mixer()
1381 err = snd_c400_create_effect_volume_ctl(mixer); in snd_c400_create_mixer()
1382 if (err < 0) in snd_c400_create_mixer()
1383 return err; in snd_c400_create_mixer()
1385 err = snd_c400_create_effect_duration_ctl(mixer); in snd_c400_create_mixer()
1386 if (err < 0) in snd_c400_create_mixer()
1387 return err; in snd_c400_create_mixer()
1389 err = snd_c400_create_effect_feedback_ctl(mixer); in snd_c400_create_mixer()
1390 if (err < 0) in snd_c400_create_mixer()
1391 return err; in snd_c400_create_mixer()
1506 int err; in snd_microii_spdif_default_get() local
1513 err = snd_usb_lock_shutdown(chip); in snd_microii_spdif_default_get()
1514 if (err < 0) in snd_microii_spdif_default_get()
1515 return err; in snd_microii_spdif_default_get()
1530 err = snd_usb_ctl_msg(chip->dev, in snd_microii_spdif_default_get()
1538 if (err < 0) in snd_microii_spdif_default_get()
1545 err = 0; in snd_microii_spdif_default_get()
1548 return err; in snd_microii_spdif_default_get()
1556 int err; in snd_microii_spdif_default_update() local
1558 err = snd_usb_lock_shutdown(chip); in snd_microii_spdif_default_update()
1559 if (err < 0) in snd_microii_spdif_default_update()
1560 return err; in snd_microii_spdif_default_update()
1563 err = snd_usb_ctl_msg(chip->dev, in snd_microii_spdif_default_update()
1571 if (err < 0) in snd_microii_spdif_default_update()
1576 err = snd_usb_ctl_msg(chip->dev, in snd_microii_spdif_default_update()
1584 if (err < 0) in snd_microii_spdif_default_update()
1589 return err; in snd_microii_spdif_default_update()
1597 int err; in snd_microii_spdif_default_put() local
1615 err = snd_microii_spdif_default_update(list); in snd_microii_spdif_default_put()
1616 return err < 0 ? err : 1; in snd_microii_spdif_default_put()
1642 int err; in snd_microii_spdif_switch_update() local
1644 err = snd_usb_lock_shutdown(chip); in snd_microii_spdif_switch_update()
1645 if (err < 0) in snd_microii_spdif_switch_update()
1646 return err; in snd_microii_spdif_switch_update()
1648 err = snd_usb_ctl_msg(chip->dev, in snd_microii_spdif_switch_update()
1658 return err; in snd_microii_spdif_switch_update()
1666 int err; in snd_microii_spdif_switch_put() local
1673 err = snd_microii_spdif_switch_update(list); in snd_microii_spdif_switch_put()
1674 return err < 0 ? err : 1; in snd_microii_spdif_switch_put()
1705 int err, i; in snd_microii_controls_create() local
1713 err = add_single_ctl_with_resume(mixer, 0, in snd_microii_controls_create()
1717 if (err < 0) in snd_microii_controls_create()
1718 return err; in snd_microii_controls_create()
1726 int err = 0; in snd_usb_mixer_apply_create_quirk() local
1729 if ((err = snd_usb_soundblaster_remote_init(mixer)) < 0) in snd_usb_mixer_apply_create_quirk()
1730 return err; in snd_usb_mixer_apply_create_quirk()
1735 err = snd_us16x08_controls_create(mixer); in snd_usb_mixer_apply_create_quirk()
1742 err = snd_audigy2nx_controls_create(mixer); in snd_usb_mixer_apply_create_quirk()
1743 if (err < 0) in snd_usb_mixer_apply_create_quirk()
1752 err = snd_emu0204_controls_create(mixer); in snd_usb_mixer_apply_create_quirk()
1753 if (err < 0) in snd_usb_mixer_apply_create_quirk()
1759 err = snd_c400_create_mixer(mixer); in snd_usb_mixer_apply_create_quirk()
1764 err = snd_ftu_create_mixer(mixer); in snd_usb_mixer_apply_create_quirk()
1770 err = snd_xonar_u1_controls_create(mixer); in snd_usb_mixer_apply_create_quirk()
1774 err = snd_microii_controls_create(mixer); in snd_usb_mixer_apply_create_quirk()
1778 err = snd_mbox1_create_sync_switch(mixer); in snd_usb_mixer_apply_create_quirk()
1782 err = snd_nativeinstruments_create_mixer(mixer, in snd_usb_mixer_apply_create_quirk()
1788 err = snd_nativeinstruments_create_mixer(mixer, in snd_usb_mixer_apply_create_quirk()
1795 err = snd_create_std_mono_table(mixer, ebox44_table); in snd_usb_mixer_apply_create_quirk()
1803 err = snd_scarlett_controls_create(mixer); in snd_usb_mixer_apply_create_quirk()
1807 return err; in snd_usb_mixer_apply_create_quirk()