Comment 16 for bug 93417

Revision history for this message
Peng Deng (d6g) wrote :

I also applied the patch to gspcav1-20071224 and compiled successfully. And after replaced the gspca.ko, my webcam won't scale down to 160x120 anymore. At least running "mplayer tv:// -tv driver=v4l:width=160:height=120
" gives me a correct 320x240 video stream and console output like this:

Selected device: Z-star Vimicro zc0301p

 Capabilites: capture

 Device type: 1

 Supported sizes: 320x240 => 640x480
   <<------------- before it was 160x120 => 640x480 here
 Inputs: 1

  0: ZC301-2: (tuner:0, norm:pal)

Using input 'ZC301-2'

Unable to set requested width: 160

Unable to set requested height: 120

And I looked at the source code of gspca_core.c, Luc's patch should do the trick and solve the problem.