Return-Path: Received: from mail-wm0-f67.google.com ([74.125.82.67]:56227 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750800AbeBLTco (ORCPT ); Mon, 12 Feb 2018 14:32:44 -0500 Subject: Re: [PATCH] ALSA: usb-audio: Fix UAC2 get_ctl request with a RANGE attribute To: Takashi Iwai Cc: perex@perex.cz, alsa-devel@alsa-project.org, Stephen Barber , Bhumika Goyal , Jaejoong Kim , Julian Scheel , linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20180129053755.20136-1-k.marinushkin@gmail.com> <40196230-8f73-4cca-08e5-d67bfbea2d6e@gmail.com> From: Kirill Marinushkin Message-ID: <120bc0f8-f472-268d-1247-3245ae994fe5@gmail.com> Date: Mon, 12 Feb 2018 20:32:53 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: stable-owner@vger.kernel.org List-ID: Hello maintainers of , As discussed earlier in this thread, I propose this patch to stable. It fixes the issue, which exists since v2.6.34. Best Regards, Kirill On 02/12/18 09:08, Takashi Iwai wrote: > On Thu, 08 Feb 2018 07:21:36 +0100, > Kirill Marinushkin wrote: >> On 02/07/18 06:45, Takashi Iwai wrote: >>> On Mon, 29 Jan 2018 06:37:55 +0100, >>> Kirill Marinushkin wrote: >>>> The layout of the UAC2 Control request and response varies depending on >>>> the request type. With the current implementation, only the Layout 2 >>>> Parameter Block (with the 2-byte sized RANGE attribute) is handled >>>> properly. For the Control requests with the 1-byte sized RANGE attribute >>>> (Bass Control, Mid Control, Tremble Control), the response is parsed >>>> incorrectly. >>>> >>>> This commit: >>>> * fixes the wLength field value in the request >>>> * fixes parsing the range values from the response >>>> >>>> Fixes: 23caaf19b11e ("ALSA: usb-mixer: Add support for Audio Class v2.0") >>>> Signed-off-by: Kirill Marinushkin >>>> Cc: Jaroslav Kysela >>>> Cc: Takashi Iwai >>>> Cc: Jaejoong Kim >>>> Cc: Bhumika Goyal >>>> Cc: Stephen Barber >>>> Cc: Julian Scheel >>>> Cc: alsa-devel@alsa-project.org >>>> Cc: linux-kernel@vger.kernel.org >>> Sorry for the late reply, as I've been (and still) off. >>> >>> Does this bug actually hit on any real devices, or is it only a >>> logical error so far? In the former case, a Cc to stable is >>> mandatory. >>> >>> In anyway, I'll review and merge it properly once after I back to >>> work. >>> >>> >>> thanks, >>> >>> Takashi >> Hello Takashi, >> >> Thank you for your answer. I will wait until you are back to work, don't >> worry about the late replies. >> >> I did not hit the issue on a real device. >> >> During my UAC2 experiments, I reproduced this issue on the development >> board, and then tested my solution on it. > OK, if it happened on a development system, it's a real issue, and we > should put Cc to stable. Now I applied the patch. > > Thanks! > > > Takashi