Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2676580rwd; Wed, 14 Jun 2023 06:10:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4rkrmWvxUOgNxiF39+JC0FaNSoGkXfZXrGUZn5N+mkjUU4/DHQsSEUWRnlxMtkYQXvdKpB X-Received: by 2002:a17:907:7246:b0:978:8925:79ed with SMTP id ds6-20020a170907724600b00978892579edmr13449391ejc.74.1686748238973; Wed, 14 Jun 2023 06:10:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686748238; cv=none; d=google.com; s=arc-20160816; b=XJ6t9YqX2aRQxou4py7mOO+O4Axw/x6W6GbOIP8xegaqqfnaSehxY4vMo0623bgH7f Qc/lrx60i5juy+0jHv0nESxOfAmwVp8E3B3ViUjkUy2duWc+xVnspKKRGdy85YqXBeXM cB4wuUTzv5hrWwbvzARFq881tXAkEoEApALRr4e3XyWb33I4jZpE7axOm/AZ+F30yDmY Tagwv3/WDBM3uBha9CKbyO83V9X3Zy98dhLGVXvy8W/qeuBrWq0dd4jWTJOHUSalsFaq 7mbQiChjxd+9UaD3zbXmhiQ/mHQqxgxKtkvo36RIzObanQyQpym5cYsBwvAqnE+ydAK6 URtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=HCOpEYWybn0h42PeOFsXtNPLsCr6X0rb8Ukb/61Zp5k=; b=U2gbgM4rgz5hi2UydOMb7TRsm/iPMp5NA/gUMyfiU4YZIFNZ+0g3TT9MGFUvg49d/R st0+pe50Wv/6U4ZqWREzGm7tRkTqQes2yhDB1aKGuvNTQknCaSqyYxYvEBe1M/W8azo1 WWgoJIbH3hieBqgPQOsSLNQ3Iink0dw+OvLhPli+smzXwPd/LduW8YLzuLSv8W93y19R wXFdkgi0IDSkvFhhNM4aCrrKT5KbzvIMRlJOih6F11zx4qvHaz+Vny5vjq7fHq8lIERj Kk75NzskZj1O/druRtC6ClPd0WQIb9WRksTbVbXrnprgLQh45jIYWtfMke8c0Bi+RVdm 5FdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y15-20020a17090668cf00b00977c8c630acsi7837352ejr.514.2023.06.14.06.10.13; Wed, 14 Jun 2023 06:10:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233887AbjFNM0V (ORCPT + 99 others); Wed, 14 Jun 2023 08:26:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244564AbjFNM0B (ORCPT ); Wed, 14 Jun 2023 08:26:01 -0400 Received: from cloudserver3200665-3200696.home.pl (cloudserver3200665-3200696.home.pl [46.242.240.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 557661FEA for ; Wed, 14 Jun 2023 05:25:58 -0700 (PDT) Received: from localhost (127.0.0.1) (HELO sv086.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.2.0) id 2756e75fa4a82ca7; Wed, 14 Jun 2023 14:25:56 +0200 Received: from HEM05L.admytek.local (unknown [213.108.156.244]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by sv086.home.net.pl (Postfix) with ESMTPSA id 13CB94215C; Wed, 14 Jun 2023 14:25:56 +0200 (CEST) From: Lukasz Tyl To: perex@perex.cz Cc: tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, pgorgon@hem-e.com, Lukasz Tyl Subject: [PATCH v2] sound: usb: quirks: add flag for HEM devices to enable native DSD playback Date: Wed, 14 Jun 2023 14:25:24 +0200 Message-Id: <20230614122524.30271-1-ltyl@hem-e.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CLIENT-IP: 213.108.156.244 X-CLIENT-HOSTNAME: 213.108.156.244 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrgedvtddghedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecunecujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepnfhukhgrshiiucfvhihluceolhhthihlsehhvghmqdgvrdgtohhmqeenucggtffrrghtthgvrhhnpeeghfeuhedvvefhhefghfdtjeekudevudelheekgeegjeduueefgeetfeelueehudenucfkphepvddufedruddtkedrudehiedrvdeggeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvudefrddutdekrdduheeirddvgeegpdhhvghlohepjffgofdthefnrdgrughmhihtvghkrdhlohgtrghlpdhmrghilhhfrhhomhepnfhukhgrshiiucfvhihluceolhhthihlsehhvghmqdgvrdgtohhmqedpnhgspghrtghpthhtohepiedprhgtphhtthhopehpvghrvgigsehpvghrvgigrdgtiidprhgtphhtthhopehtihifrghisehsuhhsvgdrtghomhdprhgtphhtthhopegrlhhsrgdquggvvhgvlhesrghlshgrqdhprhhojhgvtghtrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepphhgohhrghhonheshhgvmhdqvgdrtghomhdprhgtphhtthhopehlthihlheshhgvmhdqvgdrtghomh X-DCC--Metrics: sv086.home.net.pl 1024; Body=7 Fuz1=8 Fuz2=8 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit adds new DEVICE_FLG with QUIRK_FLAG_DSD_RAW and Vendor Id for HEM devices which supports native DSD. Prior to this change Linux kernel was not enabling native DSD playback for HEM devices, and as a result, DSD audio was being converted to PCM "on the fly". HEM devices, when connected to the system, would only play audio in PCM format, even if the source material was in DSD format. With the addition of new VENDOR_FLG in the quircks.c file, the devices are now correctly recognized, and raw DSD data is transmitted to the device, allowing for native DSD playback. Signed-off-by: Lukasz Tyl --- Changes in v2: - correct entry position (entry sorted by vendor id). --- sound/usb/quirks.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c index 3ecd1ba7fd4b..6cf55b7f7a04 100644 --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -2191,6 +2191,8 @@ static const struct usb_audio_quirk_flags_table quirk_flags_table[] = { QUIRK_FLAG_DSD_RAW), VENDOR_FLG(0x2ab6, /* T+A devices */ QUIRK_FLAG_DSD_RAW), + VENDOR_FLG(0x3336, /* HEM devices */ + QUIRK_FLAG_DSD_RAW), VENDOR_FLG(0x3353, /* Khadas devices */ QUIRK_FLAG_DSD_RAW), VENDOR_FLG(0x3842, /* EVGA */ -- 2.34.1