summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/usbvideo/ibmcam.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/usbvideo/ibmcam.c')
-rw-r--r--linux/drivers/media/video/usbvideo/ibmcam.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/linux/drivers/media/video/usbvideo/ibmcam.c b/linux/drivers/media/video/usbvideo/ibmcam.c
index 76f771b6a..c5c444692 100644
--- a/linux/drivers/media/video/usbvideo/ibmcam.c
+++ b/linux/drivers/media/video/usbvideo/ibmcam.c
@@ -258,7 +258,7 @@ static enum ParseState ibmcam_find_header(struct uvd *uvd) /* FIXME: Add frame h
(RING_QUEUE_PEEK(&uvd->dp, 1) == 0xFF) &&
(RING_QUEUE_PEEK(&uvd->dp, 2) == 0x00))
{
-#if 0 /* This code helps to detect new frame markers */
+#if 0 /* keep */ /* This code helps to detect new frame markers */
info("Header sig: 00 FF 00 %02X", RING_QUEUE_PEEK(&uvd->dp, 3));
#endif
frame->header = RING_QUEUE_PEEK(&uvd->dp, 3);
@@ -266,7 +266,7 @@ static enum ParseState ibmcam_find_header(struct uvd *uvd) /* FIXME: Add frame h
(frame->header == HDRSIG_MODEL1_176x144) ||
(frame->header == HDRSIG_MODEL1_352x288))
{
-#if 0
+#if 0 /* keep */
info("Header found.");
#endif
RING_QUEUE_DEQUEUE_BYTES(&uvd->dp, marker_len);
@@ -295,7 +295,7 @@ case IBMCAM_MODEL_4:
if ((RING_QUEUE_PEEK(&uvd->dp, 0) == 0x00) &&
(RING_QUEUE_PEEK(&uvd->dp, 1) == 0xFF))
{
-#if 0
+#if 0 /* keep */
info("Header found.");
#endif
RING_QUEUE_DEQUEUE_BYTES(&uvd->dp, marker_len);
@@ -338,7 +338,7 @@ case IBMCAM_MODEL_4:
byte3 = RING_QUEUE_PEEK(&uvd->dp, 2);
byte4 = RING_QUEUE_PEEK(&uvd->dp, 3);
frame->header = (byte3 << 8) | byte4;
-#if 0
+#if 0 /* keep */
info("Header found.");
#endif
RING_QUEUE_DEQUEUE_BYTES(&uvd->dp, marker_len);
@@ -1100,7 +1100,7 @@ static void ibmcam_ProcessIsocData(struct uvd *uvd,
/* Update the frame's uncompressed length. */
frame->seqRead_Length += copylen;
-#if 0
+#if 0 /* keep */
{
static unsigned char j=0;
memset(frame->data, j++, uvd->max_frame_size);
@@ -1139,7 +1139,7 @@ static int ibmcam_veio(
cp,
sizeof(cp),
1000);
-#if 0
+#if 0 /* keep */
info("USB => %02x%02x%02x%02x%02x%02x%02x%02x "
"(req=$%02x val=$%04x ind=$%04x)",
cp[0],cp[1],cp[2],cp[3],cp[4],cp[5],cp[6],cp[7],
@@ -1433,7 +1433,7 @@ static void ibmcam_change_lighting_conditions(struct uvd *uvd)
break;
}
case IBMCAM_MODEL_2:
-#if 0
+#if 0 /* keep */
/*
* This command apparently requires camera to be stopped. My
* experiments showed that it -is- possible to alter the lighting
@@ -1611,7 +1611,7 @@ static void ibmcam_set_hue(struct uvd *uvd)
}
case IBMCAM_MODEL_3:
{
-#if 0 /* This seems not to work. No problem, will fix programmatically */
+#if 0 /* keep */ /* This seems not to work. No problem, will fix programmatically */
unsigned short hue = 0x05 + (uvd->vpic.hue / (0xFFFF / (0x37 - 0x05 + 1)));
RESTRICT_TO_RANGE(hue, 0x05, 0x37);
if (uvd->vpic_old.hue == hue)
@@ -1860,7 +1860,7 @@ static int ibmcam_model1_setup(struct uvd *uvd)
ibmcam_veio(uvd, 0, 0x04, 0x011a); /* Same everywhere */
ibmcam_veio(uvd, 0, 0x2b, 0x011c);
ibmcam_veio(uvd, 0, 0x23, 0x012a); /* Same everywhere */
-#if 0
+#if 0 /* keep */
ibmcam_veio(uvd, 0, 0x00, 0x0106);
ibmcam_veio(uvd, 0, 0x38, 0x0107);
#else
@@ -3502,7 +3502,7 @@ case IBMCAM_MODEL_4:
ibmcam_veio(uvd, 0, 0x0000, 0x0112);
break;
case IBMCAM_MODEL_3:
-#if 1
+#if 1 /* keep */
ibmcam_veio(uvd, 0, 0x0000, 0x010c);
/* Here we are supposed to select video interface alt. setting 0 */