Dne 09. 12. 20 v 13:43 Hui Wang napsal(a): > After we change sth in the userspace audio stack like alsa-ucm or > pulseaudio, we want to perform remote audio auto test to verify if the > change introduce the regression or not, some of the tests are about > the defaut_sink/default_source or active_port switching, this needs > the audio jack state to be changed to trigger the userspace's audio > device switching. > > So far, there is no software ways to change the audio jack state, this > block the auto test. I'm not convinced to pollute the kernel space with this code. You can use LD_PRELOAD and simulate this via a shared library or the alsa-lib may be extended. Also, the first patch can be omitted if you just create another snd_jack_report() function for the user API and put the common code to the static function in jack.c. Jaroslav -- Jaroslav Kysela <perex@xxxxxxxx> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.