Hi Marco,

On Sunday 15 June 2008, Marco Argiolas wrote:
> Hi everybody,
> I'm new of this mailing list and I haven't read all the messaged previously
> posted.
> However I'm just writing to you in order to help all those who have my same
> problem.

Thanks a lot for taking the time to help the Linux UVC driver users.

> Just two weeks ago I bought a new laptop: ASUS F3SR (cpu intel duo T500,
> 2GB ram, .....) with a Sonix webcam.
> On preinstalled Win Vista (excuse me for the heresy) everything works fine.
> But on Kubuntu 8.04 the webcam just show me upside-down images.
>
> I've try to solve this problem with a pipe and a vloopback module, but
> unluckly I could not make it works.
> So I decided to mod the uvcvideo driver...and after some damns I got it
> works.
> I've added very few lines of code and in just one function.
> Has attachement you can find the changed file "uvc_video.c".
> In the follow I report the changed function:

[snip]

The usual way of reporting such changes is to send a patch. You can easily 
generate one using

diff -u file.old file.new

> ---------------------------------------------------------------------------
>
> You can either:
> - copy this function and substitute to the original one in "uvc_video.c"
> or
> - use the attachement file and delete the original file.
>
> The following steps are intended for those who have already installed
> uvcvideo driver and their webcam is recognised but with upside-down images.
>
> Then you should do:
> - close all the program that are using the input video device
> - with your terminal go inside the folder where there are the uvcvideo
> source files and type:
> $ sudo modprobe -r uvcvideo
> $ KERNEL_VERSION=`uname -r`
> $ find /lib/modules/$KERNEL_VERSION -name uvcvideo.ko
> // with the previous command you should get a list of just 2 path in which
> uvcvideo.ko is already installed
> // one of this ends with "usb/media/uvcvideo.ko", just copy the OTHER one,
> in the next steps I will call this  "COPIED_PATH"!!
> $ make
> $ sudo make install
> // "make install" command will install uvcvideo.ko  in
> /lib/modules/$(KERNEL_VERSION)/usb/media/
> // but you also need to copy uvcvideo.ko in an another dir, and in my case
> on kubuntu  this folder
> // is /lib/modules/2.6.24-18-generic/ubuntu/media/usbvideo/  but you have
> to do:
> $ sudo cp uvcvideo.ko COPIED_DIR
> $ sudo modprobe uvcvideo
>
> Now your webcam is ready and should work in the right way.
> If you have  problems with color or image incoherency, please try to mod my
> code (refer to my comments inside the changed code).
>
> Let me know if you have some doubts....
> i know i am not an expert of linux...so i could have made some error in the
> previous shell commands!!
>
> Please let me know!!
> However i hope my help could be useful for someone!!

The patch will probably be quite useful for some users, but I'm afraid I can't 
integrate it in the driver. Image processing is userspace's job.

I'm pretty sure people will be grateful if you maintain the patch against the 
new driver versions.

Best regards,

Laurent Pinchart
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to