Skip to content

Commit cf2d755

Browse files
Hu Kejunnumbqq
authored andcommitted
media: i2c: modify pixel rate of ov13850/ov4689
Change-Id: I4057edc2cb2292ef17f88c5a5787ec777deabe20 Signed-off-by: Hu Kejun <[email protected]>
1 parent 503b128 commit cf2d755

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

drivers/media/i2c/ov13850.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@
2424
#define V4L2_CID_DIGITAL_GAIN V4L2_CID_GAIN
2525
#endif
2626

27-
/* 45Mhz * 4 Binning */
28-
#define OV13850_PIXEL_RATE (45 * 1000 * 1000 * 4)
27+
#define OV13850_LINK_FREQ_300MHZ 300000000
28+
/* pixel rate = link frequency * 2 * lanes / BITS_PER_SAMPLE */
29+
#define OV13850_PIXEL_RATE (OV13850_LINK_FREQ_300MHZ * 2 * 2 / 10)
2930
#define OV13850_XVCLK_FREQ 24000000
3031

3132
#define CHIP_ID 0x00d850
@@ -589,7 +590,6 @@ static const struct ov13850_mode supported_modes[] = {
589590
},
590591
};
591592

592-
#define OV13850_LINK_FREQ_300MHZ 300000000
593593
static const s64 link_freq_menu_items[] = {
594594
OV13850_LINK_FREQ_300MHZ
595595
};

drivers/media/i2c/ov4689.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@
2424
#define V4L2_CID_DIGITAL_GAIN V4L2_CID_GAIN
2525
#endif
2626

27-
/* 45Mhz * 4 Binning */
28-
#define OV4689_PIXEL_RATE (45 * 1000 * 1000 * 4)
27+
#define OV4689_LINK_FREQ_500MHZ 500000000
28+
/* pixel rate = link frequency * 2 * lanes / BITS_PER_SAMPLE */
29+
#define OV4689_PIXEL_RATE (OV4689_LINK_FREQ_500MHZ * 2 * 2 / 10)
2930
#define OV4689_XVCLK_FREQ 24000000
3031

3132
#define CHIP_ID 0x004688
@@ -398,7 +399,6 @@ static const struct ov4689_mode supported_modes[] = {
398399
},
399400
};
400401

401-
#define OV4689_LINK_FREQ_500MHZ 500000000
402402
static const s64 link_freq_menu_items[] = {
403403
OV4689_LINK_FREQ_500MHZ
404404
};

0 commit comments

Comments
 (0)