aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio_parser.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-03-18 18:33:26 +0100
committerMax Kellermann <max@duempel.org>2012-03-19 23:49:29 +0100
commit08ce24ec3fb094f653b3f3421388edec02f1dced (patch)
tree30a4bfc4a4e88521b48396396bcff3416a9b5211 /src/audio_parser.c
parent281b8714efbf930a80eb3ab6056240ae0882aa22 (diff)
downloadmpd-08ce24ec3fb094f653b3f3421388edec02f1dced.tar.gz
mpd-08ce24ec3fb094f653b3f3421388edec02f1dced.tar.xz
mpd-08ce24ec3fb094f653b3f3421388edec02f1dced.zip
audio_format: basic support for DSD-over-USB
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;