forked from Minki/linux
V4L/DVB (11209): gspca - vc032x: New sensor mi1320_soc and webcam 15b8:6001 added.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
dc070bccde
commit
db786a3fde
@ -43,12 +43,13 @@ struct sd {
|
|||||||
char sensor;
|
char sensor;
|
||||||
#define SENSOR_HV7131R 0
|
#define SENSOR_HV7131R 0
|
||||||
#define SENSOR_MI0360 1
|
#define SENSOR_MI0360 1
|
||||||
#define SENSOR_MI1320 2
|
#define SENSOR_MI1310_SOC 2
|
||||||
#define SENSOR_MI1310_SOC 3
|
#define SENSOR_MI1320 3
|
||||||
#define SENSOR_OV7660 4
|
#define SENSOR_MI1320_SOC 4
|
||||||
#define SENSOR_OV7670 5
|
#define SENSOR_OV7660 5
|
||||||
#define SENSOR_PO1200 6
|
#define SENSOR_OV7670 6
|
||||||
#define SENSOR_PO3130NC 7
|
#define SENSOR_PO1200 7
|
||||||
|
#define SENSOR_PO3130NC 8
|
||||||
};
|
};
|
||||||
|
|
||||||
/* V4L2 controls supported by the driver */
|
/* V4L2 controls supported by the driver */
|
||||||
@ -149,7 +150,7 @@ static const struct v4l2_pix_format vc0323_mode[] = {
|
|||||||
.sizeimage = 640 * 480 * 3 / 8 + 590,
|
.sizeimage = 640 * 480 * 3 / 8 + 590,
|
||||||
.colorspace = V4L2_COLORSPACE_JPEG,
|
.colorspace = V4L2_COLORSPACE_JPEG,
|
||||||
.priv = 0},
|
.priv = 0},
|
||||||
{1280, 1024, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, /* mi1310_soc only */
|
{1280, 1024, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, /* mi13x0_soc only */
|
||||||
.bytesperline = 1280,
|
.bytesperline = 1280,
|
||||||
.sizeimage = 1280 * 1024 * 1 / 4 + 590,
|
.sizeimage = 1280 * 1024 * 1 / 4 + 590,
|
||||||
.colorspace = V4L2_COLORSPACE_JPEG,
|
.colorspace = V4L2_COLORSPACE_JPEG,
|
||||||
@ -891,6 +892,383 @@ static const __u8 mi1320_initQVGA_data[][4] = {
|
|||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const u8 mi1320_soc_InitVGA_JPG[][4] = {
|
||||||
|
{0xb3, 0x01, 0x01, 0xcc},
|
||||||
|
{0xb0, 0x03, 0x19, 0xcc},
|
||||||
|
{0xb0, 0x04, 0x02, 0xcc},
|
||||||
|
{0x00, 0x00, 0x30, 0xdd},
|
||||||
|
{0xb3, 0x00, 0x64, 0xcc},
|
||||||
|
{0xb3, 0x00, 0x67, 0xcc},
|
||||||
|
{0xb3, 0x05, 0x01, 0xcc},
|
||||||
|
{0xb3, 0x06, 0x01, 0xcc},
|
||||||
|
{0xb3, 0x08, 0x01, 0xcc},
|
||||||
|
{0xb3, 0x09, 0x0c, 0xcc},
|
||||||
|
{0xb3, 0x34, 0x02, 0xcc},
|
||||||
|
{0xb3, 0x35, 0xc8, 0xcc},
|
||||||
|
{0xb3, 0x02, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x03, 0x0a, 0xcc},
|
||||||
|
{0xb3, 0x04, 0x05, 0xcc},
|
||||||
|
{0xb3, 0x20, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x21, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x22, 0x01, 0xcc},
|
||||||
|
{0xb3, 0x23, 0xe0, 0xcc},
|
||||||
|
{0xb3, 0x14, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x15, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x16, 0x02, 0xcc},
|
||||||
|
{0xb3, 0x17, 0x7f, 0xcc},
|
||||||
|
{0xb3, 0x00, 0x67, 0xcc},
|
||||||
|
{0xb8, 0x00, 0x00, 0xcc},
|
||||||
|
{0xbc, 0x00, 0x71, 0xcc},
|
||||||
|
{0xbc, 0x01, 0x01, 0xcc},
|
||||||
|
{0xb3, 0x5c, 0x01, 0xcc},
|
||||||
|
{0xf0, 0x00, 0x02, 0xbb},
|
||||||
|
{0x00, 0x00, 0x10, 0xdd},
|
||||||
|
{0xc8, 0x00, 0x00, 0xbb},
|
||||||
|
{0x00, 0x00, 0x30, 0xdd},
|
||||||
|
{0xf0, 0x00, 0x00, 0xbb},
|
||||||
|
{0x00, 0x00, 0x10, 0xdd},
|
||||||
|
{0x07, 0x00, 0xe0, 0xbb},
|
||||||
|
{0x08, 0x00, 0x0b, 0xbb},
|
||||||
|
{0x21, 0x00, 0x0c, 0xbb},
|
||||||
|
{0x20, 0x01, 0x03, 0xbb},
|
||||||
|
{0xb6, 0x00, 0x00, 0xcc},
|
||||||
|
{0xb6, 0x03, 0x02, 0xcc},
|
||||||
|
{0xb6, 0x02, 0x80, 0xcc},
|
||||||
|
{0xb6, 0x05, 0x01, 0xcc},
|
||||||
|
{0xb6, 0x04, 0xe0, 0xcc},
|
||||||
|
{0xb6, 0x12, 0xf8, 0xcc},
|
||||||
|
{0xb6, 0x13, 0x05, 0xcc},
|
||||||
|
{0xb6, 0x18, 0x02, 0xcc},
|
||||||
|
{0xb6, 0x17, 0x58, 0xcc},
|
||||||
|
{0xb6, 0x16, 0x00, 0xcc},
|
||||||
|
{0xb6, 0x22, 0x12, 0xcc},
|
||||||
|
{0xb6, 0x23, 0x0b, 0xcc},
|
||||||
|
{0xbf, 0xc0, 0x39, 0xcc},
|
||||||
|
{0xbf, 0xc1, 0x04, 0xcc},
|
||||||
|
{0xbf, 0xcc, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x01, 0x41, 0xcc},
|
||||||
|
{0xf0, 0x00, 0x00, 0xbb},
|
||||||
|
{0x05, 0x01, 0x78, 0xbb},
|
||||||
|
{0x06, 0x00, 0x11, 0xbb},
|
||||||
|
{0x07, 0x01, 0x42, 0xbb},
|
||||||
|
{0x08, 0x00, 0x11, 0xbb},
|
||||||
|
{0x20, 0x01, 0x03, 0xbb},
|
||||||
|
{0x21, 0x80, 0x00, 0xbb},
|
||||||
|
{0x22, 0x0d, 0x0f, 0xbb},
|
||||||
|
{0x24, 0x80, 0x00, 0xbb},
|
||||||
|
{0x59, 0x00, 0xff, 0xbb},
|
||||||
|
{0xf0, 0x00, 0x02, 0xbb},
|
||||||
|
{0x39, 0x03, 0xca, 0xbb},
|
||||||
|
{0x3a, 0x06, 0x80, 0xbb},
|
||||||
|
{0x3b, 0x01, 0x52, 0xbb},
|
||||||
|
{0x3c, 0x05, 0x40, 0xbb},
|
||||||
|
{0x57, 0x01, 0x9c, 0xbb},
|
||||||
|
{0x58, 0x01, 0xee, 0xbb},
|
||||||
|
{0x59, 0x00, 0xf0, 0xbb},
|
||||||
|
{0x5a, 0x01, 0x20, 0xbb},
|
||||||
|
{0x5c, 0x1d, 0x17, 0xbb},
|
||||||
|
{0x5d, 0x22, 0x1c, 0xbb},
|
||||||
|
{0x64, 0x1e, 0x1c, 0xbb},
|
||||||
|
{0x5b, 0x00, 0x00, 0xbb},
|
||||||
|
{0xf0, 0x00, 0x02, 0xbb},
|
||||||
|
{0x22, 0xa0, 0x78, 0xbb},
|
||||||
|
{0x23, 0xa0, 0x78, 0xbb},
|
||||||
|
{0x24, 0x7f, 0x00, 0xbb},
|
||||||
|
{0x28, 0xea, 0x02, 0xbb},
|
||||||
|
{0x29, 0x86, 0x7a, 0xbb},
|
||||||
|
{0x5e, 0x52, 0x4c, 0xbb},
|
||||||
|
{0x5f, 0x20, 0x24, 0xbb},
|
||||||
|
{0x60, 0x00, 0x02, 0xbb},
|
||||||
|
{0x02, 0x00, 0xee, 0xbb},
|
||||||
|
{0x03, 0x39, 0x23, 0xbb},
|
||||||
|
{0x04, 0x07, 0x24, 0xbb},
|
||||||
|
{0x09, 0x00, 0xc0, 0xbb},
|
||||||
|
{0x0a, 0x00, 0x79, 0xbb},
|
||||||
|
{0x0b, 0x00, 0x04, 0xbb},
|
||||||
|
{0x0c, 0x00, 0x5c, 0xbb},
|
||||||
|
{0x0d, 0x00, 0xd9, 0xbb},
|
||||||
|
{0x0e, 0x00, 0x53, 0xbb},
|
||||||
|
{0x0f, 0x00, 0x21, 0xbb},
|
||||||
|
{0x10, 0x00, 0xa4, 0xbb},
|
||||||
|
{0x11, 0x00, 0xe5, 0xbb},
|
||||||
|
{0x15, 0x00, 0x00, 0xbb},
|
||||||
|
{0x16, 0x00, 0x00, 0xbb},
|
||||||
|
{0x17, 0x00, 0x00, 0xbb},
|
||||||
|
{0x18, 0x00, 0x00, 0xbb},
|
||||||
|
{0x19, 0x00, 0x00, 0xbb},
|
||||||
|
{0x1a, 0x00, 0x00, 0xbb},
|
||||||
|
{0x1b, 0x00, 0x00, 0xbb},
|
||||||
|
{0x1c, 0x00, 0x00, 0xbb},
|
||||||
|
{0x1d, 0x00, 0x00, 0xbb},
|
||||||
|
{0x1e, 0x00, 0x00, 0xbb},
|
||||||
|
{0xf0, 0x00, 0x01, 0xbb},
|
||||||
|
{0x06, 0xe0, 0x0e, 0xbb},
|
||||||
|
{0x06, 0x60, 0x0e, 0xbb},
|
||||||
|
{0xb3, 0x5c, 0x01, 0xcc},
|
||||||
|
{}
|
||||||
|
};
|
||||||
|
static const u8 mi1320_soc_InitQVGA_JPG[][4] = {
|
||||||
|
{0xb3, 0x01, 0x01, 0xcc},
|
||||||
|
{0xb0, 0x03, 0x19, 0xcc},
|
||||||
|
{0xb0, 0x04, 0x02, 0xcc},
|
||||||
|
{0x00, 0x00, 0x30, 0xdd},
|
||||||
|
{0xb3, 0x00, 0x64, 0xcc},
|
||||||
|
{0xb3, 0x00, 0x67, 0xcc},
|
||||||
|
{0xb3, 0x05, 0x01, 0xcc},
|
||||||
|
{0xb3, 0x06, 0x01, 0xcc},
|
||||||
|
{0xb3, 0x08, 0x01, 0xcc},
|
||||||
|
{0xb3, 0x09, 0x0c, 0xcc},
|
||||||
|
{0xb3, 0x34, 0x02, 0xcc},
|
||||||
|
{0xb3, 0x35, 0xc8, 0xcc},
|
||||||
|
{0xb3, 0x02, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x03, 0x0a, 0xcc},
|
||||||
|
{0xb3, 0x04, 0x05, 0xcc},
|
||||||
|
{0xb3, 0x20, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x21, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x22, 0x01, 0xcc},
|
||||||
|
{0xb3, 0x23, 0xe0, 0xcc},
|
||||||
|
{0xb3, 0x14, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x15, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x16, 0x02, 0xcc},
|
||||||
|
{0xb3, 0x17, 0x7f, 0xcc},
|
||||||
|
{0xb3, 0x00, 0x67, 0xcc},
|
||||||
|
{0xb8, 0x00, 0x00, 0xcc},
|
||||||
|
{0xbc, 0x00, 0xd1, 0xcc},
|
||||||
|
{0xbc, 0x01, 0x01, 0xcc},
|
||||||
|
{0xb3, 0x5c, 0x01, 0xcc},
|
||||||
|
{0xf0, 0x00, 0x02, 0xbb},
|
||||||
|
{0x00, 0x00, 0x10, 0xdd},
|
||||||
|
{0xc8, 0x00, 0x00, 0xbb},
|
||||||
|
{0x00, 0x00, 0x30, 0xdd},
|
||||||
|
{0xf0, 0x00, 0x00, 0xbb},
|
||||||
|
{0x00, 0x00, 0x10, 0xdd},
|
||||||
|
{0x07, 0x00, 0xe0, 0xbb},
|
||||||
|
{0x08, 0x00, 0x0b, 0xbb},
|
||||||
|
{0x21, 0x00, 0x0c, 0xbb},
|
||||||
|
{0x20, 0x01, 0x03, 0xbb},
|
||||||
|
{0xb6, 0x00, 0x00, 0xcc},
|
||||||
|
{0xb6, 0x03, 0x01, 0xcc},
|
||||||
|
{0xb6, 0x02, 0x40, 0xcc},
|
||||||
|
{0xb6, 0x05, 0x00, 0xcc},
|
||||||
|
{0xb6, 0x04, 0xf0, 0xcc},
|
||||||
|
{0xb6, 0x12, 0xf8, 0xcc},
|
||||||
|
{0xb6, 0x13, 0x05, 0xcc},
|
||||||
|
{0xb6, 0x18, 0x00, 0xcc},
|
||||||
|
{0xb6, 0x17, 0x96, 0xcc},
|
||||||
|
{0xb6, 0x16, 0x00, 0xcc},
|
||||||
|
{0xb6, 0x22, 0x12, 0xcc},
|
||||||
|
{0xb6, 0x23, 0x0b, 0xcc},
|
||||||
|
{0xbf, 0xc0, 0x39, 0xcc},
|
||||||
|
{0xbf, 0xc1, 0x04, 0xcc},
|
||||||
|
{0xbf, 0xcc, 0x00, 0xcc},
|
||||||
|
{0xbc, 0x02, 0x18, 0xcc},
|
||||||
|
{0xbc, 0x03, 0x50, 0xcc},
|
||||||
|
{0xbc, 0x04, 0x18, 0xcc},
|
||||||
|
{0xbc, 0x05, 0x00, 0xcc},
|
||||||
|
{0xbc, 0x06, 0x00, 0xcc},
|
||||||
|
{0xbc, 0x08, 0x30, 0xcc},
|
||||||
|
{0xbc, 0x09, 0x40, 0xcc},
|
||||||
|
{0xbc, 0x0a, 0x10, 0xcc},
|
||||||
|
{0xbc, 0x0b, 0x00, 0xcc},
|
||||||
|
{0xbc, 0x0c, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x01, 0x41, 0xcc},
|
||||||
|
{0xf0, 0x00, 0x00, 0xbb},
|
||||||
|
{0x05, 0x01, 0x78, 0xbb},
|
||||||
|
{0x06, 0x00, 0x11, 0xbb},
|
||||||
|
{0x07, 0x01, 0x42, 0xbb},
|
||||||
|
{0x08, 0x00, 0x11, 0xbb},
|
||||||
|
{0x20, 0x01, 0x03, 0xbb},
|
||||||
|
{0x21, 0x80, 0x00, 0xbb},
|
||||||
|
{0x22, 0x0d, 0x0f, 0xbb},
|
||||||
|
{0x24, 0x80, 0x00, 0xbb},
|
||||||
|
{0x59, 0x00, 0xff, 0xbb},
|
||||||
|
{0xf0, 0x00, 0x02, 0xbb},
|
||||||
|
{0x39, 0x03, 0xca, 0xbb},
|
||||||
|
{0x3a, 0x06, 0x80, 0xbb},
|
||||||
|
{0x3b, 0x01, 0x52, 0xbb},
|
||||||
|
{0x3c, 0x05, 0x40, 0xbb},
|
||||||
|
{0x57, 0x01, 0x9c, 0xbb},
|
||||||
|
{0x58, 0x01, 0xee, 0xbb},
|
||||||
|
{0x59, 0x00, 0xf0, 0xbb},
|
||||||
|
{0x5a, 0x01, 0x20, 0xbb},
|
||||||
|
{0x5c, 0x1d, 0x17, 0xbb},
|
||||||
|
{0x5d, 0x22, 0x1c, 0xbb},
|
||||||
|
{0x64, 0x1e, 0x1c, 0xbb},
|
||||||
|
{0x5b, 0x00, 0x00, 0xbb},
|
||||||
|
{0xf0, 0x00, 0x02, 0xbb},
|
||||||
|
{0x22, 0xa0, 0x78, 0xbb},
|
||||||
|
{0x23, 0xa0, 0x78, 0xbb},
|
||||||
|
{0x24, 0x7f, 0x00, 0xbb},
|
||||||
|
{0x28, 0xea, 0x02, 0xbb},
|
||||||
|
{0x29, 0x86, 0x7a, 0xbb},
|
||||||
|
{0x5e, 0x52, 0x4c, 0xbb},
|
||||||
|
{0x5f, 0x20, 0x24, 0xbb},
|
||||||
|
{0x60, 0x00, 0x02, 0xbb},
|
||||||
|
{0x02, 0x00, 0xee, 0xbb},
|
||||||
|
{0x03, 0x39, 0x23, 0xbb},
|
||||||
|
{0x04, 0x07, 0x24, 0xbb},
|
||||||
|
{0x09, 0x00, 0xc0, 0xbb},
|
||||||
|
{0x0a, 0x00, 0x79, 0xbb},
|
||||||
|
{0x0b, 0x00, 0x04, 0xbb},
|
||||||
|
{0x0c, 0x00, 0x5c, 0xbb},
|
||||||
|
{0x0d, 0x00, 0xd9, 0xbb},
|
||||||
|
{0x0e, 0x00, 0x53, 0xbb},
|
||||||
|
{0x0f, 0x00, 0x21, 0xbb},
|
||||||
|
{0x10, 0x00, 0xa4, 0xbb},
|
||||||
|
{0x11, 0x00, 0xe5, 0xbb},
|
||||||
|
{0x15, 0x00, 0x00, 0xbb},
|
||||||
|
{0x16, 0x00, 0x00, 0xbb},
|
||||||
|
{0x17, 0x00, 0x00, 0xbb},
|
||||||
|
{0x18, 0x00, 0x00, 0xbb},
|
||||||
|
{0x19, 0x00, 0x00, 0xbb},
|
||||||
|
{0x1a, 0x00, 0x00, 0xbb},
|
||||||
|
{0x1b, 0x00, 0x00, 0xbb},
|
||||||
|
{0x1c, 0x00, 0x00, 0xbb},
|
||||||
|
{0x1d, 0x00, 0x00, 0xbb},
|
||||||
|
{0x1e, 0x00, 0x00, 0xbb},
|
||||||
|
{0xf0, 0x00, 0x01, 0xbb},
|
||||||
|
{0x06, 0xe0, 0x0e, 0xbb},
|
||||||
|
{0x06, 0x60, 0x0e, 0xbb},
|
||||||
|
{0xb3, 0x5c, 0x01, 0xcc},
|
||||||
|
{}
|
||||||
|
};
|
||||||
|
static const u8 mi1320_soc_InitSXGA_JPG[][4] = {
|
||||||
|
{0xb3, 0x01, 0x01, 0xcc},
|
||||||
|
{0xb0, 0x03, 0x19, 0xcc},
|
||||||
|
{0xb0, 0x04, 0x02, 0xcc},
|
||||||
|
{0x00, 0x00, 0x33, 0xdd},
|
||||||
|
{0xb3, 0x00, 0x64, 0xcc},
|
||||||
|
{0xb3, 0x00, 0x67, 0xcc},
|
||||||
|
{0xb3, 0x05, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x06, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x08, 0x01, 0xcc},
|
||||||
|
{0xb3, 0x09, 0x0c, 0xcc},
|
||||||
|
{0xb3, 0x34, 0x02, 0xcc},
|
||||||
|
{0xb3, 0x35, 0xc8, 0xcc},
|
||||||
|
{0xb3, 0x02, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x03, 0x0a, 0xcc},
|
||||||
|
{0xb3, 0x04, 0x05, 0xcc},
|
||||||
|
{0xb3, 0x20, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x21, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x22, 0x04, 0xcc},
|
||||||
|
{0xb3, 0x23, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x14, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x15, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x16, 0x04, 0xcc},
|
||||||
|
{0xb3, 0x17, 0xff, 0xcc},
|
||||||
|
{0xb3, 0x00, 0x67, 0xcc},
|
||||||
|
{0xbc, 0x00, 0x71, 0xcc},
|
||||||
|
{0xbc, 0x01, 0x01, 0xcc},
|
||||||
|
{0xf0, 0x00, 0x02, 0xbb},
|
||||||
|
{0x00, 0x00, 0x30, 0xdd},
|
||||||
|
{0xc8, 0x9f, 0x0b, 0xbb},
|
||||||
|
{0x00, 0x00, 0x20, 0xdd},
|
||||||
|
{0x5b, 0x00, 0x01, 0xbb},
|
||||||
|
{0x00, 0x00, 0x20, 0xdd},
|
||||||
|
{0xf0, 0x00, 0x00, 0xbb},
|
||||||
|
{0x00, 0x00, 0x30, 0xdd},
|
||||||
|
{0x20, 0x01, 0x03, 0xbb},
|
||||||
|
{0x00, 0x00, 0x20, 0xdd},
|
||||||
|
{0xb6, 0x00, 0x00, 0xcc},
|
||||||
|
{0xb6, 0x03, 0x05, 0xcc},
|
||||||
|
{0xb6, 0x02, 0x00, 0xcc},
|
||||||
|
{0xb6, 0x05, 0x04, 0xcc},
|
||||||
|
{0xb6, 0x04, 0x00, 0xcc},
|
||||||
|
{0xb6, 0x12, 0xf8, 0xcc},
|
||||||
|
{0xb6, 0x13, 0x29, 0xcc},
|
||||||
|
{0xb6, 0x18, 0x0a, 0xcc},
|
||||||
|
{0xb6, 0x17, 0x00, 0xcc},
|
||||||
|
{0xb6, 0x16, 0x00, 0xcc},
|
||||||
|
{0xb6, 0x22, 0x12, 0xcc},
|
||||||
|
{0xb6, 0x23, 0x0b, 0xcc},
|
||||||
|
{0xbf, 0xc0, 0x39, 0xcc},
|
||||||
|
{0xbf, 0xc1, 0x04, 0xcc},
|
||||||
|
{0xbf, 0xcc, 0x00, 0xcc},
|
||||||
|
{0xb3, 0x5c, 0x01, 0xcc},
|
||||||
|
{0xb3, 0x01, 0x41, 0xcc},
|
||||||
|
{0xf0, 0x00, 0x00, 0xbb},
|
||||||
|
{0x05, 0x01, 0x78, 0xbb},
|
||||||
|
{0x06, 0x00, 0x11, 0xbb},
|
||||||
|
{0x07, 0x01, 0x42, 0xbb},
|
||||||
|
{0x08, 0x00, 0x11, 0xbb},
|
||||||
|
{0x20, 0x01, 0x03, 0xbb},
|
||||||
|
{0x21, 0x80, 0x00, 0xbb},
|
||||||
|
{0x22, 0x0d, 0x0f, 0xbb},
|
||||||
|
{0x24, 0x80, 0x00, 0xbb},
|
||||||
|
{0x59, 0x00, 0xff, 0xbb},
|
||||||
|
{0xf0, 0x00, 0x02, 0xbb},
|
||||||
|
{0x39, 0x03, 0xca, 0xbb},
|
||||||
|
{0x3a, 0x06, 0x80, 0xbb},
|
||||||
|
{0x3b, 0x01, 0x52, 0xbb},
|
||||||
|
{0x3c, 0x05, 0x40, 0xbb},
|
||||||
|
{0x57, 0x01, 0x9c, 0xbb},
|
||||||
|
{0x58, 0x01, 0xee, 0xbb},
|
||||||
|
{0x59, 0x00, 0xf0, 0xbb},
|
||||||
|
{0x5a, 0x01, 0x20, 0xbb},
|
||||||
|
{0x5c, 0x1d, 0x17, 0xbb},
|
||||||
|
{0x5d, 0x22, 0x1c, 0xbb},
|
||||||
|
{0x64, 0x1e, 0x1c, 0xbb},
|
||||||
|
{0x5b, 0x00, 0x00, 0xbb},
|
||||||
|
{0xf0, 0x00, 0x02, 0xbb},
|
||||||
|
{0x22, 0xa0, 0x78, 0xbb},
|
||||||
|
{0x23, 0xa0, 0x78, 0xbb},
|
||||||
|
{0x24, 0x7f, 0x00, 0xbb},
|
||||||
|
{0x28, 0xea, 0x02, 0xbb},
|
||||||
|
{0x29, 0x86, 0x7a, 0xbb},
|
||||||
|
{0x5e, 0x52, 0x4c, 0xbb},
|
||||||
|
{0x5f, 0x20, 0x24, 0xbb},
|
||||||
|
{0x60, 0x00, 0x02, 0xbb},
|
||||||
|
{0x02, 0x00, 0xee, 0xbb},
|
||||||
|
{0x03, 0x39, 0x23, 0xbb},
|
||||||
|
{0x04, 0x07, 0x24, 0xbb},
|
||||||
|
{0x09, 0x00, 0xc0, 0xbb},
|
||||||
|
{0x0a, 0x00, 0x79, 0xbb},
|
||||||
|
{0x0b, 0x00, 0x04, 0xbb},
|
||||||
|
{0x0c, 0x00, 0x5c, 0xbb},
|
||||||
|
{0x0d, 0x00, 0xd9, 0xbb},
|
||||||
|
{0x0e, 0x00, 0x53, 0xbb},
|
||||||
|
{0x0f, 0x00, 0x21, 0xbb},
|
||||||
|
{0x10, 0x00, 0xa4, 0xbb},
|
||||||
|
{0x11, 0x00, 0xe5, 0xbb},
|
||||||
|
{0x15, 0x00, 0x00, 0xbb},
|
||||||
|
{0x16, 0x00, 0x00, 0xbb},
|
||||||
|
{0x17, 0x00, 0x00, 0xbb},
|
||||||
|
{0x18, 0x00, 0x00, 0xbb},
|
||||||
|
{0x19, 0x00, 0x00, 0xbb},
|
||||||
|
{0x1a, 0x00, 0x00, 0xbb},
|
||||||
|
{0x1b, 0x00, 0x00, 0xbb},
|
||||||
|
{0x1c, 0x00, 0x00, 0xbb},
|
||||||
|
{0x1d, 0x00, 0x00, 0xbb},
|
||||||
|
{0x1e, 0x00, 0x00, 0xbb},
|
||||||
|
{0xf0, 0x00, 0x01, 0xbb},
|
||||||
|
{0x06, 0xe0, 0x0e, 0xbb},
|
||||||
|
{0x06, 0x60, 0x0e, 0xbb},
|
||||||
|
{0xb3, 0x5c, 0x01, 0xcc},
|
||||||
|
{0xf0, 0x00, 0x00, 0xbb},
|
||||||
|
{0x05, 0x01, 0x13, 0xbb},
|
||||||
|
{0x06, 0x00, 0x11, 0xbb},
|
||||||
|
{0x07, 0x00, 0x85, 0xbb},
|
||||||
|
{0x08, 0x00, 0x27, 0xbb},
|
||||||
|
{0x20, 0x01, 0x03, 0xbb},
|
||||||
|
{0x21, 0x80, 0x00, 0xbb},
|
||||||
|
{0x22, 0x0d, 0x0f, 0xbb},
|
||||||
|
{0x24, 0x80, 0x00, 0xbb},
|
||||||
|
{0x59, 0x00, 0xff, 0xbb},
|
||||||
|
{0xf0, 0x00, 0x02, 0xbb},
|
||||||
|
{0x39, 0x03, 0x0d, 0xbb},
|
||||||
|
{0x3a, 0x06, 0x1b, 0xbb},
|
||||||
|
{0x3b, 0x00, 0x95, 0xbb},
|
||||||
|
{0x3c, 0x04, 0xdb, 0xbb},
|
||||||
|
{0x57, 0x02, 0x00, 0xbb},
|
||||||
|
{0x58, 0x02, 0x66, 0xbb},
|
||||||
|
{0x59, 0x00, 0xff, 0xbb},
|
||||||
|
{0x5a, 0x01, 0x33, 0xbb},
|
||||||
|
{0x5c, 0x12, 0x0d, 0xbb},
|
||||||
|
{0x5d, 0x16, 0x11, 0xbb},
|
||||||
|
{0x64, 0x5e, 0x1c, 0xbb},
|
||||||
|
{0x2f, 0x90, 0x00, 0xbb},
|
||||||
|
{}
|
||||||
|
};
|
||||||
static const __u8 po3130_gamma[17] = {
|
static const __u8 po3130_gamma[17] = {
|
||||||
0x00, 0x13, 0x38, 0x59, 0x79, 0x92, 0xa7, 0xb9, 0xc8,
|
0x00, 0x13, 0x38, 0x59, 0x79, 0x92, 0xa7, 0xb9, 0xc8,
|
||||||
0xd4, 0xdf, 0xe7, 0xee, 0xf4, 0xf9, 0xfc, 0xff
|
0xd4, 0xdf, 0xe7, 0xee, 0xf4, 0xf9, 0xfc, 0xff
|
||||||
@ -1909,9 +2287,10 @@ static const struct sensor_info sensor_info_data[] = {
|
|||||||
{-1, 0x80 | 0x2d, 0x00, 0x0000, 0x65, 0x67, 0x01},
|
{-1, 0x80 | 0x2d, 0x00, 0x0000, 0x65, 0x67, 0x01},
|
||||||
{-1, 0x80 | 0x6e, 0x00, 0x0000, 0x24, 0x25, 0x01},
|
{-1, 0x80 | 0x6e, 0x00, 0x0000, 0x24, 0x25, 0x01},
|
||||||
{-1, 0x80 | 0x56, 0x01, 0x0000, 0x64, 0x67, 0x01},
|
{-1, 0x80 | 0x56, 0x01, 0x0000, 0x64, 0x67, 0x01},
|
||||||
{-1, 0x80 | 0x48, 0x00, 0x0000, 0x64, 0x67, 0x01},
|
{SENSOR_MI1320_SOC, 0x80 | 0x48, 0x00, 0x148c, 0x64, 0x67, 0x01},
|
||||||
/*fixme: not in the ms-win probe - may be found before?*/
|
/*fixme: previously detected?*/
|
||||||
{SENSOR_MI1320, 0x80 | 0x48, 0x00, 0x148c, 0x64, 0x65, 0x01},
|
{SENSOR_MI1320, 0x80 | 0x48, 0x00, 0x148c, 0x64, 0x65, 0x01},
|
||||||
|
/*fixme: not in the ms-win probe - may be found before?*/
|
||||||
{SENSOR_OV7670, 0x80 | 0x21, 0x0a, 0x7673, 0x66, 0x67, 0x05},
|
{SENSOR_OV7670, 0x80 | 0x21, 0x0a, 0x7673, 0x66, 0x67, 0x05},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -2129,6 +2508,9 @@ static int sd_config(struct gspca_dev *gspca_dev,
|
|||||||
case SENSOR_MI1320:
|
case SENSOR_MI1320:
|
||||||
PDEBUG(D_PROBE, "Find Sensor MI1320");
|
PDEBUG(D_PROBE, "Find Sensor MI1320");
|
||||||
break;
|
break;
|
||||||
|
case SENSOR_MI1320_SOC:
|
||||||
|
PDEBUG(D_PROBE, "Find Sensor MI1320_SOC");
|
||||||
|
break;
|
||||||
case SENSOR_OV7660:
|
case SENSOR_OV7660:
|
||||||
PDEBUG(D_PROBE, "Find Sensor OV7660");
|
PDEBUG(D_PROBE, "Find Sensor OV7660");
|
||||||
break;
|
break;
|
||||||
@ -2150,10 +2532,15 @@ static int sd_config(struct gspca_dev *gspca_dev,
|
|||||||
} else {
|
} else {
|
||||||
if (sensor != SENSOR_PO1200) {
|
if (sensor != SENSOR_PO1200) {
|
||||||
cam->cam_mode = vc0323_mode;
|
cam->cam_mode = vc0323_mode;
|
||||||
if (sd->sensor != SENSOR_MI1310_SOC)
|
switch (sensor) {
|
||||||
|
case SENSOR_MI1310_SOC:
|
||||||
|
case SENSOR_MI1320_SOC:
|
||||||
cam->nmodes = ARRAY_SIZE(vc0323_mode);
|
cam->nmodes = ARRAY_SIZE(vc0323_mode);
|
||||||
else /* no SXGA */
|
break;
|
||||||
|
default: /* no SXGA */
|
||||||
cam->nmodes = ARRAY_SIZE(vc0323_mode) - 1;
|
cam->nmodes = ARRAY_SIZE(vc0323_mode) - 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
cam->cam_mode = svga_mode;
|
cam->cam_mode = svga_mode;
|
||||||
cam->nmodes = ARRAY_SIZE(svga_mode);
|
cam->nmodes = ARRAY_SIZE(svga_mode);
|
||||||
@ -2313,7 +2700,7 @@ static int sd_start(struct gspca_dev *gspca_dev)
|
|||||||
init = mi1310_socinitVGA_JPG; /* 640x480 */
|
init = mi1310_socinitVGA_JPG; /* 640x480 */
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
init = mi1310_soc_InitSXGA_JPG; /* 1280xq024 */
|
init = mi1310_soc_InitSXGA_JPG; /* 1280x1024 */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -2325,6 +2712,21 @@ static int sd_start(struct gspca_dev *gspca_dev)
|
|||||||
else
|
else
|
||||||
init = mi1320_initVGA_data; /* 640x480 */
|
init = mi1320_initVGA_data; /* 640x480 */
|
||||||
break;
|
break;
|
||||||
|
case SENSOR_MI1320_SOC:
|
||||||
|
GammaT = mi1320_gamma;
|
||||||
|
MatrixT = mi1320_matrix;
|
||||||
|
switch (mode) {
|
||||||
|
case 1:
|
||||||
|
init = mi1320_soc_InitQVGA_JPG; /* 320x240 */
|
||||||
|
break;
|
||||||
|
case 0:
|
||||||
|
init = mi1320_soc_InitVGA_JPG; /* 640x480 */
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
init = mi1320_soc_InitSXGA_JPG; /* 1280x1024 */
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case SENSOR_PO3130NC:
|
case SENSOR_PO3130NC:
|
||||||
GammaT = po3130_gamma;
|
GammaT = po3130_gamma;
|
||||||
MatrixT = po3130_matrix;
|
MatrixT = po3130_matrix;
|
||||||
@ -2533,6 +2935,7 @@ static const __devinitdata struct usb_device_id device_table[] = {
|
|||||||
{USB_DEVICE(0x0ac8, 0x0328), .driver_info = BRIDGE_VC0321},
|
{USB_DEVICE(0x0ac8, 0x0328), .driver_info = BRIDGE_VC0321},
|
||||||
{USB_DEVICE(0x0ac8, 0xc001), .driver_info = BRIDGE_VC0321},
|
{USB_DEVICE(0x0ac8, 0xc001), .driver_info = BRIDGE_VC0321},
|
||||||
{USB_DEVICE(0x0ac8, 0xc002), .driver_info = BRIDGE_VC0321},
|
{USB_DEVICE(0x0ac8, 0xc002), .driver_info = BRIDGE_VC0321},
|
||||||
|
{USB_DEVICE(0x15b8, 0x6001), .driver_info = BRIDGE_VC0323},
|
||||||
{USB_DEVICE(0x15b8, 0x6002), .driver_info = BRIDGE_VC0323},
|
{USB_DEVICE(0x15b8, 0x6002), .driver_info = BRIDGE_VC0323},
|
||||||
{USB_DEVICE(0x17ef, 0x4802), .driver_info = BRIDGE_VC0323},
|
{USB_DEVICE(0x17ef, 0x4802), .driver_info = BRIDGE_VC0323},
|
||||||
{}
|
{}
|
||||||
|
Loading…
Reference in New Issue
Block a user