- err += w9968cf_write_reg(cam, 0x0000, 0x20); /* Y frame buf.0, low */
- err += w9968cf_write_reg(cam, 0x0000, 0x21); /* Y frame buf.0, high */
- err += w9968cf_write_reg(cam, 0xb000, 0x22); /* Y frame buf.1, low */
- err += w9968cf_write_reg(cam, 0x0004, 0x23); /* Y frame buf.1, high */
- err += w9968cf_write_reg(cam, 0x5800, 0x24); /* U frame buf.0, low */
- err += w9968cf_write_reg(cam, 0x0002, 0x25); /* U frame buf.0, high */
- err += w9968cf_write_reg(cam, 0x0800, 0x26); /* U frame buf.1, low */
- err += w9968cf_write_reg(cam, 0x0007, 0x27); /* U frame buf.1, high */
- err += w9968cf_write_reg(cam, 0x8400, 0x28); /* V frame buf.0, low */
- err += w9968cf_write_reg(cam, 0x0003, 0x29); /* V frame buf.0, high */
- err += w9968cf_write_reg(cam, 0x3400, 0x2a); /* V frame buf.1, low */
- err += w9968cf_write_reg(cam, 0x0008, 0x2b); /* V frame buf.1, high */
-
- err += w9968cf_write_reg(cam, 0x6000, 0x32); /* JPEG bitstream buf 0 */
- err += w9968cf_write_reg(cam, 0x0009, 0x33); /* JPEG bitstream buf 0 */
- err += w9968cf_write_reg(cam, 0x2000, 0x34); /* JPEG bitstream buf 1 */
- err += w9968cf_write_reg(cam, 0x000d, 0x35); /* JPEG bitstream buf 1 */
+ err += w9968cf_write_reg(cam, y0 & 0xffff, 0x20); /* Y buf.0, low */
+ err += w9968cf_write_reg(cam, y0 >> 16, 0x21); /* Y buf.0, high */
+ err += w9968cf_write_reg(cam, u0 & 0xffff, 0x24); /* U buf.0, low */
+ err += w9968cf_write_reg(cam, u0 >> 16, 0x25); /* U buf.0, high */
+ err += w9968cf_write_reg(cam, v0 & 0xffff, 0x28); /* V buf.0, low */
+ err += w9968cf_write_reg(cam, v0 >> 16, 0x29); /* V buf.0, high */
+
+ err += w9968cf_write_reg(cam, y1 & 0xffff, 0x22); /* Y buf.1, low */
+ err += w9968cf_write_reg(cam, y1 >> 16, 0x23); /* Y buf.1, high */
+ err += w9968cf_write_reg(cam, u1 & 0xffff, 0x26); /* U buf.1, low */
+ err += w9968cf_write_reg(cam, u1 >> 16, 0x27); /* U buf.1, high */
+ err += w9968cf_write_reg(cam, v1 & 0xffff, 0x2a); /* V buf.1, low */
+ err += w9968cf_write_reg(cam, v1 >> 16, 0x2b); /* V buf.1, high */
+
+ err += w9968cf_write_reg(cam, y1 & 0xffff, 0x32); /* JPEG buf 0 low */
+ err += w9968cf_write_reg(cam, y1 >> 16, 0x33); /* JPEG buf 0 high */
+
+ err += w9968cf_write_reg(cam, y1 & 0xffff, 0x34); /* JPEG buf 1 low */
+ err += w9968cf_write_reg(cam, y1 >> 16, 0x35); /* JPEG bug 1 high */