lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <s5himqjkirz.wl-tiwai@suse.de>
Date:   Mon, 26 Aug 2019 18:12:32 +0200
From:   Takashi Iwai <tiwai@...e.de>
To:     "Sudo Kamikaze" <pulshencode@...look.com>
Cc:     "alsa-devel@...a-project.org" <alsa-devel@...a-project.org>,
        ManuelReinhardt <manuel.rhdt@...il.com>,
        Tony Das <tdas444@...il.com>,
        Olek Poplavsky <woodenbits@...il.com>,
        Sasha Levin <sashal@...nel.org>,
        Linus Walleij <linus.walleij@...aro.org>,
        Thomas Gleixner <tglx@...utronix.de>,
        Jaroslav Kysela <perex@...ex.cz>,
        Sudokamikaze <sudokamikaze@...tonmail.com>,
        Jussi Laako <jussi@...arnerd.net>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] ALSA: usb-audio: Add Hiby R3 to quirks for native DSD support

On Mon, 26 Aug 2019 18:05:05 +0200,
Sudo Kamikaze wrote:
> 
> From: Sudokamikaze <sudokamikaze@...tonmail.com>
> 
> This patch adds quirk VID/PID IDs for Hiby R3 portable DSD player DSD support
> 
> Signed-off-by: Sudokamikaze <sudokamikaze@...tonmail.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;

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ