Using ASRC from within Android

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using ASRC from within Android

1,135 Views
josephpentland
Contributor I

Hello,

We are trying to use the ASRC for clock domain synchronization within a daemon in the Android system. This is a similar use-case as in this post: i.MX6 ASRC audio support

Here we see that a plugin for ALSA can be used to configure the ASRC. However, on Android we only have tinyALSA, which I don't think supports these features. Is there some way this can be integrated with tinyALSA? Or perhaps there could be a setup with ioctl to the ASRC to configure it from there?

Best Regards,

Joe Pentland

0 Kudos
1 Reply

470 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi,Joseph,

     ALSA in android does't use alsa config to control sound card like in linux. It's controls are all in ALSA HAL (tinyalsa._hal.c). So if you want to expend functions, you should add code in ALSA HAL .

     ALSA in android also uses alsa-lib , So your expened function should also be based on API in alsa-lib.

Regards,

Weidong

0 Kudos