mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yue Wang <yuleopen@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: yuleopen@gmail.com, Jaroslav Kysela <perex@perex.cz>,
	Takashi Iwai <tiwai@suse.com>, Jussi Laako <jussi@sonarnerd.net>,
	Nobutaka Okabe <nob77413@gmail.com>,
	Kai-Heng Feng <kai.heng.feng@canonical.com>,
	Daniel Mack <daniel@zonque.org>,
	Ruslan Bilovol <ruslan.bilovol@gmail.com>,
	Alberto Aguirre <albaguirre@gmail.com>,
	alsa-devel@alsa-project.org
Subject: [PATCH] alsa/usb-audio: Generic DSD detection for Thesycon-based implementations
Date: Mon, 23 Jul 2018 01:56:46 -0700	[thread overview]
Message-ID: <20180723085647.49537-1-yuleopen@gmail.com> (raw)

Thesycon provides solutions to XMOS chips, and has its own device vendor id.

In this patch, we use generic method to detect DSD capability of Thesycon-based UAC2
implementations in order to support a wide range of current and future devices.

The patch will enable the SNDRV_PCM_FMTBIT_DSD_U32_BE bit for the DAC
hence enable native DSD playback up to DSD512 format.

Signed-off-by: Yue Wang <yuleopen@gmail.com>
---
 sound/usb/quirks.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
index 02b6cc02767f..06ae3f5adf4b 100644
--- a/sound/usb/quirks.c
+++ b/sound/usb/quirks.c
@@ -1443,6 +1443,7 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
 	 */
 	switch (USB_ID_VENDOR(chip->usb_id)) {
 	case 0x20b1:  /* XMOS based devices */
+	case 0x152a:  /* Thesycon devices */
 	case 0x25ce:  /* Mytek devices */
 		if (fp->dsd_raw)
 			return SNDRV_PCM_FMTBIT_DSD_U32_BE;
-- 
2.18.0


             reply	other threads:[~2018-07-23  8:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-23  8:56 Yue Wang [this message]
2018-07-23  9:31 ` Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2018-07-23  8:53 Yue Wang
2018-07-23  8:54 ` Yue Wang
2018-07-23  8:56   ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180723085647.49537-1-yuleopen@gmail.com \
    --to=yuleopen@gmail.com \
    --cc=albaguirre@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=daniel@zonque.org \
    --cc=jussi@sonarnerd.net \
    --cc=kai.heng.feng@canonical.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nob77413@gmail.com \
    --cc=perex@perex.cz \
    --cc=ruslan.bilovol@gmail.com \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®