Skip to contentSkip to conversation

Support both DSD LE/BE Amanero firmware versions

PATCH Applied Jussi Laako 2 participants 2 messages Dec 17, 2016 – Dec 28, 2016 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Support both DSD LE/BE Amanero firmware versions

Add DSD support for both little endian (DSD_U32_LE) and big endian (DSD_U32_BE) version of the Amanero firmware.

---
 sound/usb/quirks.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
sound/usb/quirks.c +15 -0
index b3fd238..f5c68ea 100644
@@ -1359,6 +1359,21 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
 		if (fp->altsetting == 3)
 			return SNDRV_PCM_FMTBIT_DSD_U32_BE;
 		break;
+
+	/* Amanero Combo384 USB interface with native DSD support */
+	case USB_ID(0x16d0, 0x071a):
+		if (fp->altsetting == 2) {
+			switch (chip->dev->descriptor.bcdDevice) {
+			case 0x199:
+				return SNDRV_PCM_FMTBIT_DSD_U32_LE;
+			case 0x19b:
+				return SNDRV_PCM_FMTBIT_DSD_U32_BE;
+			default:
+				break;
+			}
+		}
+		break;
+
 	default:
 		break;
 	}
Signature · 1 line
2.7.4
Applied
#1 lore raw
Quoted 5 lines · Jussi Laako

Add DSD support for both little endian (DSD_U32_LE) and big endian (DSD_U32_BE) version of the Amanero firmware.

Applied, thanks.

Takashi

Quoted 33 lines
---
 sound/usb/quirks.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
sound/usb/quirks.c +15 -0
index b3fd238..f5c68ea 100644
@@ -1359,6 +1359,21 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
 		if (fp->altsetting == 3)
 			return SNDRV_PCM_FMTBIT_DSD_U32_BE;
 		break;
+
+	/* Amanero Combo384 USB interface with native DSD support */
+	case USB_ID(0x16d0, 0x071a):
+		if (fp->altsetting == 2) {
+			switch (chip->dev->descriptor.bcdDevice) {
+			case 0x199:
+				return SNDRV_PCM_FMTBIT_DSD_U32_LE;
+			case 0x19b:
+				return SNDRV_PCM_FMTBIT_DSD_U32_BE;
+			default:
+				break;
+			}
+		}
+		break;
+
 	default:
 		break;
 	}
Signature · 1 line
2.7.4