Skip to contentSkip to conversation

parameter for module gspca_sn9c20x

DISCUSSION Alan Jenkins 2 participants 2 messages Sep 14, 2009 1 message not in the archive Media (V4L/DVB)

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

[CC linux-media] The linux-modules list is for the program "modprobe" etc, not the actual kernel drivers.

Quoted 16 lines · On 9/14/09, [email protected] <[email protected]> wrote:

I have a built-in webcam in my laptop: 0c45:624f Microdia PC Camera (SN9C201)

Till today I used the driver from [groups.google.de] to make it work. But now I found the driver in the 2.6.31 kernel:

	 gspca_sn9c20x

Unfortunately I have to flip the image vertically so it is displayed right, otherwise it is upside-
down.

With the google-groups-driver I had to use the parameter vflip=1 to flip the image. But with the
kernel module gspca_sn9c20x this is not working:

Quoted 7 lines
# modprobe gspca_sn9c20x vflip=1
FATAL: Error inserting gspca_sn9c20x
(/lib/modules/2.6.31/kernel/drivers/media/video/gspca/gspca_sn9c20x.ko):
Unknown symbol in module,
or unknown parameter (see dmesg)

Does anyone know how to flip the image?

All I can say is it doesn't appear to be a module parameter, because there aren't any module parameters in the mainline driver :-).

Regards
Alan

#2 lore raw
Quoted 27 lines · Alan Jenkins

[CC linux-media]  The linux-modules list is for the program "modprobe" etc, not the actual kernel drivers.

Quoted 23 lines · On 9/14/09, [email protected] <[email protected]> wrote:

I have a built-in webcam in my laptop: 0c45:624f Microdia PC Camera (SN9C201)

Till today I used the driver from [groups.google.de] to make it work. But now I found the driver in the 2.6.31 kernel:

       gspca_sn9c20x

Unfortunately I have to flip the image vertically so it is displayed right, otherwise it is upside-
down.

With the google-groups-driver I had to use the parameter vflip=1 to flip the image. But with the
kernel module gspca_sn9c20x this is not working:

# modprobe gspca_sn9c20x vflip=1
FATAL: Error inserting gspca_sn9c20x
(/lib/modules/2.6.31/kernel/drivers/media/video/gspca/gspca_sn9c20x.ko):
Unknown symbol in module,
or unknown parameter (see dmesg)

Does anyone know how to flip the image?

You might want to take a look at libv4l. Several cameras, like yours are known to have the sensor mounted upside down. Kernel drivers typically do not correct for this since it's impossible for the driver to know if the sensor is upside down or not on all supported devices.

Quoted 1 line

From what I recall, libv4l does a couple of checks to determine if the

sensor is upside down or not and corrects the image if necessary. It might also provide additional controls that allow you to flip the image even if it's not a sensor that's known to be mounted upside down. libv4l is compatible with all v4l2 applications simply by pre-loading the library for the application using LDPRELOAD.

Regards,

David Ellingsworth