From 55708b39c3434771e62b4cd474365be8d52d03db Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 21 Mar 2012 19:41:41 +0100 Subject: 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. --- src/audio_format.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/audio_format.h') diff --git a/src/audio_format.h b/src/audio_format.h index fc4b8588..7170b975 100644 --- a/src/audio_format.h +++ b/src/audio_format.h @@ -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: -- cgit v1.2.3