diff --git a/src/lib/alsa/AllowedFormat.cxx b/src/lib/alsa/AllowedFormat.cxx index 1dc0d065d..b89efe7e9 100644 --- a/src/lib/alsa/AllowedFormat.cxx +++ b/src/lib/alsa/AllowedFormat.cxx @@ -30,12 +30,7 @@ namespace Alsa { AllowedFormat::AllowedFormat(StringView s) { #ifdef ENABLE_DSD - const StringView dop_tail("=dop"); - if (s.EndsWith(dop_tail)) { - dop = true; - s.size -= dop_tail.size; - } else - dop = false; + dop = s.RemoveSuffix("=dop"); #endif char buffer[64];