implement the flash light function of camera.

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

implement the flash light function of camera.

2,053 Views
ninglu
Contributor II

We are using imx6-sabresd board ,and system is android 4.4.2.Using ov5640 camera.
  We want to implement the flash light function of camera.
  no we have add lm4642 driver to our kernal.
  and i found the flash light operation in the camera2.apk source code,but when we open the apk on our board ,i can't find the flash light key.
  Can you tell me what I need to do next ?

Tags (1)
0 Kudos
Reply
8 Replies

994 Views
deepakbeniya
Contributor III

Hi @ninglu have you added the flashlight ?
Could you provide the solution for this , like how you have added and what modifications you have done to achive it.

Thanks & Regards
Deepak Beniya

0 Kudos
Reply

1,590 Views
art
NXP Employee
NXP Employee

The i.MX6 SABRE SD board doesn't physically have any flash light hardware on it, so, first, you have to adapt any flash light hardware to the board and then adapt the appropriate driver for it.


Have a great day,
Artur

0 Kudos
Reply

1,590 Views
ninglu
Contributor II

Yes, we have added a flash light on the hardware, and add a flashlight driver chip lm3642, and also added a chip linux driver on the system。

The problem we have now is how to modify the Hal layer, so that the application layer and the bottom layer can be connectedd to achieve the purpose of controlling the flash from the application layer.

0 Kudos
Reply

1,590 Views
art
NXP Employee
NXP Employee

Do you mean Linux or Android driver? Who is the driver provider?

0 Kudos
Reply

1,590 Views
ninglu
Contributor II

we add linux driver for lm3642,This drive is what I found on the Internet.

0 Kudos
Reply

1,590 Views
art
NXP Employee
NXP Employee

But you said that your OS is Android, not Linux. A Linux drivers do not provide the appropriate API for Android OS. You have to modify it according to the general Android API structure. You can find more information on it on the Android Developer web site:

Develop Apps | Android Developers

Best Regards,

Artur

0 Kudos
Reply

1,590 Views
ninglu
Contributor II

You mean the driveri downloaded can not be directly used in the

android, I have to modify it to the general Android API structure.right?

Can you give me any flash control chip driver on Android ?

0 Kudos
Reply

1,590 Views
art
NXP Employee
NXP Employee

Q. You mean the driveri downloaded can not be directly used in the android, I have to modify it to the general Android API structure.right?

A. Yes, this is right.

Q. Can you give me any flash control chip driver on Android ?

A. Unfortunately, no, I don't have any here in my hands.

Best Regards,

Artur

0 Kudos
Reply