pcm_export: support packing SAMPLE_FORMAT_DSD_OVER_USB

It's a padded 24 bit format.
This commit is contained in:
Max Kellermann 2012-03-27 00:37:04 +02:00
parent ec61b3a5fc
commit a0730cf264

View File

@ -40,7 +40,7 @@ pcm_export_open(struct pcm_export_state *state,
enum sample_format sample_format,
bool pack, bool reverse_endian)
{
state->pack24 = pack && sample_format == SAMPLE_FORMAT_S24_P32;
state->pack24 = pack && (sample_format == SAMPLE_FORMAT_S24_P32 || sample_format == SAMPLE_FORMAT_DSD_OVER_USB);
state->reverse_endian = 0;
if (reverse_endian) {