Problem with adding Saa7113 video decoder driver

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

Problem with adding Saa7113 video decoder driver

992 Views
majuani
Contributor III

Hello, I have imx6q, sabresd with Android.

trying to add the video decoder driver for saa7113. 

The driver exist in folder driver/media/video ....

I add it to makefile

Then add section in board-mx6q_sabresd.c

i2c_board_info mxc_i2c1_board_info[] __initdata

{
 I2C_BOARD_INFO("saa7115", 0x25),
 .type = "saa7113",
 .platform_data = (void *) &camera_data_saa7115,
 },

static struct fsl_mxc_camera_platform_data camera_data_saa7115 =
{
 .mclk = 24000000,
 .mclk_source = 0,
 .csi = 0,
 .io_init = mx6q_csi0_io_init,
 .pwdn = mx6q_csi0_cam_powerdown,
};

Disabled the ov3640 section.

On booting i see this :

i2c /dev entries driver
Linux video capture interface: v2.00
i2c-core: driver [tuner] using legacy suspend method
i2c-core: driver [tuner] using legacy resume method
saa7115 1-0025: saa7113 found (1f7113d0e100000) @ 0x4a (imx-i2c)
i2c-core: driver [msp3400] using legacy suspend method
i2c-core: driver [msp3400] using legacy resume method
mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video16
mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video17

But then i try to open camera:

ERROR: v4l2 capture: slave not found!
ERROR: v4l2 capture: slave not found!
ERROR: v4l2 capture: slave not found!
ERROR: v4l2 capture: slave not found!

I have:

Video 0

Video 1

Video 16 

Video 17

They all not working, only if i enable the ov3640, the video0 working.

 

Thank's for any tips or help.

Andy

2 Replies

532 Views
igorpadykov
NXP Employee
NXP Employee

Hi Andy

for SAA7113 mxc_v4l2_tvin should be used, like in case for ADV7180.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

532 Views
igorpadykov
NXP Employee
NXP Employee

mxc_v4l2_tvin should be used not v4l2 capture.

If you are using VIA BSP suggest to contact embedded@via.com.tw

and ask support from them, as every BSP vendor supports own BSP.

Also as saa7113 is not supported in NXP official BSPs,  one can apply to NXP Professional Services:

http://www.nxp.com/support/nxp-professional-services:PROFESSIONAL-SERVICE

Best regards
igor

0 Kudos