pcm_export: implement 24 to 32 bit conversion

For 32 bit DSD-over-USB support.
This commit is contained in:
Max Kellermann
2012-03-27 01:01:16 +02:00
parent d271dd2cce
commit ddd4f675a2
4 changed files with 26 additions and 4 deletions

View File

@@ -634,7 +634,7 @@ alsa_setup_or_dsd(struct alsa_data *ad, struct audio_format *audio_format,
pcm_export_open(&ad->export,
audio_format->format, audio_format->channels,
dsd_usb, packed, reverse_endian);
dsd_usb, false, packed, reverse_endian);
return true;
}

View File

@@ -540,7 +540,7 @@ oss_probe_sample_format(int fd, enum sample_format sample_format,
*oss_format_r = oss_format;
#ifdef AFMT_S24_PACKED
pcm_export_open(export, sample_format, 0, false,
pcm_export_open(export, sample_format, 0, false, false,
oss_format == AFMT_S24_PACKED,
oss_format == AFMT_S24_PACKED &&
G_BYTE_ORDER != G_LITTLE_ENDIAN);