Camera image became fuzzy when config adv7182 as module

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

Camera image became fuzzy when config adv7182 as module

1,075 Views
yunyangsihai
Contributor II

Dear community:

   My platform:iMX6 Quad + android4.4.3(kernel-3.10.53) + adw10023(the same as adv7182, here we call it adv7182)

   We need to compatible adv7182 with max9288 on mainboard, and use one of them according to vehicle configure     when boot up. So, config them as modules, and set GPR register in adv7182 and max9288 drivers.

   1. We got good camera images when config adv7182 as builtin, but got fuzzy images when config it as module.

   2. The only difference is how config the adv7182. Pictures attached.adv7182-builtin-image-good.png

                                    adv7182-builtin-image-good.png

adv7182-module-image-fuzzy.png                              adv7182-builtin-image-fuzzy.png

   I have make a contrast between different config adout adv7182's registers and ipu parameters, and there is no    difference. What could be the cause? How to solve the problem?

Thanks a lot.

Labels (3)
0 Kudos
3 Replies

787 Views
yunyangsihai
Contributor II

Dears, could anyone give me some advice ??

0 Kudos

787 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello yang,

     See my advice for your questions, please!

-----------------------------------

1. In order to be compitible to other Chips, it is no problem to compile all drivers into linux kernel.

2. for your question:

It is obvious that camera is still unstable after loading it's drivers via insmod command, so image data received by CPU side is not correct.

So after loading it's driver, you should wait until it's stable, then enable it's data transmission.

-----------------------------------

对于camera,我们需要这样做:开的时候,camera先开;关的时候,camera后关。这是相对于CPU CSI和camera来说的。

从你的现象看,刚刚加载完驱动,camera马上就工作了,还没有稳定下来。一开始数据乱了,会一直乱下去的。

另外,你要兼容不同的芯片,全部的编译见内核,也没问题的。工作的时候,没有找到对应设备,也就是加不上驱动而已。找到哪个就加载哪个就行了。

Have a nice day!

NXP TIC weidong sun

0 Kudos

787 Views
yunyangsihai
Contributor II

孙工 您好:

   1.我们需要同时兼容adv7182 (parallel) 和 gmsl max9288 (mipi)两种硬件,验证了下,两种硬件的驱动同时builtin到kernel时,capture设备无法正常工作,只有后加载的driver可以工作。

2. adv7182驱动配置成module,camera获取图像时,adv7182寄存器状态是正常in lock的,我们对比了 配置成module 和 builtin时adv7182所有寄存器的值,是相同的。

3. camera是先上电的。

4. adv7182 配置成module时,通过free-run模式验证7182直接输出的pattern (color bar 等图像)是正常的。

谢谢

0 Kudos