lkml.org 
[lkml]   [2011]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[41/90] ALSA: snd-usb: Accept UAC2 FORMAT_TYPE descriptors with
    3.0-stable review patch.  If anyone has any objections, please let us know.

    ------------------
    bLength > 6

    From: Clemens Ladisch <clemens@ladisch.de>

    commit 824818b148db42173446707df4cbd61cd7133272 upstream.

    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 <zonque@gmail.com>
    Reported-by: Nicolai Krakowiak <nicolai.krakowiak@gmail.com>
    Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    sound/usb/endpoint.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/sound/usb/endpoint.c
    +++ b/sound/usb/endpoint.c
    @@ -352,7 +352,7 @@ int snd_usb_parse_audio_endpoints(struct
    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\n",
    dev->devnum, iface_no, altno);
    continue;



    \
     
     \ /
      Last update: 2011-08-14 18:35    [W:4.109 / U:0.184 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site