[alsa-devel] [PATCH 2/2] Signed-off-by: Jurgen Kramer <gtmkramer at xs4all.nl>
Alexander E. Patrakov
patrakov at gmail.com
Fri Nov 28 13:37:43 CET 2014
28.11.2014 17:31, Jurgen Kramer wrote:
> + case 2: /* DSD mode requested */
> + err = snd_usb_ctl_msg(dev, usb_sndctrlpipe(dev, 0), 0,
> + USB_DIR_OUT|USB_TYPE_VENDOR|USB_RECIP_INTERFACE,
> + 1, 1, NULL, 0);
> + if (err < 0)
> + return err;
> + break;
> + case 1: /* PCM mode requested */
> + err = snd_usb_ctl_msg(dev, usb_sndctrlpipe(dev, 0), 0,
> + USB_DIR_OUT|USB_TYPE_VENDOR|USB_RECIP_INTERFACE,
> + 0, 1, NULL, 0);
> + if (err > 0)
> + return err;
> + break;
maybe if (err < 0)?
--
Alexander E. Patrakov
More information about the Alsa-devel
mailing list