]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/media/video/gspca/stv06xx/stv06xx_vv6410.h
[media] gspca-stv06xx: support bandwidth changing
[linux-beck.git] / drivers / media / video / gspca / stv06xx / stv06xx_vv6410.h
index b3b5508473bcca22d971328737d6ea5d38583e9f..7fe3587f5f71fac1bc0aef41e8478261f7e278cc 100644 (file)
@@ -197,6 +197,10 @@ const struct stv06xx_sensor stv06xx_sensor_vv6410 = {
        .i2c_flush = 5,
        .i2c_addr = 0x20,
        .i2c_len = 1,
+       /* FIXME (see if we can lower packet_size-s, needs testing, and also
+          adjusting framerate when the bandwidth gets lower) */
+       .min_packet_size = { 1023 },
+       .max_packet_size = { 1023 },
        .init = vv6410_init,
        .probe = vv6410_probe,
        .start = vv6410_start,
@@ -220,10 +224,6 @@ static const u8 x1536[] = {        /* 0x1536 - 0x153b */
        0x02, 0x00, 0x60, 0x01, 0x20, 0x01
 };
 
-static const u8 x15c1[] = {    /* 0x15c1 - 0x15c2 */
-       0xff, 0x03 /* Output word 0x03ff = 1023 (ISO size) */
-};
-
 static const struct stv_init stv_bridge_init[] = {
        /* This reg is written twice. Some kind of reset? */
        {NULL,  0x1620, 0x80},
@@ -232,7 +232,6 @@ static const struct stv_init stv_bridge_init[] = {
        {NULL,  0x1423, 0x04},
        {x1500, 0x1500, ARRAY_SIZE(x1500)},
        {x1536, 0x1536, ARRAY_SIZE(x1536)},
-       {x15c1, 0x15c1, ARRAY_SIZE(x15c1)}
 };
 
 static const u8 vv6410_sensor_init[][2] = {