modules kernel snd-aloop implementation in android audio HAL.

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

modules kernel snd-aloop implementation in android audio HAL.

Din Assegaf
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.


--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/a589abcc-002c-4576-ba53-3a2391ee1dc4n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: modules kernel snd-aloop implementation in android audio HAL.

Kiran mardi
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.

On Wed, Oct 28, 2020 at 12:31 AM Din Assegaf <[hidden email]> wrote:
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.


--
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 [hidden email].
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

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/CABoxPgms5dQyXAJWnL13x%2BcEoLnaAz6eF1MuL_PeEsrv9%3DwGmg%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: modules kernel snd-aloop implementation in android audio HAL.

Din Assegaf


On Thursday, 29 October 2020 at 00:54:52 UTC+7 [hidden email] 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




--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/3a481e4d-19f7-4008-a62e-904735646a0cn%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: modules kernel snd-aloop implementation in android audio HAL.

Kiran mardi
  >  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.  

On Thu, Oct 29, 2020 at 9:28 PM Din Assegaf <[hidden email]> wrote:


On Thursday, 29 October 2020 at 00:54:52 UTC+7 [hidden email] 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




--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/3a481e4d-19f7-4008-a62e-904735646a0cn%40googlegroups.com.


--
regards,
Kiran Mardi

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/CABoxPgm7yqchq%2BwOu%2B%3DLdxBHHs9QBLWjwzDM39FORx2pXseRtQ%40mail.gmail.com.