When I tried to turn off the primary modules driver in kernel sound card eg sdm660sndcard, and left only snd-aloop driver loaded in kernel
cat /proc/asound/cards
0 [Loopback ] Loopback - Loopback
Loopback 1
the application apk or any app didnot found any output, do error, or popup the did not found device error,
> you can open a PCM node for the sound card in HAL code.
how I do that ? change the PCM node to primay HAL, so override its location to eg.
X00TD:/ # ls -l /proc/asound/card0/
total 0
-r--r--r-- 1 root root 0 2020-10-29 14:03 cable#0
-r--r--r-- 1 root root 0 2020-10-29 14:03 cable#1
-r--r--r-- 1 root root 0 2020-10-29 14:03 id
dr-xr-xr-x 10 root root 0 2020-10-29 14:03 pcm0c
dr-xr-xr-x 10 root root 0 2020-10-29 14:03 pcm0p
dr-xr-xr-x 10 root root 0 2020-10-29 14:03 pcm1c
dr-xr-xr-x 10 root root 0 2020-10-29 14:03 pcm1p
-r--r--r-- 1 root root 16 2020-10-29 14:03 state