From: Takashi Iwai Subject: Re: [PATCH] ALSA: usb-audio: Add SMSL D1 to quirks for native DSD support Date: Mon, 21 Jan 2019 22:34:35 +0100 Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id E641D2667E7 for ; Mon, 21 Jan 2019 22:34:35 +0100 (CET) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Jussi Laako Cc: alsa-devel@alsa-project.org, Tony Das List-Id: alsa-devel@alsa-project.org On Mon, 21 Jan 2019 17:33:22 +0100, Jussi Laako wrote: > > On 28.11.2018 22.16, Tony Das wrote: > > This patch adds quirk VID/PID IDs for the SMSL D1 in order to enable > > Native DSD support. > > > > Signed-off-by: Tony Das > > --- > > Author: Tony Das > > Date: Tue Nov 27 22:13:30 2018 +0000 > > > > diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c > > index 3d0f09108c98..aeac6bb7e111 100644 > > --- a/sound/usb/quirks.c > > +++ b/sound/usb/quirks.c > > @@ -1515,6 +1515,7 @@ u64 snd_usb_interface_dsd_format_quirks(struct > > snd_usb_audio *chip, > > case USB_ID(0x27f7, 0x3002): /* W4S DAC-2v2SE */ > > case USB_ID(0x29a2, 0x0086): /* Mutec MC3+ USB */ > > case USB_ID(0x6b42, 0x0042): /* MSB Technology */ > > + case USB_ID(0x152a, 0x85de): /* SMSL D1 DAC */ > > if (fp->altsetting == 3) > > return SNDRV_PCM_FMTBIT_DSD_U32_BE; > > break; > > These kind of device specific white-listing patches are unnecessary > these days for VID 0x152a (Thesycon), 0x20b1 (XMOS) and 0x25ce (Mytek) > because they are covered by the auto-detection code (below this > whitelisting table). In fact, for some products they cause problems > due to firmware changes that cause the DSD altsetting to change. Also > there are vendors who use same VID:PID pair for multiple products with > different firmware variants and different altsettings which in turn > causes problems with these static altsetting listings. > > So I would strongly advise to use the autodetection whenever > possible. In my own kernel builds I've removed all those mentioned > VIDs from the PID specific table, but for the already included patches > I took more conservative approach and removed only the ones I could > 100% test myself. Care to send a cleanup patch? That'll be really helpful. thanks, Takashi