From d66ef7eac174b4a348b5809bc7a724df5c1d56f2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 4 Jul 2019 12:07:54 +0200 Subject: [PATCH] lib/alsa/HwSetup: don't reset dsd_mode Fixes regression by commit 28e07e900f397bb2146a02b166cbc00e8ad40a5d Closes https://github.com/MusicPlayerDaemon/MPD/issues/596 --- src/lib/alsa/HwSetup.cxx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib/alsa/HwSetup.cxx b/src/lib/alsa/HwSetup.cxx index a405f6bc1..e28458e69 100644 --- a/src/lib/alsa/HwSetup.cxx +++ b/src/lib/alsa/HwSetup.cxx @@ -94,10 +94,6 @@ TryFormatDsd(snd_pcm_t *pcm, snd_pcm_hw_params_t *hwparams, int err = TryFormatOrByteSwap(pcm, hwparams, fmt, params); #if defined(ENABLE_DSD) && defined(HAVE_ALSA_DSD_U32) - if (err == 0) { - params.dsd_mode = PcmExport::DsdMode::NONE; - } - if (err == -EINVAL && fmt == SND_PCM_FORMAT_DSD_U8) { /* attempt to switch to DSD_U32 */ fmt = IsLittleEndian()