Lines Matching +full:0 +full:x3200
41 #define GET_STATUS_B00 0x0B00
42 #define SENSOR_TYPE_FORMATTER1 0x0C00
43 #define GET_STATUS_3000 0x3000
44 #define READ_RAW_Y_MEAN_FORMATTER 0x3100
45 #define SET_POWER_SAVE_MODE_FORMATTER 0x3200
46 #define MIRROR_IMAGE_FORMATTER 0x3300
47 #define LED_FORMATTER 0x3400
48 #define LOWLIGHT 0x3500
49 #define GET_STATUS_3600 0x3600
50 #define SENSOR_TYPE_FORMATTER2 0x3700
51 #define GET_STATUS_3800 0x3800
52 #define GET_STATUS_4000 0x4000
53 #define GET_STATUS_4100 0x4100 /* Get */
54 #define CTL_STATUS_4200 0x4200 /* [GS] 1 */
57 #define VIDEO_OUTPUT_CONTROL_FORMATTER 0x0100
74 An alternate value of 0 means this mode is not available at all.
100 rc = usb_control_msg(pdev->udev, usb_rcvctrlpipe(pdev->udev, 0), in recv_control_msg()
105 if (rc < 0) in recv_control_msg()
118 rc = usb_control_msg(pdev->udev, usb_sndctrlpipe(pdev->udev, 0), in send_video_command()
123 if (rc >= 0) in send_video_command()
134 return usb_control_msg(pdev->udev, usb_sndctrlpipe(pdev->udev, 0), in send_control_msg()
144 int fps, ret = 0; in set_video_mode_Nala()
148 0, 0, 0, 0, 4, /* 0-4 */ in set_video_mode_Nala()
157 { 0, 0, 0, 0, 0, /* 0-4 */ in set_video_mode_Nala()
166 if (size < 0 || size > PSZ_CIF) in set_video_mode_Nala()
177 if (pEntry->alternate == 0) in set_video_mode_Nala()
183 if (ret < 0) in set_video_mode_Nala()
193 pdev->width = pwc_image_sizes[size][0]; in set_video_mode_Nala()
207 pdev->vbandlength = 0; in set_video_mode_Nala()
212 return 0; in set_video_mode_Nala()
220 int fps, ret = 0; in set_video_mode_Timon()
222 if (size >= PSZ_MAX || *compression < 0 || *compression > 3) in set_video_mode_Timon()
235 if (pChoose->alternate != 0) in set_video_mode_Timon()
240 if (pChoose->alternate == 0) in set_video_mode_Timon()
246 if (ret < 0) in set_video_mode_Timon()
249 if (pChoose->bandlength > 0 && pixfmt == V4L2_PIX_FMT_YUV420) in set_video_mode_Timon()
256 pdev->width = pwc_image_sizes[size][0]; in set_video_mode_Timon()
259 if (pChoose->bandlength > 0) in set_video_mode_Timon()
263 return 0; in set_video_mode_Timon()
271 int fps, ret = 0; in set_video_mode_Kiara()
273 if (size >= PSZ_MAX || *compression < 0 || *compression > 3) in set_video_mode_Kiara()
286 if (pChoose->alternate != 0) in set_video_mode_Kiara()
291 if (pChoose->alternate == 0) in set_video_mode_Kiara()
297 if (ret < 0) in set_video_mode_Kiara()
300 if (pChoose->bandlength > 0 && pixfmt == V4L2_PIX_FMT_YUV420) in set_video_mode_Kiara()
307 pdev->width = pwc_image_sizes[size][0]; in set_video_mode_Kiara()
310 if (pdev->vbandlength > 0) in set_video_mode_Kiara()
316 return 0; in set_video_mode_Kiara()
339 if (ret < 0) { in pwc_set_video_mode()
345 return 0; in pwc_set_video_mode()
352 for (i = 0; i < PWC_FPS_MAX_NALA; i++) { in pwc_get_fps_Nala()
354 if (index--==0) return Nala_fps_vector[i]; in pwc_get_fps_Nala()
357 return 0; in pwc_get_fps_Nala()
364 for (i = 0; i < PWC_FPS_MAX_KIARA; i++) { in pwc_get_fps_Kiara()
366 if (index--==0) return Kiara_fps_vector[i]; in pwc_get_fps_Kiara()
369 return 0; in pwc_get_fps_Kiara()
376 for (i=0; i < PWC_FPS_MAX_TIMON; i++) { in pwc_get_fps_Timon()
378 if (index--==0) return Timon_fps_vector[i]; in pwc_get_fps_Timon()
381 return 0; in pwc_get_fps_Timon()
406 if (ret < 0) in pwc_get_u8_ctrl()
409 *data = pdev->ctrl_buf[0]; in pwc_get_u8_ctrl()
410 return 0; in pwc_get_u8_ctrl()
417 pdev->ctrl_buf[0] = data; in pwc_set_u8_ctrl()
419 if (ret < 0) in pwc_set_u8_ctrl()
422 return 0; in pwc_set_u8_ctrl()
430 if (ret < 0) in pwc_get_s8_ctrl()
433 *data = ((s8 *)pdev->ctrl_buf)[0]; in pwc_get_s8_ctrl()
434 return 0; in pwc_get_s8_ctrl()
442 if (ret < 0) in pwc_get_u16_ctrl()
445 *data = (pdev->ctrl_buf[1] << 8) | pdev->ctrl_buf[0]; in pwc_get_u16_ctrl()
446 return 0; in pwc_get_u16_ctrl()
453 pdev->ctrl_buf[0] = data & 0xff; in pwc_set_u16_ctrl()
456 if (ret < 0) in pwc_set_u16_ctrl()
459 return 0; in pwc_set_u16_ctrl()
466 ret = send_control_msg(pdev, SET_STATUS_CTL, value, NULL, 0); in pwc_button_ctrl()
467 if (ret < 0) in pwc_button_ctrl()
470 return 0; in pwc_button_ctrl()
485 pdev->ctrl_buf[0] = 0x00; /* active */ in pwc_camera_power()
487 pdev->ctrl_buf[0] = 0xFF; /* power save */ in pwc_camera_power()
490 if (r < 0) in pwc_camera_power()
500 return 0; in pwc_set_leds()
503 if (on_value < 0) in pwc_set_leds()
504 on_value = 0; in pwc_set_leds()
505 if (on_value > 0xff) in pwc_set_leds()
506 on_value = 0xff; in pwc_set_leds()
507 if (off_value < 0) in pwc_set_leds()
508 off_value = 0; in pwc_set_leds()
509 if (off_value > 0xff) in pwc_set_leds()
510 off_value = 0xff; in pwc_set_leds()
512 pdev->ctrl_buf[0] = on_value; in pwc_set_leds()
517 if (r < 0) in pwc_set_leds()
536 if (ret < 0) in pwc_get_cmos_sensor()
539 *sensor = pdev->ctrl_buf[0] | 0x100; in pwc_get_cmos_sensor()
541 *sensor = pdev->ctrl_buf[0]; in pwc_get_cmos_sensor()
542 return 0; in pwc_get_cmos_sensor()