modules kernel snd-aloop implementation in android audio HAL.

579 views
Skip to first unread message

Din Assegaf

unread,
Oct 27, 2020, 3:02:24 PM10/27/20
to android-platform
Hi,
how can we include snd-aloop modules which create new device in /proc/asound/ to be used in Android HAL audio, it seem we dont have enough documentation how to make this works. 

it is working in alsa enviroment, tinyplay and any other detect it. but not HAL audio environment.


kiran mardi

unread,
Oct 28, 2020, 1:54:52 PM10/28/20
to android-...@googlegroups.com
Hi,

it is working in alsa enviroment, tinyplay and any other detect it. but not HAL audio environment.
>>>>>>> what do you mean by HAL audio Environment?
               you can open a PCM node for the sound card in HAL code.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/a589abcc-002c-4576-ba53-3a2391ee1dc4n%40googlegroups.com.


--
regards,
Kiran Mardi

Din Assegaf

unread,
Oct 29, 2020, 11:58:47 AM10/29/20
to android-platform
On Thursday, 29 October 2020 at 00:54:52 UTC+7 mardi...@gmail.com wrote:
Hi,

it is working in alsa enviroment, tinyplay and any other detect it. but not HAL audio environment.
>>>>>>> what do you mean by HAL audio Environment?
               you can open a PCM node for the sound card in HAL code.

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




kiran mardi

unread,
Nov 5, 2020, 10:52:53 AM11/5/20
to android-...@googlegroups.com
  >  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.  

>>>> Yes, or you can also handle them as a new HAL to be loaded from audiopolicymanager.  

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages