aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio_parser.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/audio_parser.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/audio_parser.c b/src/audio_parser.c
index 7061e0e00..4ee2bda0c 100644
--- a/src/audio_parser.c
+++ b/src/audio_parser.c
@@ -87,6 +87,12 @@ parse_sample_format(const char *src, bool mask,
return true;
}
+ if (memcmp(src, "dsdusb", 6) == 0) {
+ *sample_format_r = SAMPLE_FORMAT_DSD_OVER_USB;
+ *endptr_r = src + 6;
+ return true;
+ }
+
if (memcmp(src, "dsd", 3) == 0) {
if (src[3] == 'l') {
*sample_format_r = SAMPLE_FORMAT_DSD_LSBFIRST;