ucm: fix the port / ucm device activation on boot
authorJaroslav Kysela <perex@perex.cz>
Tue, 31 Mar 2020 11:24:36 +0000 (13:24 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Thu, 9 Apr 2020 13:42:28 +0000 (16:42 +0300)
commitfc5f263e594cf5ecb7034fb54dadb286d2b4a810
tree7bceb68d13daefc2fb21933584b61648640619fb
parent77d00b1cce9bc695be6314ec15b12a4a0dcd08ee
ucm: fix the port / ucm device activation on boot

The UCM device must be activated using the pa_alsa_ucm_set_port()
call on boot (the sink creation time). In case when the
mixer controls are not defined for the application in the
UCM configuration, the mixer_handle is NULL.

Call the pa_alsa_ucm_set_port() before the mixer_handle check.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/modules/alsa/alsa-sink.c
src/modules/alsa/alsa-source.c