Skip to contentSkip to conversation

add native DSD support for XMOS based DACs

PATCH In review Jurgen Kramer 2 participants 3 messages Sep 5, 2014 – Sep 8, 2014 Sound

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 add native DSD support for XMOS based DACs

Add quirks for XMOS based DACs for native DSD playback support using the new DSD_U32_LE sample format.

This version adds native DSD support for:
- iFi Audio micro iDSD/nano iDSD (they use the same prod. id)
- DIYINHK USB to I2S/DSD converter

Changes from v2:
- fix and simplify switch statement
Changes from v1:
- use specific product id and alt setting per XMOS based device

---
 sound/usb/quirks.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
sound/usb/quirks.c +16 -0
index 19a921e..bd5a95e 100644
@@ -1174,5 +1174,21 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
 		}
 	}
 
+	/* XMOS based USB DACs */
+	switch(chip->usb_id) {
+	/* iFi Audio micro/nano iDSD */
+	case USB_ID(0x20b1, 0x3008):
+		if (fp->altsetting == 2)
+			return SNDRV_PCM_FMTBIT_DSD_U32_LE;
+		break;
+	/* DIYINHK DSD DXD 384kHz USB to I2S/DSD */
+	case USB_ID(0x20b1, 0x2009):
+		if (fp->altsetting == 3)
+			return SNDRV_PCM_FMTBIT_DSD_U32_LE;
+		break;
+	default:
+		break;
+	}
+
 	return 0;
 }
Signature · 1 line
1.9.3
#1 lore raw

At Fri, 5 Sep 2014 18:14:46 +0200,

Quoted 8 lines · Jurgen Kramer

Add quirks for XMOS based DACs for native DSD playback support using the new DSD_U32_LE sample format.

This version adds native DSD support for:
- iFi Audio micro iDSD/nano iDSD (they use the same prod. id)
- DIYINHK USB to I2S/DSD converter

Quoted 6 lines

Changes from v2:
- fix and simplify switch statement
Changes from v1:
- use specific product id and alt setting per XMOS based device

Applied with a minor coding style fix. At the next time, please run scripts/checkpatch.pl before the submission.

Also, don't forget to put maintainers to Cc, and align the subject line with the other commits for the target code.

thanks,

Takashi

Quoted 38 lines
---
 sound/usb/quirks.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
sound/usb/quirks.c +16 -0
index 19a921e..bd5a95e 100644
@@ -1174,5 +1174,21 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
 		}
 	}
 
+	/* XMOS based USB DACs */
+	switch(chip->usb_id) {
+	/* iFi Audio micro/nano iDSD */
+	case USB_ID(0x20b1, 0x3008):
+		if (fp->altsetting == 2)
+			return SNDRV_PCM_FMTBIT_DSD_U32_LE;
+		break;
+	/* DIYINHK DSD DXD 384kHz USB to I2S/DSD */
+	case USB_ID(0x20b1, 0x2009):
+		if (fp->altsetting == 3)
+			return SNDRV_PCM_FMTBIT_DSD_U32_LE;
+		break;
+	default:
+		break;
+	}
+
 	return 0;
 }
Signature · 6 lines
1.9.3

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#2 lore raw
Quoted 15 lines · Takashi Iwai

At Fri, 5 Sep 2014 18:14:46 +0200,

Quoted 13 lines · Jurgen Kramer

Add quirks for XMOS based DACs for native DSD playback support using the new DSD_U32_LE sample format.

This version adds native DSD support for:
- iFi Audio micro iDSD/nano iDSD (they use the same prod. id)
- DIYINHK USB to I2S/DSD converter

Changes from v2:
- fix and simplify switch statement
Changes from v1:
- use specific product id and alt setting per XMOS based device

Quoted 7 lines
Quoted 1 line

Applied with a minor coding style fix. At the next time, please run scripts/checkpatch.pl before the submission.

Also, don't forget to put maintainers to Cc, and align the subject line with the other commits for the target code.

Thanks, will do for new patches.

Jurgen