From: Takashi Iwai <tiwai@suse.de>
To: "Sudo Kamikaze" <pulshencode@outlook.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
ManuelReinhardt <manuel.rhdt@gmail.com>,
Tony Das <tdas444@gmail.com>,
Olek Poplavsky <woodenbits@gmail.com>,
Sasha Levin <sashal@kernel.org>,
Linus Walleij <linus.walleij@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>,
Jaroslav Kysela <perex@perex.cz>,
Sudokamikaze <sudokamikaze@protonmail.com>,
Jussi Laako <jussi@sonarnerd.net>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ALSA: usb-audio: Add Hiby R3 to quirks for native DSD support
Date: Mon, 26 Aug 2019 18:12:32 +0200 [thread overview]
Message-ID: <s5himqjkirz.wl-tiwai@suse.de> (raw)
In-Reply-To: <DB6PR07MB4296BE759CEDC6F0A6D4E5E3A8A10@DB6PR07MB4296.eurprd07.prod.outlook.com>
On Mon, 26 Aug 2019 18:05:05 +0200,
Sudo Kamikaze wrote:
>
> From: Sudokamikaze <sudokamikaze@protonmail.com>
>
> This patch adds quirk VID/PID IDs for Hiby R3 portable DSD player DSD support
>
> Signed-off-by: Sudokamikaze <sudokamikaze@protonmail.com>
> ---
> 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;
next parent reply other threads:[~2019-08-26 16:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <DB6PR07MB4296BE759CEDC6F0A6D4E5E3A8A10@DB6PR07MB4296.eurprd07.prod.outlook.com>
2019-08-26 16:12 ` Takashi Iwai [this message]
2019-08-26 16:09 ilya.pshonkin
2019-08-26 17:10 ` Jussi Laako
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=s5himqjkirz.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=jussi@sonarnerd.net \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=manuel.rhdt@gmail.com \
--cc=perex@perex.cz \
--cc=pulshencode@outlook.com \
--cc=sashal@kernel.org \
--cc=sudokamikaze@protonmail.com \
--cc=tdas444@gmail.com \
--cc=tglx@linutronix.de \
--cc=woodenbits@gmail.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®