[alsa-devel] [PATCH 2/2] Signed-off-by: Jurgen Kramer <gtmkramer at xs4all.nl>

Jurgen Kramer gtmkramer at xs4all.nl
Fri Nov 28 13:40:36 CET 2014


On Fri, 2014-11-28 at 17:37 +0500, Alexander E. Patrakov wrote:
> 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)?
Oops,right. Typo when I cleanup the patch...will resend as v2.

Jurgen
> 




More information about the Alsa-devel mailing list