OSDN Git Service

conf: fix load_for_all_cards()
authorJaroslav Kysela <perex@perex.cz>
Wed, 2 Jun 2021 06:49:32 +0000 (08:49 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 2 Jun 2021 06:49:32 +0000 (08:49 +0200)
commitddfc32abf5697de1618b9e7ffdf57a0f97013090
tree5b58923adc8f550ca42a750a84543b3b7f92e6b8
parent9f16fa572947044468695e956a654d4ea07f264f
conf: fix load_for_all_cards()

The 63f7745b commit is loading the driver specific configuration
multiple times which ends with the array merges (see the bug).

Introduce the loaded compound which traces the already loaded
driver configurations and skip the multiple load requests.

Fixes: https://github.com/alsa-project/alsa-lib/issues/143
Fixes: 63f7745b ("conf: extend load_for_all_cards hook (id/value table)")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/conf.c