lib/alsa/HwSetup: don't reset dsd_mode

Fixes regression by commit 28e07e900f

Closes https://github.com/MusicPlayerDaemon/MPD/issues/596
This commit is contained in:
Max Kellermann 2019-07-04 12:07:54 +02:00
parent 0a32634d8f
commit d66ef7eac1

View File

@ -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()