aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_convert.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-03-21 09:06:48 +0100
committerMax Kellermann <max@duempel.org>2012-03-21 09:06:48 +0100
commit9c6a4505c8a8ae0b6d79e2b1e0a68d6d3c5f6c67 (patch)
treed17ab70b3dfa5f84565a546e1128a0eab9da1508 /src/pcm_convert.c
parent238c3adad1724054b454f76857307e368e519585 (diff)
downloadmpd-9c6a4505c8a8ae0b6d79e2b1e0a68d6d3c5f6c67.tar.gz
mpd-9c6a4505c8a8ae0b6d79e2b1e0a68d6d3c5f6c67.tar.xz
mpd-9c6a4505c8a8ae0b6d79e2b1e0a68d6d3c5f6c67.zip
audio_format: remove the format SAMPLE_FORMAT_DSD_LSBFIRST
This format is unused since the DSDIFF decoder plugin now reverses the bit order.
Diffstat (limited to 'src/pcm_convert.c')
-rw-r--r--src/pcm_convert.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/pcm_convert.c b/src/pcm_convert.c
index 2dfd3c734..4721d2496 100644
--- a/src/pcm_convert.c
+++ b/src/pcm_convert.c
@@ -81,7 +81,6 @@ pcm_convert_channels(struct pcm_buffer *buffer, enum sample_format format,
case SAMPLE_FORMAT_S24:
case SAMPLE_FORMAT_FLOAT:
case SAMPLE_FORMAT_DSD:
- case SAMPLE_FORMAT_DSD_LSBFIRST:
case SAMPLE_FORMAT_DSD_OVER_USB:
g_set_error(error_r, pcm_convert_quark(), 0,
"Channel conversion not implemented for format '%s'",
@@ -408,14 +407,11 @@ pcm_convert(struct pcm_convert_state *state,
}
struct audio_format float_format;
- if (src_format->format == SAMPLE_FORMAT_DSD ||
- src_format->format == SAMPLE_FORMAT_DSD_LSBFIRST) {
+ if (src_format->format == SAMPLE_FORMAT_DSD) {
size_t f_size;
- const bool lsbfirst =
- src_format->format == SAMPLE_FORMAT_DSD_LSBFIRST;
const float *f = pcm_dsd_to_float(&state->dsd,
src_format->channels,
- lsbfirst, src, src_size,
+ false, src, src_size,
&f_size);
if (f == NULL) {
g_set_error_literal(error_r, pcm_convert_quark(), 0,