Lines Matching +full:0 +full:x120
29 #define WHITEBAL_REG 0x01
30 #define BRIGHTNESS_REG 0x02
31 #define SHARPNESS_REG 0x03
32 #define CONTRAST_REG 0x04
33 #define SATURATION_REG 0x05
44 0x00 -> 176x144, cropped
45 0x01 -> 176x144, cropped
46 0x02 -> 176x144, cropped
47 0x03 -> 176x144, cropped
48 0x04 -> 176x144, binned
49 0x05 -> 320x240
50 0x06 -> 320x240
51 0x07 -> 160x120, cropped
52 0x08 -> 160x120, cropped
53 0x09 -> 160x120, binned (note has 136 lines)
54 0x0a -> 160x120, binned (note has 136 lines)
55 0x0b -> 160x120, cropped
62 .priv = 0x0a},
67 .priv = 0x04},
72 .priv = 0x05},
82 if (gspca_dev->usb_err < 0) in reg_w()
84 ret = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), in reg_w()
85 0x02, in reg_w()
90 0, in reg_w()
92 if (ret < 0) { in reg_w()
104 if (gspca_dev->usb_err < 0) in reg_r()
106 ret = usb_control_msg(dev, usb_rcvctrlpipe(dev, 0), in reg_r()
107 0x03, in reg_r()
114 if (ret < 0) { in reg_r()
121 memset(gspca_dev->usb_buf, 0, 2); in reg_r()
127 reg_w(gspca_dev, 1, 0x0b); in konica_stream_on()
132 reg_w(gspca_dev, 0, 0x0b); in konica_stream_off()
143 return 0; in sd_config()
154 * Register 0x10 counts from 1 - 3, with 3 being "ready" in sd_init()
157 for (i = 0; i < 20; i++) { in sd_init()
158 reg_r(gspca_dev, 0, 0x10); in sd_init()
159 if (gspca_dev->usb_buf[0] == 3) in sd_init()
163 reg_w(gspca_dev, 0, 0x0d); in sd_init()
186 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in sd_start()
189 reg_w(gspca_dev, n, 0x08); in sd_start()
196 /* create 4 URBs - 2 on endpoint 0x83 and 2 on 0x082 */ in sd_start()
201 for (n = 0; n < 4; n++) { in sd_start()
202 i = n & 1 ? 0 : 1; in sd_start()
222 n & 1 ? 0x81 : 0x82); in sd_start()
228 for (i = 0; i < SD_NPKT; i++) { in sd_start()
234 return 0; in sd_start()
246 input_report_key(gspca_dev->input_dev, KEY_CAMERA, 0); in sd_stopN()
248 sd->snapshot_pressed = 0; in sd_stopN()
266 if (urb->status != 0) { in sd_isoc_irq()
275 if (st < 0) in sd_isoc_irq()
280 /* if this is a data URB (ep 0x82), wait */ in sd_isoc_irq()
302 for (i = 0; i < status_urb->number_of_packets; i++) { in sd_isoc_irq()
326 /* st: 0x80-0xff: frame start with frame number (ie 0-7f) in sd_isoc_irq()
328 * bit 0 0: keep packet in sd_isoc_irq()
331 * bit 4 0 button not clicked in sd_isoc_irq()
335 if (st & 0x80) { in sd_isoc_irq()
336 gspca_frame_add(gspca_dev, LAST_PACKET, NULL, 0); in sd_isoc_irq()
337 gspca_frame_add(gspca_dev, FIRST_PACKET, NULL, 0); in sd_isoc_irq()
340 u8 button_state = st & 0x40 ? 1 : 0; in sd_isoc_irq()
349 if (st & 0x01) in sd_isoc_irq()
359 if (st < 0) in sd_isoc_irq()
364 if (st < 0) in sd_isoc_irq()
373 gspca_dev->usb_err = 0; in sd_s_ctrl()
376 return 0; in sd_s_ctrl()
419 V4L2_CID_BRIGHTNESS, 0, 9, 1, 4); in sd_init_controls()
422 V4L2_CID_CONTRAST, 0, 9, 1, 4); in sd_init_controls()
424 V4L2_CID_SATURATION, 0, 9, 1, 4); in sd_init_controls()
427 0, 33, 1, 25); in sd_init_controls()
429 V4L2_CID_SHARPNESS, 0, 9, 1, 4); in sd_init_controls()
435 return 0; in sd_init_controls()
453 {USB_DEVICE(0x04c8, 0x0720)}, /* Intel YC 76 */