/* 00: indoor (incandescant lighting) 01: outdoor (sunlight) 02: fluorescent lighting 03: manual 04: auto  */
int pwc_set_awb(struct pwc_device *pdev, int mode)
/* 00: indoor (incandescant lighting) 01: outdoor (sunlight) 02: fluorescent lighting 03: manual 04: auto  */
int pwc_set_awb(struct pwc_device *pdev, int mode)
{
	char buf;
	int ret;
	if (mode < 0)
	    mode = 0;
	if (mode > 4)
	    mode = 4;
	buf = mode & 0x07;
	ret = send_control_msg(pdev,
		SET_CHROM_CTL, WB_MODE_FORMATTER, &buf, sizeof(buf));
	if (ret < 0)
		return ret;
	return 0;
}