OSDN Git Service

mixer: simple - Fix "Capture Volume" and "Capture Switch" being seen as global controls
authorHans de Goede <hdegoede@redhat.com>
Tue, 4 May 2021 15:58:30 +0000 (17:58 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 4 May 2021 16:21:18 +0000 (18:21 +0200)
commitd00d7a184c82f8e6da61407fda896b0483637adb
tree00d622493629c8c4413fcd9a7d5c24494f25437b
parent06543e06e913bafb4e2766c244f07be6a232ac4e
mixer: simple - Fix "Capture Volume" and "Capture Switch" being seen as global controls

Fix the "Capture Volume" and "Capture Switch" exceptions no longer
working after commit 86b9c67774bc ("mixer: simple - Unify simple_none:
base_len() exception handling") because they were moved to after the
suffix checking, so they would be treated as CTL_GLOBAL_VOLUME resp.
CTL_GLOBAL_SWITCH based on their suffix before the exception check
has a chance to check for a match.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/mixer/simple_none.c