From 2073a2c1b0978fb1b66803d5aa54b511d072530a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 14 Jan 2020 23:20:45 +0100 Subject: [PATCH] pcm/Dsd2Pcm: remove unused "lsbf" flag --- src/pcm/Dsd2Pcm.cxx | 2 -- src/pcm/Dsd2Pcm.hxx | 2 -- src/pcm/PcmDsd.cxx | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pcm/Dsd2Pcm.cxx b/src/pcm/Dsd2Pcm.cxx index 94cdacb90..0b99cc5e4 100644 --- a/src/pcm/Dsd2Pcm.cxx +++ b/src/pcm/Dsd2Pcm.cxx @@ -193,14 +193,12 @@ Dsd2Pcm::TranslateSample(size_t ffp, uint8_t src) noexcept void Dsd2Pcm::Translate(size_t samples, const uint8_t *gcc_restrict src, ptrdiff_t src_stride, - bool lsbf, float *dst, ptrdiff_t dst_stride) noexcept { size_t ffp = fifopos; while (samples-- > 0) { uint8_t bite1 = *src; src += src_stride; - if (lsbf) bite1 = bit_reverse(bite1); *dst = TranslateSample(ffp, bite1); dst += dst_stride; ffp = (ffp + 1) & FIFOMASK; diff --git a/src/pcm/Dsd2Pcm.hxx b/src/pcm/Dsd2Pcm.hxx index 3a35cc8d3..b36c7007e 100644 --- a/src/pcm/Dsd2Pcm.hxx +++ b/src/pcm/Dsd2Pcm.hxx @@ -66,13 +66,11 @@ public: * @param samples -- number of octets/samples to "translate" * @param src -- pointer to first octet (input) * @param src_stride -- src pointer increment - * @param lsbitfirst -- bitorder, 0=msb first, 1=lsbfirst * @param dst -- pointer to first float (output) * @param dst_stride -- dst pointer increment */ void Translate(size_t samples, const uint8_t *src, ptrdiff_t src_stride, - bool lsbitfirst, float *dst, ptrdiff_t dst_stride) noexcept; private: diff --git a/src/pcm/PcmDsd.cxx b/src/pcm/PcmDsd.cxx index 01097b33c..e742ed1fa 100644 --- a/src/pcm/PcmDsd.cxx +++ b/src/pcm/PcmDsd.cxx @@ -61,7 +61,7 @@ PcmDsd::ToFloat(unsigned channels, ConstBuffer src) noexcept dsd2pcm[c]->Translate(num_frames, src.data + c, channels, - false, dest + c, channels); + dest + c, channels); } return { dest, num_samples };