audio: avoid latent media server crash during device is booting
Sometimes media server is killed by alsa_ucm during device is booting.
A alsa_ucm gets a index of "use case device" from get_use_case_index()
But, get_use_case_index() function can be returned a wrong value
(dev_index = -22 used index of dev_list array) at booting time.
This patch avoids latent media server crash causing abnormal value
as using index of dev_list array.
1 file changed