Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933625AbZINU0H (ORCPT ); Mon, 14 Sep 2009 16:26:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933829AbZINU0G (ORCPT ); Mon, 14 Sep 2009 16:26:06 -0400 Received: from mail-fx0-f217.google.com ([209.85.220.217]:60489 "EHLO mail-fx0-f217.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932278AbZINU0D convert rfc822-to-8bit (ORCPT ); Mon, 14 Sep 2009 16:26:03 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=PDgEVS/9vM1DHvgqbFUGEePyBH4wgsh6Zj7rMbiC2+EvUBRx23IB4CadBGszBOs2q0 q9VKCp5nG5mx07Ev7bzJ5A2ur0x/ok0B71hsw/Zy6uCGKyR/06Z7D763BSG4ppTl+8T4 xgp+WUWfxMyneAZiNb51GI3SKo96tf6vWDS4k= MIME-Version: 1.0 In-Reply-To: <9b2b86520909140920y293a2a72lc369340a0f823970@mail.gmail.com> References: <200909141730.40467.baeckham@gmx.net> <9b2b86520909140920y293a2a72lc369340a0f823970@mail.gmail.com> Date: Mon, 14 Sep 2009 16:26:04 -0400 X-Google-Sender-Auth: b442ebb4539fc345 Message-ID: <30353c3d0909141326x6e81b2er77e738bc532ae7ed@mail.gmail.com> Subject: Re: parameter for module gspca_sn9c20x From: David Ellingsworth To: Alan Jenkins Cc: baeckham@gmx.net, linux-modules , linux-media@vger.kernel.org, linux-kernel Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1987 Lines: 49 On Mon, Sep 14, 2009 at 12:20 PM, Alan Jenkins wrote: > [CC linux-media] ?The linux-modules list is for the program "modprobe" > etc, not the actual kernel drivers. > > On 9/14/09, baeckham@gmx.net 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. >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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/