linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] alsa/usb-audio: Generic DSD detection for Thesycon-based implementations
@ 2018-07-23  8:53 Yue Wang
  2018-07-23  8:54 ` Yue Wang
  0 siblings, 1 reply; 5+ messages in thread
From: Yue Wang @ 2018-07-23  8:53 UTC (permalink / raw)
  To: yuleopen
  Cc: Jaroslav Kysela, Takashi Iwai, Jussi Laako, Nobutaka Okabe,
	Kai-Heng Feng, Daniel Mack, Ruslan Bilovol, Alberto Aguirre,
	alsa-devel, linux-kernel

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..c51e2dee3075 100644
--- a/sound/usb/quirks.c
+++ b/sound/usb/quirks.c
@@ -1374,6 +1374,7 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
 		break;
 
 	case USB_ID(0x0d8c, 0x0316): /* Hegel HD12 DSD */
+	case USB_ID(0x152a, 0x8750): /* Topping DX7s */
 	case USB_ID(0x16b0, 0x06b2): /* NuPrime DAC-10 */
 	case USB_ID(0x16d0, 0x0733): /* Furutech ADL Stratos */
 	case USB_ID(0x16d0, 0x09db): /* NuPrime Audio DAC-9 */
-- 
2.18.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] alsa/usb-audio: Generic DSD detection for Thesycon-based implementations
  2018-07-23  8:53 [PATCH] alsa/usb-audio: Generic DSD detection for Thesycon-based implementations Yue Wang
@ 2018-07-23  8:54 ` Yue Wang
  2018-07-23  8:56   ` Takashi Iwai
  0 siblings, 1 reply; 5+ messages in thread
From: Yue Wang @ 2018-07-23  8:54 UTC (permalink / raw)
  To: Sherry Zhang
  Cc: Jaroslav Kysela, Takashi Iwai, Jussi Laako, Nobutaka Okabe,
	Kai-Heng Feng, Daniel Mack, Ruslan Bilovol, Alberto Aguirre,
	alsa-devel, linux-kernel

Please ignore this commit. there's something wrong. My apologies again.
On Mon, Jul 23, 2018 at 1:53 AM Yue Wang <yuleopen@gmail.com> wrote:
>
> 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..c51e2dee3075 100644
> --- a/sound/usb/quirks.c
> +++ b/sound/usb/quirks.c
> @@ -1374,6 +1374,7 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
>                 break;
>
>         case USB_ID(0x0d8c, 0x0316): /* Hegel HD12 DSD */
> +       case USB_ID(0x152a, 0x8750): /* Topping DX7s */
>         case USB_ID(0x16b0, 0x06b2): /* NuPrime DAC-10 */
>         case USB_ID(0x16d0, 0x0733): /* Furutech ADL Stratos */
>         case USB_ID(0x16d0, 0x09db): /* NuPrime Audio DAC-9 */
> --
> 2.18.0
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] alsa/usb-audio: Generic DSD detection for Thesycon-based implementations
  2018-07-23  8:54 ` Yue Wang
@ 2018-07-23  8:56   ` Takashi Iwai
  0 siblings, 0 replies; 5+ messages in thread
From: Takashi Iwai @ 2018-07-23  8:56 UTC (permalink / raw)
  To: Yue Wang
  Cc: alsa-devel, Kai-Heng Feng, Alberto Aguirre, Nobutaka Okabe,
	Ruslan Bilovol, Jaroslav Kysela, Jussi Laako, linux-kernel,
	Daniel Mack

On Mon, 23 Jul 2018 10:54:49 +0200,
Yue Wang wrote:
> 
> Please ignore this commit. there's something wrong. My apologies again.

Heh, don't worry.  BTW, at the next submission, please fix the subject
prefix as well.  The usual subject line for ALSA code is like:

  ALSA: usb-audio: Blah blah...


thanks,

Takashi


> On Mon, Jul 23, 2018 at 1:53 AM Yue Wang <yuleopen@gmail.com> wrote:
> >
> > 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..c51e2dee3075 100644
> > --- a/sound/usb/quirks.c
> > +++ b/sound/usb/quirks.c
> > @@ -1374,6 +1374,7 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
> >                 break;
> >
> >         case USB_ID(0x0d8c, 0x0316): /* Hegel HD12 DSD */
> > +       case USB_ID(0x152a, 0x8750): /* Topping DX7s */
> >         case USB_ID(0x16b0, 0x06b2): /* NuPrime DAC-10 */
> >         case USB_ID(0x16d0, 0x0733): /* Furutech ADL Stratos */
> >         case USB_ID(0x16d0, 0x09db): /* NuPrime Audio DAC-9 */
> > --
> > 2.18.0
> >
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] alsa/usb-audio: Generic DSD detection for Thesycon-based implementations
  2018-07-23  8:56 Yue Wang
@ 2018-07-23  9:31 ` Takashi Iwai
  0 siblings, 0 replies; 5+ messages in thread
From: Takashi Iwai @ 2018-07-23  9:31 UTC (permalink / raw)
  To: Yue Wang
  Cc: linux-kernel, alsa-devel, Kai-Heng Feng, Alberto Aguirre,
	Nobutaka Okabe, Ruslan Bilovol, Jaroslav Kysela, Jussi Laako,
	Daniel Mack

On Mon, 23 Jul 2018 10:56:46 +0200,
Yue Wang wrote:
> 
> 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>

Applied now, thanks.


Takashi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] alsa/usb-audio: Generic DSD detection for Thesycon-based implementations
@ 2018-07-23  8:56 Yue Wang
  2018-07-23  9:31 ` Takashi Iwai
  0 siblings, 1 reply; 5+ messages in thread
From: Yue Wang @ 2018-07-23  8:56 UTC (permalink / raw)
  To: linux-kernel
  Cc: yuleopen, Jaroslav Kysela, Takashi Iwai, Jussi Laako,
	Nobutaka Okabe, Kai-Heng Feng, Daniel Mack, Ruslan Bilovol,
	Alberto Aguirre, alsa-devel

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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-07-23  9:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-23  8:53 [PATCH] alsa/usb-audio: Generic DSD detection for Thesycon-based implementations Yue Wang
2018-07-23  8:54 ` Yue Wang
2018-07-23  8:56   ` Takashi Iwai
2018-07-23  8:56 Yue Wang
2018-07-23  9:31 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).