From: Takashi Iwai Subject: Re: [PATCH 1/3] ALSA: snd-usb: Accept UAC2 FORMAT_TYPE descriptors with bLength > 6 Date: Thu, 04 Aug 2011 16:07:01 +0200 Message-ID: References: <1312466188-3428-1-git-send-email-zonque@gmail.com> <1312466188-3428-2-git-send-email-zonque@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 2B13024464 for ; Thu, 4 Aug 2011 16:07:04 +0200 (CEST) In-Reply-To: <1312466188-3428-2-git-send-email-zonque@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Daniel Mack Cc: alsa-devel@alsa-project.org, clemens@ladisch.de, stable@kernel.org List-Id: alsa-devel@alsa-project.org At Thu, 4 Aug 2011 15:56:26 +0200, Daniel Mack wrote: > > The Focusrite Scarlett 18i6 USB has them that way, which is probably a > bug. Anyway, the driver should simply ignore this fact. > > Signed-off-by: Daniel Mack > Reported-by: Nicolai Krakowiak > Cc: stable@kernel.org > --- > sound/usb/endpoint.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c > index 1eea7e3..1867bbd 100644 > --- a/sound/usb/endpoint.c > +++ b/sound/usb/endpoint.c > @@ -352,7 +352,7 @@ int snd_usb_parse_audio_endpoints(struct snd_usb_audio *chip, int iface_no) > continue; > } > if (((protocol == UAC_VERSION_1) && (fmt->bLength < 8)) || > - ((protocol == UAC_VERSION_2) && (fmt->bLength != 6))) { > + ((protocol == UAC_VERSION_2) && (fmt->bLength < 6))) { > snd_printk(KERN_ERR "%d:%u:%d : invalid UAC_FORMAT_TYPE desc (protocol %d, bLength %d)\n", > dev->devnum, iface_no, altno, protocol, fmt->bLength); > continue; This patch isn't applicable to sound git tree. Any missing patch? thanks, Takashi