How to properly get a pal image using the tp2854 module?

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

How to properly get a pal image using the tp2854 module?

833 Views
tirax72
Contributor I

I use this module and a Pal camera
But the image that is displayed goes up and is not displayed correctly.. I think that changes should be made on the driver and this will change?-->
static struct regval_list sensor_720p25_regs[] = {

Does anyone know how to fix it?

0 Kudos
Reply
2 Replies

795 Views
ramprakash08
Contributor IV

It seems like you're having trouble with the image display when using a PAL camera with the tp2854 module. The issue might be related to the configuration of the module. You're correct in thinking that changes might need to be made in the driver.

Based on your description, it seems like you're using the 720p25 setting. PAL standard, however, operates at a resolution of 576i50. Therefore, you might need to adjust your settings to match the PAL standard.

Here's a code snippet that might help:

 static struct regval_list sensor_pal_regs[] = {     // Add your PAL configuration here }; 

Please replace the comment with the appropriate configuration for your PAL camera. If you're unsure about the correct configuration, you might want to refer to the documentation of your camera or the tp2854 module.

After making these changes, you should be able to get a correct image from your PAL camera. If you're still experiencing issues, it might be helpful to provide more details about your setup, such as the specific model of your camera and any error messages you're seeing.

0 Kudos
Reply

729 Views
tirax72
Contributor I

Thank you for your answer
But I don't understand this piece of code and I don't know what to write for the clarity of the pal image
My code snippet now looks like this: -->
static struct regval_list sensor_720p25_regs[] = {
//common_init
{0x40, 0x08},/* Disable MIPI CSI2 output */
{0x23, 0x02},
{0x40, 0x04},
{0x4e, 0x00},

//CH_ALL=4, HD25=2, STD_TVI=0, MIPI_4CH4LANE_297M=0
{0x40, 0x04},

{0xf5, 0xff},

{0x01, 0xff},
{0x02, 0x42},
{0x07, 0xc0},
{0x0b, 0xc0},
{0x0c, 0x13},
{0x0d, 0x50},

{0x15, 0x13},
{0x16, 0x15},
{0x17, 0x00},
{0x18, 0x19},
{0x19, 0xd0},
{0x1a, 0x25},
{0x1c, 0x07},/*1280*720, 25fps*/
{0x1d, 0xbc},

{0x20, 0x30},
{0x21, 0x84},
{0x22, 0x36},
{0x23, 0x3c},

{0x2b, 0x60},
{0x2c, 0x0a},
{0x2d, 0x30},
{0x2e, 0x70},

{0x30, 0x48},
{0x31, 0xbb},
{0x32, 0x2e},
{0x33, 0x90},

{0x35, 0x25},
{0x38, 0x00},
{0x39, 0x18},

//STD_HDA == std
{0x02, 0x46},
{0x0d, 0x71},
{0x20, 0x40},
{0x21, 0x46},
{0x25, 0xfe},
{0x26, 0x01},
{0x2c, 0x3a},
{0x2d, 0x5a},
{0x2e, 0x40},
{0x30, 0x9e},
{0x31, 0x20},
{0x32, 0x10},
{0x33, 0x90},
{0x2a, 0x34},

//mipi_out
// mipi setting
{0x40, 0x08},/*MIPI page*/
{0x01, 0xf8},
{0x02, 0x01},
{0x08, 0x0f},
{0x10, 0x20},
{0x11, 0x47},
{0x12, 0x54},
{0x13, 0xef},

//MIPI_4CH4LANE_297M == output
{0x20, 0x44},
{0x34, 0xe4},
{0x14, 0x47},
{0x15, 0x01},
{0x25, 0x04},
{0x26, 0x03},
{0x27, 0x09},
{0x29, 0x02},
{0x0a, 0x80},
{0x33, 0x0f},
{0x33, 0x00},
{0x14, 0xc7},
{0x14, 0x47},

//Enable MIPI CSI2 output
{0x23, 0x00},

};
Do you know what I should write?

0 Kudos
Reply