Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp799297pxb; Thu, 17 Feb 2022 15:13:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpyxW7T+E3F9aPYKFWlpD2QsFkR78M1eg5IIV/hq905RLf9wM4Zv7qOPlrqhGafGyhce35 X-Received: by 2002:a17:90a:7062:b0:1bb:a88b:5309 with SMTP id f89-20020a17090a706200b001bba88b5309mr6104472pjk.143.1645139634496; Thu, 17 Feb 2022 15:13:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645139634; cv=none; d=google.com; s=arc-20160816; b=bP7Z8zPk4ReT2IBM331nrejnOje3NPZGKd9X9ZyiPHe1LwB4rmkwL6YcyGKeDCwUwl z1HKAQLN/C+9t5J9pD5bkBOx1peSq+3jrz7oQgGfAaup0YQ7B1M79/9rTkL5l/vB3v27 luSWHmkK951d8BD56M3FoRzw8m9hdYriBibsjh7P3PBqlTwfpvdo2xLmHp04qbQIGMwP v5JdLNCxw8TKVGWxWv9PQeVjEJsfs2XDwyMwf1FrxtvSp4CzOmdOZy6a772yPm3tuPji kPMFGMN2CfCJALLcVvnTCweOu8EIyWyJdsSPS7mIuEnxLGxRNSz84mLQBVJ2y48OgroJ CXcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=AqRugGc/x5mzTIMr6wZCxw+isbv6b4+NF9GhTeaHUVk=; b=t3xI7cGCV9wKAdtUHK1A2xvukeieDMvrxEVsJ/pa0E+Dsv1Tus9RTo8NQcZ2rcuMFn 7KLsOrL+iqxO5xzR4fr2UyLlDO3WMqLesV6uY2sQCBTzIreSw14pznM+l/VjrsNVOsb4 kESBZJvGlaUQL0VknbqEoYtXlGnlWdgPdUMZxYP/FDZYZk/wWY8uBh31HeDKJX8oh13a 2m+fuUUyex3Fu2OQ6OsW3XvSifuVLqk7L6eOMYeppQknZGMUOtztOU0mD3TEeMiALjMC 096B5JhX9Rqs0+gwR+RG6q9CKlP2JkHhexz+G1klV1mKRAIiRTD5EKJD1cOU04KCc6Uu 5rQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=U8Xn12Sz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a14si9553557pgw.270.2022.02.17.15.13.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 15:13:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=U8Xn12Sz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3D75427B99A; Thu, 17 Feb 2022 15:04:42 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242478AbiBQP3H (ORCPT + 99 others); Thu, 17 Feb 2022 10:29:07 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:38582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242461AbiBQP3G (ORCPT ); Thu, 17 Feb 2022 10:29:06 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E2612AB508; Thu, 17 Feb 2022 07:28:52 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9DD3561E9F; Thu, 17 Feb 2022 15:28:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7ABFFC340E8; Thu, 17 Feb 2022 15:28:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645111731; bh=ru4JYpuY+BIPB6TA0dGc9lns/k0eZgQxIgm7/e+BfO0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=U8Xn12Sz0aqZ0kUd9SIDuRVaNIFErQA7sEq0vQ93pD1F9eGNfLhDxZyq+YKJ8AEAJ 56zIF669Xc4GtDNb0wnI9Kq5/LvUGUP6qaYzCvD7mAA4BBOx6NdHNW0CB5GetivmQJ ChmoP8uBazLnjAm2cSULKoV+JPxOcbE4I5wlLnPA= Date: Thu, 17 Feb 2022 16:28:48 +0100 From: Greg KH To: Jing Leng <3090101217@zju.edu.cn> Cc: balbi@kernel.org, ruslan.bilovol@gmail.com, pavel.hofman@ivitera.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Jing Leng Subject: Re: [PATCH] usb: gadget: f_uac1: add set requests support Message-ID: References: <20220216094301.2448-1-3090101217@zju.edu.cn> <770c0d3f.ab34b.17f0557e359.Coremail.3090101217@zju.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <770c0d3f.ab34b.17f0557e359.Coremail.3090101217@zju.edu.cn> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 17, 2022 at 09:42:00AM +0800, Jing Leng wrote: > Hi Greg KH, > > > So is this a bug in the Host side to not do stuff like this? Why not > > fix it there instead? > > > > Where is the requirement that this command must be handled by the > > device? > > > > First we need to clarify two issues. > > 1. Does the Ubuntu go beyond the UAC1 specification? > No. > On page 66 of the UAC1 specification ( > https://www.usb.org/sites/default/files/audio10.pdf): > The bRequest can be SET_CUR, SET_MIN, SET_MAX, SET_RES or SET_MEM. > In most cases, only the CUR and MEM attribute will be supported for > the Set request. However, this specification does not prevent a > designer from making other attributes programmable. > Supplement: Windows 10 only sends SET_CUR request. > > 2. Does the old version kernel have the problem on the Ubuntu? > NO. (e.g. linux-5.10) > The problem is introduced by the following modification: > commit 0356e6283c7177391d144612f4b12986ed5c4f6e > Author: Ruslan Bilovol > Date: Mon Jul 12 14:55:29 2021 +0200 > > usb: gadget: f_uac1: add volume and mute support Then please add this commit id as a "Fixes:" tag in the changelog area. thanks, greg k-h