diff options
-rw-r--r-- | drivers/media/video/bt832.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/media/video/bt832.c b/drivers/media/video/bt832.c index 9a642c7de545..a070417e65e6 100644 --- a/drivers/media/video/bt832.c +++ b/drivers/media/video/bt832.c | |||
@@ -138,25 +138,13 @@ int bt832_init(struct i2c_client *i2c_client_s) | |||
138 | 138 | ||
139 | bt832_hexdump(i2c_client_s,buf); | 139 | bt832_hexdump(i2c_client_s,buf); |
140 | 140 | ||
141 | #if 0 | ||
142 | // Full 30/25 Frame rate | ||
143 | printk("Full 30/25 Frame rate\n"); | ||
144 | buf[0]=BT832_VP_CONTROL0; // Reg.39 | ||
145 | buf[1]= 0x00; | ||
146 | if (2 != (rc = i2c_master_send(i2c_client_s,buf,2))) | ||
147 | printk("bt832: i2c i/o error FFR: rc == %d (should be 2)\n",rc); | ||
148 | |||
149 | bt832_hexdump(i2c_client_s,buf); | ||
150 | #endif | ||
151 | 141 | ||
152 | #if 1 | ||
153 | // for testing (even works when no camera attached) | 142 | // for testing (even works when no camera attached) |
154 | printk("bt832: *** Generate NTSC M Bars *****\n"); | 143 | printk("bt832: *** Generate NTSC M Bars *****\n"); |
155 | buf[0]=BT832_VP_TESTCONTROL0; // Reg. 42 | 144 | buf[0]=BT832_VP_TESTCONTROL0; // Reg. 42 |
156 | buf[1]=3; // Generate NTSC System M bars, Generate Frame timing internally | 145 | buf[1]=3; // Generate NTSC System M bars, Generate Frame timing internally |
157 | if (2 != (rc = i2c_master_send(i2c_client_s,buf,2))) | 146 | if (2 != (rc = i2c_master_send(i2c_client_s,buf,2))) |
158 | printk("bt832: i2c i/o error MBAR: rc == %d (should be 2)\n",rc); | 147 | printk("bt832: i2c i/o error MBAR: rc == %d (should be 2)\n",rc); |
159 | #endif | ||
160 | 148 | ||
161 | printk("Bt832: Camera Present: %s\n", | 149 | printk("Bt832: Camera Present: %s\n", |
162 | (buf[1+BT832_CAM_STATUS] & BT832_56_CAMERA_PRESENT) ? "yes":"no"); | 150 | (buf[1+BT832_CAM_STATUS] & BT832_56_CAMERA_PRESENT) ? "yes":"no"); |