Using ASRC from within Android

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Using ASRC from within Android

1,657 次查看
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 项奖励
回复
1 回复

992 次查看
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 项奖励
回复