aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/s5ka3dfx.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/s5ka3dfx.h')
-rwxr-xr-x[-rw-r--r--]drivers/media/video/s5ka3dfx.h190
1 files changed, 171 insertions, 19 deletions
diff --git a/drivers/media/video/s5ka3dfx.h b/drivers/media/video/s5ka3dfx.h
index 22fb6ff..7bf2a8e 100644..100755
--- a/drivers/media/video/s5ka3dfx.h
+++ b/drivers/media/video/s5ka3dfx.h
@@ -93,9 +93,9 @@ struct s5ka3dfx_reg s5ka3dfx_init_reg[] = {
{ 0x65, 0x01 },
{ 0x66, 0xE7 },
- { 0x6d, 0x55 },
- { 0x6e, 0x90 },
- { 0x6f, 0x90 },
+ { 0x6d, 0x56 },
+ { 0x6e, 0xC0 },
+ { 0x6f, 0xC0 },
{ 0x4c, 0x00 },
{ 0x4d, 0x9e },
@@ -111,7 +111,7 @@ struct s5ka3dfx_reg s5ka3dfx_init_reg[] = {
{ 0x33, 0x80 },
{ 0x34, 0x79 },
- { 0x36, 0x38 },
+ { 0x36, 0x3A }, /*39, 3a, N.L. ST */
{ 0x37, 0x38 },
{ 0x6a, 0x00 },
@@ -141,9 +141,9 @@ struct s5ka3dfx_reg s5ka3dfx_init_reg[] = {
{ 0x1d, 0x4f },
{ 0x1e, 0x68 },
- { 0x1f, 0x44 },
- { 0x20, 0x75 },
- { 0x21, 0x4d },
+ { 0x1f, 0x42 }, /*44, Indoor Rgain Min */
+ { 0x20, 0x7A }, /*75 82, 8a, Indoor Bgain Max */
+ { 0x21, 0x4D }, /* 4Indoor Bgain Min */
{ 0x3a, 0x13 },
{ 0x3b, 0x3c },
@@ -406,7 +406,7 @@ struct s5ka3dfx_reg s5ka3dfx_init_reg[] = {
{ 0x54, 0x83 },
{ 0xef, 0x03 },
{ 0x6e, 0x40 },
- { 0x6f, 0x6A },
+ { 0x6f, 0x50 }, /* dgain for shutter 700lux*/
{ 0xef, 0x00 },
{ 0x48, 0x00 },
@@ -580,6 +580,8 @@ struct s5ka3dfx_reg s5ka3dfx_init_reg[] = {
{ 0x48, 0x52 },
{ 0x49, 0x03 },
{ 0x4A, 0xFF },
+ { 0xEF, 0x03 },
+ { 0x00, 0x03 },
};
/*
@@ -904,7 +906,7 @@ struct s5ka3dfx_reg s5ka3dfx_init_vt_reg[] = {
{ 0x53, 0xbb },
{ 0x54, 0x8a },
{ 0xef, 0x03 },
- { 0x70, 0x01 },
+ { 0x70, 0x00 },
{ 0xef, 0x00 },
{ 0x48, 0x00 },
{ 0x49, 0x00 },
@@ -1083,19 +1085,19 @@ struct s5ka3dfx_reg s5ka3dfx_init_vt_reg[] = {
/* EV bias */
struct s5ka3dfx_reg s5ka3dfx_ev_m5[] = {
{ 0xef, 0x03 },
- { 0x31, 0xb0 },
+ { 0x31, 0xc0 },
{ 0x32, 0x98 },
};
struct s5ka3dfx_reg s5ka3dfx_ev_m4[] = {
{ 0xef, 0x03 },
- { 0x31, 0xa0 },
+ { 0x31, 0xA5 },
{ 0x32, 0x90 },
};
struct s5ka3dfx_reg s5ka3dfx_ev_m3[] = {
{ 0xef, 0x03 },
- { 0x31, 0x98 },
+ { 0x31, 0x9E },
{ 0x32, 0x88 },
};
@@ -1107,31 +1109,31 @@ struct s5ka3dfx_reg s5ka3dfx_ev_m2[] = {
struct s5ka3dfx_reg s5ka3dfx_ev_m1[] = {
{ 0xef, 0x03 },
- { 0x31, 0x88 },
+ { 0x31, 0x8A },
{ 0x32, 0x08 },
};
struct s5ka3dfx_reg s5ka3dfx_ev_default[] = {
{ 0xef, 0x03 },
{ 0x31, 0x00 },
- { 0x32, 0x10 },
+ { 0x32, 0x09 },
};
struct s5ka3dfx_reg s5ka3dfx_ev_p1[] = {
{ 0xef, 0x03 },
- { 0x31, 0x08 },
+ { 0x31, 0x0A },
{ 0x32, 0x20 },
};
struct s5ka3dfx_reg s5ka3dfx_ev_p2[] = {
{ 0xef, 0x03 },
- { 0x31, 0x10 },
+ { 0x31, 0x14 },
{ 0x32, 0x30 },
};
struct s5ka3dfx_reg s5ka3dfx_ev_p3[] = {
{ 0xef, 0x03 },
- { 0x31, 0x20 },
+ { 0x31, 0x1E },
{ 0x32, 0x38 },
};
@@ -1255,9 +1257,9 @@ struct s5ka3dfx_reg s5ka3dfx_wb_cloudy[] = {
{ 0xef, 0x03 },
{ 0x00, 0x85 },
{ 0xef, 0x00 },
- { 0x42, 0x6f },
+ { 0x42, 0x75 },
{ 0x43, 0x3d },
- { 0x44, 0x47 },
+ { 0x44, 0x42 },
};
/* Effect Setting */
@@ -1449,6 +1451,30 @@ struct s5ka3dfx_reg s5ka3dfx_fps_15[] = {
{ 0x67, 0xCF },
};
+struct s5ka3dfx_reg s5ka3dfx_fps_auto[] = {
+ { 0xEF, 0x03 },
+ { 0x5F, 0x03 },
+ { 0x60, 0x02 },
+ { 0x61, 0x0F },
+ { 0x62, 0x0C },
+ { 0x63, 0x01 },
+ { 0x64, 0xE7 },
+ { 0x65, 0x01 },
+ { 0x66, 0xE7 },
+ { 0x48, 0x00 },
+ { 0x49, 0x9E },
+ { 0x4C, 0x00 },
+ { 0x4D, 0x9E },
+ { 0xEF, 0x03 },
+ { 0x51, 0x10 },
+ { 0x52, 0x00 },
+ { 0x53, 0x00 },
+ { 0x54, 0x00 },
+ { 0x56, 0x01 },
+ { 0x57, 0x61 },
+ { 0x58, 0x25 },
+ { 0x67, 0xCF },
+};
struct s5ka3dfx_reg s5ka3dfx_vt_fps_7[] = {
{ 0xef, 0x03 },
{ 0x50, 0xd2 },
@@ -1536,4 +1562,130 @@ struct s5ka3dfx_reg s5ka3dfx_vt_fps_15[] = {
{ 0x67, 0xcf },
};
+struct s5ka3dfx_reg s5ka3dfx_vt_fps_auto[] = {
+ { 0xef, 0x03 },
+ { 0x50, 0xd2 },
+ { 0x0f, 0x31 },
+ { 0xef, 0x03 },
+ { 0x5f, 0x03 },
+ { 0x60, 0x02 },
+ { 0x61, 0x0f },
+ { 0x62, 0x0c },
+ { 0x63, 0x05 },
+ { 0x64, 0x43 },
+ { 0x65, 0x05 },
+ { 0x66, 0x43 },
+ { 0x6d, 0x5a },
+ { 0x6E, 0x40 },
+ { 0x6f, 0x70 },
+ { 0x4c, 0x00 },
+ { 0x4d, 0x9E },
+ { 0x51, 0x10 },
+ { 0x52, 0x00 },
+ { 0x53, 0x00 },
+ { 0x54, 0x00 },
+ { 0x55, 0x22 },
+ { 0x56, 0x01 },
+ { 0x57, 0x61 },
+ { 0x58, 0x25 },
+ { 0x67, 0xcf },
+
+};
+
+struct s5ka3dfx_reg s5ka3dfx_Return_VGA[] = {
+ { 0xef, 0x00 },
+ { 0x7a, 0x00 },
+ { 0x11, 0x00 },
+ { 0x12, 0x00 },
+ { 0x15, 0x02 },
+ { 0x16, 0x90 },
+ { 0x13, 0x01 },
+ { 0x14, 0xF0 },
+ { 0x31, 0x04 },
+ { 0x30, 0x06 },
+ { 0x34, 0x02 },
+ { 0x35, 0x88 },
+ { 0x32, 0x01 },
+ { 0x33, 0xE8 },
+ { 0x7d, 0x02 },
+ { 0x7e, 0x88 },
+ { 0x7b, 0x01 },
+ { 0x7C, 0xe8 },
+ { 0x81, 0x02 },
+ { 0x82, 0x01 },
+ { 0x7f, 0x01 },
+ { 0x80, 0xe8 },
+ { 0xc3, 0x04 },
+ { 0xc2, 0x04 },
+ { 0xc6, 0x02 },
+ { 0xc7, 0x80 },
+ { 0xc4, 0x01 },
+ { 0xc5, 0xe0 },
+ { 0x7a, 0x01 },
+};
+
+struct s5ka3dfx_reg s5ka3dfx_QVGA[] = { /* 320 x 240 */
+ { 0xef, 0x00 },
+ { 0x7a, 0x00 },
+ { 0x11, 0x00 },
+ { 0x12, 0x00 },
+ { 0x15, 0x02 },
+ { 0x16, 0x90 },
+ { 0x13, 0x01 },
+ { 0x14, 0xF0 },
+ { 0x31, 0x04 },
+ { 0x30, 0x06 },
+ { 0x34, 0x02 },
+ { 0x35, 0x88 },
+ { 0x32, 0x01 },
+ { 0x33, 0xE8 },
+ { 0x7d, 0x02 },
+ { 0x7e, 0x88 },
+ { 0x7b, 0x01 },
+ { 0x7c, 0xe8 },
+ { 0x81, 0x01 },
+ { 0x82, 0x48 },
+ { 0x7f, 0x00 },
+ { 0x80, 0xf8 },
+ { 0xc3, 0x04 },
+ { 0xc2, 0x04 },
+ { 0xc6, 0x01 },
+ { 0xc7, 0x40 },
+ { 0xc4, 0x00 },
+ { 0xc5, 0xf0 },
+ { 0x7a, 0x03 },
+};
+
+
+struct s5ka3dfx_reg s5ka3dfx_QCIF[] = { /* 176 x 144 */
+ { 0xef, 0x00 },
+ { 0x7a, 0x00 },
+ { 0x11, 0x00 },
+ { 0x12, 0x00 },
+ { 0x15, 0x02 },
+ { 0x16, 0x90 },
+ { 0x13, 0x01 },
+ { 0x14, 0xF0 },
+ { 0x31, 0x04 },
+ { 0x30, 0x06 },
+ { 0x34, 0x02 },
+ { 0x35, 0x88 },
+ { 0x32, 0x01 },
+ { 0x33, 0xE8 },
+ { 0x7d, 0x02 },
+ { 0x7e, 0x88 },
+ { 0x7b, 0x01 },
+ { 0x7c, 0xe8 },
+ { 0x81, 0x00 },
+ { 0x82, 0xc0 },
+ { 0x7f, 0x00 },
+ { 0x80, 0x98 },
+ { 0xc3, 0x08 },
+ { 0xc2, 0x04 },
+ { 0xc6, 0x00 },
+ { 0xc7, 0xb0 },
+ { 0xc4, 0x00 },
+ { 0xc5, 0x90 },
+ { 0x7a, 0x03 },
+};
#endif