audio_format: basic support for DSD-over-USB

This commit is contained in:
Max Kellermann
2012-03-18 18:33:26 +01:00
parent 281b8714ef
commit 08ce24ec3f
11 changed files with 30 additions and 0 deletions

View File

@@ -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;