Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4357253ybl; Mon, 26 Aug 2019 09:13:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwlovCbg4FMXYGhuHvDWKL6XYgSrTYy2v1U6w1F6qEAMc8OTFGVY8kFvMECT4AAU2jWJl0O X-Received: by 2002:a17:902:ab96:: with SMTP id f22mr20273583plr.147.1566836033878; Mon, 26 Aug 2019 09:13:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566836033; cv=none; d=google.com; s=arc-20160816; b=RsZTbq7PxMKuIXjJF1Fn5hEWxdaDCXruQyNPpNuscYlLtLWSo09V7WS/9weRYEJ/gA 2Z7xQRjLDFnHiKqyijaj8XH/BaP1EEpFkNj0a9yEBvC+5tcVNwClss0/cGRxs4Th1FIF PL4MKQn6QgkfhEkkZcWKeaQEftrecB0JlCPL/rc3v10OJ707Yp46dmPyp0J6NXsTjIvD EaVli2Z3WfqmIaWfxGnKwqy87XFnELxzP2t/QNxuEvvSvdawNRWTLN0h799BdD8TifQD P41Dv0fjtz1zn7kZlanV8eXlkOIEH1ehJPpN+Vh2c+J6ZPuVIMrTPjCvoJAwqS14bpbx L/ug== 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=Scki333puzdnncXW08I3KM2vGd92QqxOxjdyPMuRLe4=; b=RyzNAJ1GiOd5Qh2CLrtd+/Iu+dDCfHS+a207/7vBOwvbVWUzDIo4wkSLuZADSftG5Y +82Zy5vK4h+VLj5T3Rh90kIzdiM8ucNp5FPWnOmRgXSz6mOX3OdbLVqJfRcyG2/ZXokh fcDRxmY2XbOP4Um7VDFGZzx8aTlPdKHCbypD5SfCK0n3YBep8hYZmhYCjjoG2xvjwsPk PqIUVNdtZvKOWLkFiQo6QNspHWe5exxRM6viwj8eJhm7ZzDlYD5iBFI5+lGkWnBQsc7K pDXk2cVvxi1We9xxjNw8YkN8r1aR+3eD2MwOwh+aWqpgXdi95pdELc3KGRM2O3tyRz/B zkpg== 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 34si10193578plz.18.2019.08.26.09.13.37; Mon, 26 Aug 2019 09:13:53 -0700 (PDT) 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 S1732146AbfHZQMh (ORCPT + 99 others); Mon, 26 Aug 2019 12:12:37 -0400 Received: from mx2.suse.de ([195.135.220.15]:33222 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729338AbfHZQMg (ORCPT ); Mon, 26 Aug 2019 12:12:36 -0400 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 9DEDAAFFA; Mon, 26 Aug 2019 16:12:34 +0000 (UTC) Date: Mon, 26 Aug 2019 18:12:32 +0200 Message-ID: From: Takashi Iwai To: "Sudo Kamikaze" Cc: "alsa-devel@alsa-project.org" , ManuelReinhardt , Tony Das , Olek Poplavsky , Sasha Levin , Linus Walleij , Thomas Gleixner , Jaroslav Kysela , Sudokamikaze , Jussi Laako , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] ALSA: usb-audio: Add Hiby R3 to quirks for native DSD support 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/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 Mon, 26 Aug 2019 18:05:05 +0200, Sudo Kamikaze wrote: > > From: Sudokamikaze > > This patch adds quirk VID/PID IDs for Hiby R3 portable DSD player DSD support > > Signed-off-by: Sudokamikaze > --- > sound/usb/quirks.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c > index 78858918cbc1..f90418149e4e 100644 > --- a/sound/usb/quirks.c > +++ b/sound/usb/quirks.c > @@ -1588,6 +1588,12 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip, > if (fp->altsetting == 2) > return SNDRV_PCM_FMTBIT_DSD_U32_BE; > break; > + > + /* ESS Sabre based USB DACs */ > + case USB_ID(0xc502, 0x0051): /* Hiby R3 */ > + if (fp->altsetting == 4) > + return SNDRV_PCM_FMTBIT_DSD_U32_BE; > + break; Is fp->dsd_raw set for your device? IOW, instead of adding an individual entry here, adding the vendor 0xc502 with fp->dsd_raw check like below would work? thanks, Takashi --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -1658,6 +1658,7 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip, case 0x152a: /* Thesycon devices */ case 0x25ce: /* Mytek devices */ case 0x2ab6: /* T+A devices */ + case 0xc502: /* ESS Sabre */ if (fp->dsd_raw) return SNDRV_PCM_FMTBIT_DSD_U32_BE; break;