All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ALSA: usb-audio: DSD auto-detection for Playback Designs
@ 2019-08-27 21:08 Jussi Laako
  2019-08-27 21:08 ` [PATCH 2/2] ALSA: usb-audio: Update DSD support quirks for Oppo and Rotel Jussi Laako
  2019-08-28  6:03 ` [PATCH 1/2] ALSA: usb-audio: DSD auto-detection for Playback Designs Takashi Iwai
  0 siblings, 2 replies; 4+ messages in thread
From: Jussi Laako @ 2019-08-27 21:08 UTC (permalink / raw)
  To: alsa-devel; +Cc: tiwai, Jussi Laako

Add DSD support auto-detection for newer Playback Designs devices. Older
device generations have a different USB interface implementation.

Keep the auto-detection VID whitelist sorted.

Signed-off-by: Jussi Laako <jussi@sonarnerd.net>
---
 sound/usb/quirks.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
index 7e9735aa7ac9..79fb24843d5b 100644
--- a/sound/usb/quirks.c
+++ b/sound/usb/quirks.c
@@ -1566,7 +1566,8 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
 	struct usb_interface *iface;
 
 	/* Playback Designs */
-	if (USB_ID_VENDOR(chip->usb_id) == 0x23ba) {
+	if (USB_ID_VENDOR(chip->usb_id) == 0x23ba &&
+	    USB_ID_PRODUCT(chip->usb_id) < 0x0110) {
 		switch (fp->altsetting) {
 		case 1:
 			fp->dsd_dop = true;
@@ -1654,8 +1655,9 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
 	 * from XMOS/Thesycon
 	 */
 	switch (USB_ID_VENDOR(chip->usb_id)) {
-	case 0x20b1:  /* XMOS based devices */
 	case 0x152a:  /* Thesycon devices */
+	case 0x20b1:  /* XMOS based devices */
+	case 0x23ba:  /* Playback Designs */
 	case 0x25ce:  /* Mytek devices */
 	case 0x2ab6:  /* T+A devices */
 		if (fp->dsd_raw)
-- 
2.17.1

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

* [PATCH 2/2] ALSA: usb-audio: Update DSD support quirks for Oppo and Rotel
  2019-08-27 21:08 [PATCH 1/2] ALSA: usb-audio: DSD auto-detection for Playback Designs Jussi Laako
@ 2019-08-27 21:08 ` Jussi Laako
  2019-08-28  6:03   ` Takashi Iwai
  2019-08-28  6:03 ` [PATCH 1/2] ALSA: usb-audio: DSD auto-detection for Playback Designs Takashi Iwai
  1 sibling, 1 reply; 4+ messages in thread
From: Jussi Laako @ 2019-08-27 21:08 UTC (permalink / raw)
  To: alsa-devel; +Cc: tiwai, Jussi Laako

Oppo has issued firmware updates that change alt setting used for DSD
support. However, these devices seem to support auto-detection, so
support is moved from explicit whitelisting to auto-detection.

Also Rotel devices have USB interfaces that support DSD with
auto-detection.

Signed-off-by: Jussi Laako <jussi@sonarnerd.net>
---
 sound/usb/quirks.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
index 79fb24843d5b..91ce7d5eb0f2 100644
--- a/sound/usb/quirks.c
+++ b/sound/usb/quirks.c
@@ -1584,9 +1584,6 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
 	/* XMOS based USB DACs */
 	switch (chip->usb_id) {
 	case USB_ID(0x1511, 0x0037): /* AURALiC VEGA */
-	case USB_ID(0x22d9, 0x0416): /* OPPO HA-1 */
-	case USB_ID(0x22d9, 0x0436): /* OPPO Sonica */
-	case USB_ID(0x22d9, 0x0461): /* OPPO UDP-205 */
 	case USB_ID(0x2522, 0x0012): /* LH Labs VI DAC Infinity */
 	case USB_ID(0x2772, 0x0230): /* Pro-Ject Pre Box S2 Digital */
 		if (fp->altsetting == 2)
@@ -1600,7 +1597,6 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
 	case USB_ID(0x16d0, 0x0733): /* Furutech ADL Stratos */
 	case USB_ID(0x16d0, 0x09db): /* NuPrime Audio DAC-9 */
 	case USB_ID(0x1db5, 0x0003): /* Bryston BDA3 */
-	case USB_ID(0x22d9, 0x0426): /* OPPO HA-2 */
 	case USB_ID(0x22e1, 0xca01): /* HDTA Serenade DSD */
 	case USB_ID(0x249c, 0x9326): /* M2Tech Young MkIII */
 	case USB_ID(0x2616, 0x0106): /* PS Audio NuWave DAC */
@@ -1657,8 +1653,10 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
 	switch (USB_ID_VENDOR(chip->usb_id)) {
 	case 0x152a:  /* Thesycon devices */
 	case 0x20b1:  /* XMOS based devices */
+	case 0x22d9:  /* Oppo */
 	case 0x23ba:  /* Playback Designs */
 	case 0x25ce:  /* Mytek devices */
+	case 0x278b:  /* Rotel? */
 	case 0x2ab6:  /* T+A devices */
 		if (fp->dsd_raw)
 			return SNDRV_PCM_FMTBIT_DSD_U32_BE;
-- 
2.17.1

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

* Re: [PATCH 1/2] ALSA: usb-audio: DSD auto-detection for Playback Designs
  2019-08-27 21:08 [PATCH 1/2] ALSA: usb-audio: DSD auto-detection for Playback Designs Jussi Laako
  2019-08-27 21:08 ` [PATCH 2/2] ALSA: usb-audio: Update DSD support quirks for Oppo and Rotel Jussi Laako
@ 2019-08-28  6:03 ` Takashi Iwai
  1 sibling, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2019-08-28  6:03 UTC (permalink / raw)
  To: Jussi Laako; +Cc: alsa-devel

On Tue, 27 Aug 2019 23:08:46 +0200,
Jussi Laako wrote:
> 
> Add DSD support auto-detection for newer Playback Designs devices. Older
> device generations have a different USB interface implementation.
> 
> Keep the auto-detection VID whitelist sorted.
> 
> Signed-off-by: Jussi Laako <jussi@sonarnerd.net>

Applied, thanks.


Takashi

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

* Re: [PATCH 2/2] ALSA: usb-audio: Update DSD support quirks for Oppo and Rotel
  2019-08-27 21:08 ` [PATCH 2/2] ALSA: usb-audio: Update DSD support quirks for Oppo and Rotel Jussi Laako
@ 2019-08-28  6:03   ` Takashi Iwai
  0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2019-08-28  6:03 UTC (permalink / raw)
  To: Jussi Laako; +Cc: alsa-devel

On Tue, 27 Aug 2019 23:08:47 +0200,
Jussi Laako wrote:
> 
> Oppo has issued firmware updates that change alt setting used for DSD
> support. However, these devices seem to support auto-detection, so
> support is moved from explicit whitelisting to auto-detection.
> 
> Also Rotel devices have USB interfaces that support DSD with
> auto-detection.
> 
> Signed-off-by: Jussi Laako <jussi@sonarnerd.net>

Applied, thanks.


Takashi

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

end of thread, other threads:[~2019-08-28  6:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-27 21:08 [PATCH 1/2] ALSA: usb-audio: DSD auto-detection for Playback Designs Jussi Laako
2019-08-27 21:08 ` [PATCH 2/2] ALSA: usb-audio: Update DSD support quirks for Oppo and Rotel Jussi Laako
2019-08-28  6:03   ` Takashi Iwai
2019-08-28  6:03 ` [PATCH 1/2] ALSA: usb-audio: DSD auto-detection for Playback Designs Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.