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.
This commit is contained in:
Max Kellermann 2012-03-21 19:41:41 +01:00
parent 8c5ebdff36
commit 55708b39c3

View File

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