Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp441189imu; Fri, 4 Jan 2019 00:15:31 -0800 (PST) X-Google-Smtp-Source: AFSGD/WNeN3LYaxJKQBrOvEoGVgO6tDkggJuFjNDYkAkrLXK/VUvFSwswbqcuHkGt1MQFjuL4DC2 X-Received: by 2002:a62:35c7:: with SMTP id c190mr52745545pfa.76.1546589731587; Fri, 04 Jan 2019 00:15:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546589731; cv=none; d=google.com; s=arc-20160816; b=gDL+Fb+m7h1MD5CPqrACMx5RfUWK0Nke3fF3nTirjvzLS5fJKbXJ5oOOHV/xC3ogLI 645gRUYM6nSukr8E6+zEBehkmQYZL0+3RrWsROg/hkv/eUSVlHgNp+1mG1+bLsJwn5+u obS2RRwsD4r3Lz0a437wqNfyohBunF7l1FG7RVbMm7PEPjd9OEtSOs7LEipw+6EERSax Kqyr/fpZ597Dt1wWOYLh/kVnAmz5CERlS/NMtp2ELxuAoUMs1HM9UqfW2LJiaFj2KEA+ xOA0dHMViWuSYPhAwGKggZBy0e3reDu8+6DFyR6r8Pxc3zILAab8p8A9WDS/4UGTZ9hr Dn1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=jRDNXrr/u+yPWYoKes/WrX/r4yCFnnyK/JM9EmGKkTA=; b=TyuH6UCjU6KDaNblf2F//qhXOeGR5n0IO7NUJCwfuyCx3C1LbaC6RRtMwt3HuDlUaF Au7rZPopSh5C32580Nya6uJOjcHp2Cy/jTDB6BZMJRHkob7HxnX3ZG4npT9kQTPMwA48 Rhj4HGtCI76vD2/EVVeiBBVHrTkwmANOWCvg1qAEkjyVe1umuSOKSiTFdLXoaz0l6/CB UDfmdiwVSyIe8yKvGqibxY5+2tbVhry9XC70IA0i0K8q3eS9ri+H7DTD4t14oG1IT7va 3T/2RrEwm09KfVZwjPH0i9Q0xO9BzAFkQxGTV2sPpm/SAlw2KQFlh9AwHX3WcFwtOp0g 6ZtQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f63si16631885pgc.473.2019.01.04.00.15.15; Fri, 04 Jan 2019 00:15:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727342AbfADG1Q (ORCPT + 99 others); Fri, 4 Jan 2019 01:27:16 -0500 Received: from mx2.suse.de ([195.135.220.15]:47978 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726718AbfADG1P (ORCPT ); Fri, 4 Jan 2019 01:27:15 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 6753BADC9; Fri, 4 Jan 2019 06:27:13 +0000 (UTC) Date: Fri, 04 Jan 2019 07:27:13 +0100 Message-ID: From: Takashi Iwai To: Con Kolivas Cc: linux-kernel , alsa-devel@alsa-project.org, saranya.gopal@intel.com, felipe.balbi@linux.intel.com, linux-usb@vger.kernel.org Subject: Re: ALSA:usb audio Higher sample rates on usb audio no longer working. In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/26 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 04 Jan 2019 00:16:42 +0100, Con Kolivas wrote: > > Hi Iwai-san. > > Added some relevant CCs. > > On Fri, 4 Jan 2019 at 00:23, Takashi Iwai wrote: > > > > On Thu, 03 Jan 2019 12:43:54 +0100, > > Con Kolivas wrote: > > > > > > Upon switching from 4.19.0 to 4.20.0, pulseaudio started complaining > > > that sinks that previously worked are no longer supported. > > > > > > On 4.19.0 trying 24 bit 88200, 176400, and 192000 I get the following > > > output from pulse. > > > resampler.c: Forcing resampler 'copy', because of fixed, identical > > > sample rates.sink-input.c: Created input 15 "Playback Stream" on > > > alsa_output.usb-DSPeaker_Anti-Mode_X4-00.iec958-stereo with sample > > > spec float32le 2ch 176400Hz and channel map front-left,front-right > > > > > > Switching to 4.20 gives me: > > > alsa-sink.c: Sink does not support sample rate of 176400 Hz > > > and > > > alsa-sink.c: Sink does not support sample rate of 88200 Hz > > > and > > > alsa-sink.c: Sink does not support sample rate of 192000 Hz > > > > > > Sample rates of 44100, 48000, and 96000 work fine, but 88200, 176400, > > > and 192000 no longer work > > > > > > Switching back to 4.19 immediately fixes the issue. > > > > > > > > > I tried looking through the alsa changelogs but there were too many to > > > give an obvious culprit, and haven't had time to do a git bisect. If > > > there's an obvious choice patch to back out I'd be grateful for the > > > heads up. > > > > Hm, through a quick glance, there hasn't been any relevant changes in > > USB-audio part (sound/usb/*). Also, the changes in sound/core/* are > > irrelevant with your problem. > > > > So I have no idea what went wrong. The bisection, or at least, > > narrowing down the commits would be helpful. > > I've done a git bisect and found the offending commit: > > commit f13912d3f014a7f2fa5c35d25ee8c3f96bda6272 (refs/bisect/bad) > Author: Saranya Gopal > Date: Wed Sep 12 08:46:26 2018 +0530 > > usbcore: Select UAC3 configuration for audio if present > > USB audio class 3.0 specification introduced many significant > changes like > - new power domains, support for LPM/L1 > - new cluster descriptor > - new high capability and class-specific string descriptors > - BADD profiles > - ... and many other things (check spec from link below: > http://www.usb.org/developers/docs/devclass_docs/USB_Audio_v3.0.zip) > > Now that UAC3 is supported in linux, choose UAC3 > configuration for audio if the device supports it. > Selecting this configuration will enable the system to > save power by leveraging the new power domains and LPM L1 > capability and also support new codec types and data formats > for consumer audio applications. > > Signed-off-by: Saranya Gopal > Reviewed-by: Felipe Balbi > Signed-off-by: Greg Kroah-Hartman > > Reverting this patch fixes the problem for me. [ Adding linux-usb ML to Cc, as it's a core USB issue ] So the device seems incorrectly advertising as if it were supporting UAC3 -- assuming the device is still not UAC3-capable. IOW, it's a buggy firmware. We need some blacklisting, or revert the commit for now, unless any real UAC3 device comes up to the market. thanks, Takashi