Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5330886ybv; Tue, 11 Feb 2020 13:39:52 -0800 (PST) X-Google-Smtp-Source: APXvYqwEIpZxb37ZtbxUDn0pFvEh9DGgq/bRMeEWPrc2rnuG13TGjEQXKPy4/rT1+6Y/TpR55eZs X-Received: by 2002:a05:6808:48e:: with SMTP id z14mr4290034oid.26.1581457192170; Tue, 11 Feb 2020 13:39:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581457192; cv=none; d=google.com; s=arc-20160816; b=eSe5MH9GrgNHmFqu4fAxYrFg82BGfs87R4KLXWRPwwVT7w9XAJaQsjqAHgg5KGlATM 8+JHBCIRN+TjFVePXEIVjAV1p9i0oMUsWNVzleBP/whWzPrU6ucSEACHkVHLqQyhqR6T frdwkuiYSAOZx1v1FcpV8ZO8EvyYrUQVqnr/p2QvskDuNFaVEFQc/k9cAkfeMivsLFXi GWSUpWn5hwssjlloAsxGna6pPbkslVpUenCM+J8UF/AMXAWgaixu3BV7Y/8im+RlfhT8 MwdOioVxp5HO9vfEEnWHB1NLq8ogDRcoQOlAIrjc9ri3vivWxai/qcfOoCNGOlbETEzW oS2g== 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=tYLaLZ/Tp/21jCExvr0deIxB4ty8AQhQHX/7acZrfPU=; b=rw71jvS+pnha+Dp5Vl34f/9SNYkzTFQx2MtameHSGXdkKSlf6F0vhgoFxk7ahyhGWz veM3e0M3GTHwllSIjhcX+buSUrG2IndXSOcvs2+ll4MFquPLDQdufi66+YTLiXoFCRMP IaGuQqGCw1UPI5s+ouc+k806CL5hr3kMwqGQbh4I3D+6u/8lvcEzGyu8j6xnBLIGT5yW nrq97NDnVwXIL0px7D7TL+GuLNnITmAgE06CK7n74G2/kOVmPVbuZQHZQI6YK3ef7JKP 8FEwTCd46rUBvxXlLB2Q7JyqKAg4lACDVCMRgaVNma/OqoC2OoMHqeu+28nuoDZjHZ/R zGIQ== 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 z10si2146898oic.77.2020.02.11.13.39.40; Tue, 11 Feb 2020 13:39:52 -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 S1731578AbgBKTPO (ORCPT + 99 others); Tue, 11 Feb 2020 14:15:14 -0500 Received: from mx2.suse.de ([195.135.220.15]:57952 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729934AbgBKTPO (ORCPT ); Tue, 11 Feb 2020 14:15:14 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 8959DAE2C; Tue, 11 Feb 2020 19:15:12 +0000 (UTC) Date: Tue, 11 Feb 2020 20:15:12 +0100 Message-ID: From: Takashi Iwai To: Arvind Sankar Cc: Jaroslav Kysela , Takashi Iwai , , , Subject: Re: [PATCH] ALSA: usb-audio: Apply sample rate quirk for Audioengine D1 In-Reply-To: <20200211162235.1639889-1-nivedita@alum.mit.edu> References: <20200211162235.1639889-1-nivedita@alum.mit.edu> 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/25.3 (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 Tue, 11 Feb 2020 17:22:35 +0100, Arvind Sankar wrote: > > The Audioengine D1 (0x2912:0x30c8) does support reading the sample rate, > but it returns the rate in byte-reversed order. > > When setting sampling rate, the driver produces these warning messages: > [168840.944226] usb 3-2.2: current rate 4500480 is different from the runtime rate 44100 > [168854.930414] usb 3-2.2: current rate 8436480 is different from the runtime rate 48000 > [168905.185825] usb 3-2.1.2: current rate 30465 is different from the runtime rate 96000 > > As can be seen from the hexadecimal conversion, the current rate read > back is byte-reversed from the rate that was set. > > 44100 == 0x00ac44, 4500480 == 0x44ac00 > 48000 == 0x00bb80, 8436480 == 0x80bb00 > 96000 == 0x017700, 30465 == 0x007701 > > Rather than implementing a new quirk to reverse the order, just skip > checking the rate to avoid spamming the log. > > Signed-off-by: Arvind Sankar Thanks, applied now with Cc to stable. Takashi