With version 10.0.11, in pwc-v4l.c , in pwc_vidioc_try_fmt(), a 
couple of the debug messages are switched around. When the user
tries V4L2_PIX_FMT_PWC1 with a camera that supports only codec23
the error messages says "codec23 is only supported for new pwc 
webcam". In this case it should say "codec1 is only supported 
for old pwc webcam". 

And vice-versa.

Diff attached.
-- 
Michael C Wescott <[EMAIL PROTECTED]>
*** pwc-v4l.c.orig	2006-01-07 10:51:06.000000000 -0500
--- pwc-v4l.c	2006-02-26 15:32:34.970042723 -0500
***************
*** 267,279 ****
  			break;
  		case V4L2_PIX_FMT_PWC1:
  			if (DEVICE_USE_CODEC23(pdev->type)) {
! 				PWC_DEBUG_IOCTL("codec23 is only supported for new pwc webcam\n");
  				return -EINVAL;
  			}
  			break;
  		case V4L2_PIX_FMT_PWC2:
  			if (DEVICE_USE_CODEC1(pdev->type)) {
! 				PWC_DEBUG_IOCTL("codec1 is only supported for old pwc webcam\n");
  				return -EINVAL;
  			}
  			break;
--- 267,279 ----
  			break;
  		case V4L2_PIX_FMT_PWC1:
  			if (DEVICE_USE_CODEC23(pdev->type)) {
! 				PWC_DEBUG_IOCTL("codec1 is only supported for old pwc webcam\n");
  				return -EINVAL;
  			}
  			break;
  		case V4L2_PIX_FMT_PWC2:
  			if (DEVICE_USE_CODEC1(pdev->type)) {
! 				PWC_DEBUG_IOCTL("codec23 is only supported for new pwc webcam\n");
  				return -EINVAL;
  			}
  			break;
_______________________________________________
pwc mailing list
[email protected]
http://lists.saillard.org/mailman/listinfo/pwc

Reply via email to