From: Jaroslav Kysela Date: Fri, 27 Mar 2020 10:59:53 +0000 (+0100) Subject: namehint: remember the direction from the upper levels X-Git-Tag: v1.2.3~85 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=d434638a683c01bd6decf8f41863044055237a50;p=alsa-lib.git namehint: remember the direction from the upper levels The current code resets the direction info for each level. Simply remove this code. Fixes: https://github.com/alsa-project/alsa-lib/issues/39 Signed-off-by: Jaroslav Kysela --- diff --git a/src/control/namehint.c b/src/control/namehint.c index 169bd421..ecd470f3 100644 --- a/src/control/namehint.c +++ b/src/control/namehint.c @@ -270,8 +270,6 @@ static int try_config(snd_config_t *config, if (snd_config_search(cfg1, "type", &cfg) >= 0 && snd_config_get_string(cfg, &str) >= 0 && strcmp(str, "hw") == 0) { - list->device_input = -1; - list->device_output = -1; if (snd_config_search(cfg1, "device", &cfg) >= 0) { if (snd_config_get_integer(cfg, &dev) < 0) { SNDERR("(%s) device must be an integer", buf);