Commit 55708b39 authored by Max Kellermann's avatar Max Kellermann

audio_format: DSD_OVER_USB is padded to 32 bit

For simplicity, pad the dCS samples to 32 bit. Packed 24 bit samples are rarely used. This patch does not include a real code change, because there is no user of DSD_OVER_USB yet.
parent 8c5ebdff
......@@ -57,8 +57,8 @@ enum sample_format {
SAMPLE_FORMAT_DSD,
/**
* DSD packed in 24 bit samples (no padding), according to the
* dCS suggested standard:
* DSD packed in 24 bit samples (padded to 32 bit), according
* to the dCS suggested standard:
* http://www.dcsltd.co.uk/page/assets/DSDoverUSB.pdf
*/
SAMPLE_FORMAT_DSD_OVER_USB,
......@@ -249,12 +249,12 @@ sample_format_size(enum sample_format format)
return 2;
case SAMPLE_FORMAT_S24:
case SAMPLE_FORMAT_DSD_OVER_USB:
return 3;
case SAMPLE_FORMAT_S24_P32:
case SAMPLE_FORMAT_S32:
case SAMPLE_FORMAT_FLOAT:
case SAMPLE_FORMAT_DSD_OVER_USB:
return 4;
case SAMPLE_FORMAT_DSD:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment