Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1664240pxb; Mon, 11 Oct 2021 10:28:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxo6JEnvYuYhsprf0p8gg2qn+BUpuZBYuHvkwLOjkTs4sugdnSultg1NO+QhlbZy31n/jlt X-Received: by 2002:a17:906:b19:: with SMTP id u25mr25616193ejg.36.1633973282011; Mon, 11 Oct 2021 10:28:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633973282; cv=none; d=google.com; s=arc-20160816; b=lr18GKNvmUxMtqwYFjZvYW2JwMXwnAO9UurCwkNWufqMPbOgUk33PFV0B/uwmFMto0 MMlYhpXfqg/eJ3QhuTn891N1rZVV40UFhRxB67LpfWJWkWhvaROnMKo5C/GurhQ8HKkS vjpKLQ1eCPT/PyWqCgvLIRaKweQezMeEvKyvSUIle9blGxqHBw3Cov12ka6H1S2e31Bq yR6gO+63k0YDyjs4XbiSvygwjK5DvjGs29zTzEAVGEoshenBHHLdI30JL8snkhT3BM6S F45WWqVzQExaH6m1CBdLexx1hXtLrX9a38UHYwjA2yoItyRtSKWgH9jFNu8dZ5GJuyUg W+2Q== 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=xFbnO+FlFXTVOLD89X3IYwdogXIJjqegmux6PNTVf1Q=; b=b6wHDIv08Icd7PhuhiCAYwvXwm3awbjakRD8+RAQBberSnrhSe+zrqW3IlHw3EI5uQ 8ZMOCjNwTQ8JYdF8iBewpzavLmD6nmRcnLTwYNNqu/Fd7naXSmbg59dCCbFHrZFpjC1S uEwpJQ65lEBr6NKE8IsBAIIO3K2MaEyIk09JPYMHWR3XfZ7dKbDUhdGzND7FxmCO4Zrh FHg0kkaZdOspD1VYwqdDxFmPX1UHJPVhy6UXvhA5iySd0rG4eo6ChG/QZe6j5qK+RmXh gmdsnBXrKgJnK/0paMiHgDlCATfhrCVMiYsLCajB39FWh+y1bSCBXsdq6h44L+FyaV+O tjmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VDUcTDi2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f5si11910297ejj.789.2021.10.11.10.27.38; Mon, 11 Oct 2021 10:28:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VDUcTDi2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234043AbhJKRZK (ORCPT + 96 others); Mon, 11 Oct 2021 13:25:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:53136 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234034AbhJKRZJ (ORCPT ); Mon, 11 Oct 2021 13:25:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2DEF160EB6; Mon, 11 Oct 2021 17:23:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633972988; bh=Dcah+wiObB2g/yEpi4xb6Ag+IL87PMhakQ1CDFA5VqE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VDUcTDi2YBOX8W+5x7VR1GG9Y8LION2KXj8pcsBuJ9inuvDZDZ7wIexb+tD4fkl64 Y+Qt8Q74CDbWFcCFYiU8M8wIPaqaKTN2pXFCtNsjz8jEgoZtFVZyQGpQc6gPt6EsPN qxBrZFOxrHiB+JaXOuXfztYrXfEYK4XKdZSrnJb8= Date: Mon, 11 Oct 2021 19:23:05 +0200 From: Greg Kroah-Hartman To: Takashi Iwai Cc: Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ALSA: usb-audio: allow -EPIPE errors for some v2 messages Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 11, 2021 at 06:07:01PM +0200, Takashi Iwai wrote: > On Mon, 11 Oct 2021 17:28:15 +0200, > Greg Kroah-Hartman wrote: > > > > On Sun, Oct 10, 2021 at 10:25:09PM +0200, Takashi Iwai wrote: > > > On Sun, 10 Oct 2021 14:22:41 +0200, > > > Greg Kroah-Hartman wrote: > > > > > > > > The Schiit Hel device does not like to respond to all get_ctl_value_v2() > > > > requests for some reason. This used to work in older kernels, but now > > > > with more strict checking, this failure causes the device to fail to > > > > work. > > > > > > > > Cc: Jaroslav Kysela > > > > Cc: Takashi Iwai > > > > Signed-off-by: Greg Kroah-Hartman > > > > --- > > > > > > > > This fixes the Shiit Hel device that I have. It used to work on older > > > > kernels (a year ago?), but stopped working for some reason and I didn't > > > > take the time to track it down. This change fixes the issue for me, but > > > > feels wrong for some reason. At least now I can use the device as a > > > > headphone driver, much better than the built-in one for my current > > > > machine... > > > > > > > > If needed, I can take the time to do bisection to track down the real > > > > issue here, it might be due to stricter endpoint checking in the USB > > > > core, but that feels wrong somehow. > > > > > > > > Here's the debugfs USB output for this device, showing the endpoints: > > > > > > > > T: Bus=07 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#= 5 Spd=480 MxCh= 0 > > > > D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 > > > > P: Vendor=30be ProdID=0101 Rev=01.02 > > > > S: Manufacturer=Schiit Audio > > > > S: Product=Schiit Hel > > > > C: #Ifs= 4 Cfg#= 1 Atr=c0 MxPwr=0mA > > > > I: If#= 0 Alt= 0 #EPs= 1 Cls=01(audio) Sub=01 Prot=20 Driver=snd-usb-audio > > > > E: Ad=8f(I) Atr=03(Int.) MxPS= 6 Ivl=1ms > > > > I: If#= 1 Alt= 1 #EPs= 2 Cls=01(audio) Sub=02 Prot=20 Driver=snd-usb-audio > > > > E: Ad=05(O) Atr=05(Isoc) MxPS= 104 Ivl=125us > > > > E: Ad=85(I) Atr=11(Isoc) MxPS= 4 Ivl=1ms > > > > I: If#= 2 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02 Prot=20 Driver=snd-usb-audio > > > > E: Ad=88(I) Atr=05(Isoc) MxPS= 156 Ivl=125us > > > > I: If#= 3 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid > > > > E: Ad=84(I) Atr=03(Int.) MxPS= 16 Ivl=1ms > > > > > > > > Any other suggestions to fix this are welcome. > > > > > > Could you show the exact error messages and lsusb -v output? > > > We may paper over only the problematic node instead. > > > > Sure, here's the dmesg output on 5.15-rc5 when it is turned on: > > > > [Oct11 17:25] usb 7-2.2: new high-speed USB device number 9 using xhci_hcd > > [ +0.122422] usb 7-2.2: New USB device found, idVendor=30be, idProduct=0101, bcdDevice= 1.02 > > [ +0.000009] usb 7-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 > > [ +0.000002] usb 7-2.2: Product: Schiit Hel > > [ +0.000002] usb 7-2.2: Manufacturer: Schiit Audio > > [ +0.327172] input: Schiit Audio Schiit Hel as /devices/pci0000:40/0000:40:01.1/0000:41:00.0/0000:42:08.0/0000:47:00.1/usb7/7-2/7-2.2/7-2.2:1.3/0003:30BE:0101.0009/input/input21 > > [ +0.055134] hid-generic 0003:30BE:0101.0009: input,hidraw8: USB HID v1.00 Device [Schiit Audio Schiit Hel] on usb-0000:47:00.1-2.2/input3 > > [ +0.135988] usb 7-2.2: cannot get ctl value: req = 0x81, wValue = 0x100, wIndex = 0x1100, type = 1 > > [ +0.060647] usb 7-2.2: cannot get ctl value: req = 0x81, wValue = 0x100, wIndex = 0x1100, type = 1 > > [ +0.065362] usb 7-2.2: cannot get ctl value: req = 0x81, wValue = 0x100, wIndex = 0x1100, type = 1 > > [ +0.192121] usb 7-2.2: cannot get ctl value: req = 0x81, wValue = 0x100, wIndex = 0x1100, type = 1 > > Thanks. So this happens at the unit 17, and ... > > > > And here is the 'lsusb -v' output of the device. > > > > > > Bus 007 Device 009: ID 30be:0101 Schiit Audio Schiit Hel > (snip) > > AudioControl Interface Descriptor: > > bLength 18 > > bDescriptorType 36 > > bDescriptorSubtype 6 (FEATURE_UNIT) > > bUnitID 17 > > bSourceID 5 > > bmaControls(0) 0x00000003 > > Mute Control (read/write) > > bmaControls(1) 0x00000000 > > bmaControls(2) 0x00000000 > > iFeature 0 > > ... this is the entry. > > Could you also post the contents of /proc/asound/card*/usbmixer (only > for the corresponding device), too? Sure, here it is: USB Mixer: usb_id=0x30be0101, ctrlif=0, ctlerr=0 Card: Schiit Audio Schiit Hel at usb-0000:47:00.1-2.2, high speed Unit: 5 Control: name="Mic - Input Jack", index=0 Info: id=5, control=2, cmask=0x0, channels=1, type="BOOLEAN" Volume: min=0, max=1, dBmin=0, dBmax=0 Unit: 7 Control: name="Speaker - Output Jack", index=0 Info: id=7, control=2, cmask=0x0, channels=1, type="BOOLEAN" Volume: min=0, max=1, dBmin=0, dBmax=0 Unit: 13 Control: name="PCM Playback Switch", index=0 Info: id=13, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN" Volume: min=0, max=1, dBmin=0, dBmax=0 Unit: 17 Control: name="Mic Capture Switch", index=0 Info: id=17, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN" Volume: min=0, max=1, dBmin=0, dBmax=0 Unit: 18 Control: name="Clock Source 18 Validity", index=0 Info: id=18, control=2, cmask=0x0, channels=1, type="BOOLEAN" Volume: min=0, max=1, dBmin=0, dBmax=0 Unit: 22 Control: name="Clock Source 22 Validity", index=0 Info: id=22, control=2, cmask=0x0, channels=1, type="BOOLEAN" Volume: min=0, max=1, dBmin=0, dBmax=0