How to test Tvin(adv7180) in imx6 android

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

How to test Tvin(adv7180) in imx6 android

跳至解决方案
2,546 次查看
DeanHuang
Contributor III

Hi,

I would like to using adv7180 in mx6 custom board with android 4.2 system.

I had finished kernel patch and the video can be shown by using mxc_v4l2_tvin got from FSL Ubuntu BSP.

But I would like to use some android APK to test Tvin instead of mxc_v4l2_tvin. What APK can test TVin in android?

I'm using Camera to test TVin now and set front_camera is adv7180_decoder in init.rc, but it does not work.

What codes should be modified in android?

BRs

标签 (2)
0 项奖励
回复
1 解答
1,250 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Dean,

      The following is my advice :

1. Test TVIN

      It is correct for you to use camera.apk to test TVIN on android platform.

2. Camer working flow

adv7180 driver--->csi driver of i.mx6--->android HAL of camer.

3. The procedure of porting TVIN

(1)Adjust BSP file of your design.

On our Sabre-AI board, ADV7180 has been supported, you could open "myandroid/kernel_imx/arch/arm/mach-mx6/board-mx6q_sabreauto.c" and refer to code for adv7180, then add them into your BSP file.

(2)Adjust HAL code of camera

Hardware Abstract Layer of camera is at path "myandroid/hardware/imx/libcamera/", After reading corresponding code , you will know how to modify them for you design.

Please according to the above advice, and try to do porting !

Regards,

Weidong

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,251 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Dean,

      The following is my advice :

1. Test TVIN

      It is correct for you to use camera.apk to test TVIN on android platform.

2. Camer working flow

adv7180 driver--->csi driver of i.mx6--->android HAL of camer.

3. The procedure of porting TVIN

(1)Adjust BSP file of your design.

On our Sabre-AI board, ADV7180 has been supported, you could open "myandroid/kernel_imx/arch/arm/mach-mx6/board-mx6q_sabreauto.c" and refer to code for adv7180, then add them into your BSP file.

(2)Adjust HAL code of camera

Hardware Abstract Layer of camera is at path "myandroid/hardware/imx/libcamera/", After reading corresponding code , you will know how to modify them for you design.

Please according to the above advice, and try to do porting !

Regards,

Weidong

0 项奖励
回复