-
The new helem must be tracked and old helem must be cleared to make the code work properly. Introduce the pointer to helem as the private value for melem and add the necessary code. Also, add a check for the duplicate mixer elements. The duplicate mixer element invokes the abort check in alsa-lib. Print a warning instead and handle the exit gracefully. Fixes: def8eb07 ("alsa-mixer: allow to re-attach the mixer control element") Signed-off-by: Jaroslav Kysela <perex@perex.cz> Part-of: <!730>
d1675df0