From b513d79c6772f40ae06229e0e68a4df4130c6a07 Mon Sep 17 00:00:00 2001 From: Julien Gainza Date: Thu, 23 Jul 2026 00:57:45 +0200 Subject: [PATCH] Peppy: guard the meter against native DSD (temporary until alsa-lib is fixed) Since the softvol control binds to the hardware mixer element, the Peppy chain is transparent on hardware-volume DACs. Correct - but it exposes a latent alsa-lib defect: the meter's s16 scope has no DSD conversion and aborts the caller (pcm_meter.c:1222), killing MPD whenever Peppy is enabled with a DSD-capable DAC, hardware volume, dop "no" and a DSD file. Before that fix the stray softvol refused DSD by accident, so MPD always converted upstream and the bug never fired. Restore that behaviour deliberately: a unity route above the meter only negotiates linear PCM, so native DSD is refused and MPD falls back to dsd2pcm. Unity gain, no control created, bit-transparent for PCM, DoP markers pass unharmed. Remove when a meter-fixed alsa-lib ships. Co-Authored-By: Claude Opus 4.8 --- etc/alsa/conf.d/peppy.conf.hide | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/etc/alsa/conf.d/peppy.conf.hide b/etc/alsa/conf.d/peppy.conf.hide index bd5db7638..523687da5 100755 --- a/etc/alsa/conf.d/peppy.conf.hide +++ b/etc/alsa/conf.d/peppy.conf.hide @@ -3,7 +3,23 @@ ######################################### pcm.peppy { type plug -slave.pcm "softvol_and_peppyalsa" +slave.pcm "peppy_pcmguard" +} + +# Only negotiates linear PCM: native DSD is refused here so the player +# converts upstream instead of reaching the meter, whose s16 scope +# aborts on DSD. Unity gain, bit-transparent. Remove when alsa-lib +# pcm_meter handles DSD (alsa-project/alsa-lib#516/#517). +pcm.peppy_pcmguard { +type route +slave { +pcm "softvol_and_peppyalsa" +channels 2 +} +ttable { +0.0 = 1 +1.1 = 1 +} } pcm.softvol_and_peppyalsa {