From e58bd6762f726872efa0b5a377f7f3f891d08ad1 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 7 Mar 2008 17:00:45 +0100 Subject: [PATCH] Fix device number assignment in hints Handle the device number properly if given in hints. The current code resets the device number to -1 wrongly. --- src/control/namehint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/control/namehint.c b/src/control/namehint.c index 11adcaa1..d62830bd 100644 --- a/src/control/namehint.c +++ b/src/control/namehint.c @@ -304,8 +304,8 @@ static int try_config(struct hint_list *list, err = -EINVAL; goto __cleanup; } - list->device_input = -1; - list->device_output = -1; + list->device_input = dev; + list->device_output = dev; } if (snd_config_search(cfg, "device_input", &n) >= 0) { if (snd_config_get_integer(n, &list->device_input) < 0) { -- 2.47.1