From: Valentin Longchamp <valentin.longchamp@epfl.ch>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>,
Magnus Damm <magnus.damm@gmail.com>,
"m-karicheri2@ti.com" <m-karicheri2@ti.com>,
Robert Jarzmik <robert.jarzmik@free.fr>,
Paulius Zaleckas <paulius.zaleckas@teltonika.lt>,
Darius Augulis <augulis.darius@gmail.com>
Subject: Re: [PATCH 0/4] soc-camera: cleanup + scaling / cropping API fix
Date: Wed, 05 Aug 2009 15:54:13 +0200 [thread overview]
Message-ID: <4A798F05.808@epfl.ch> (raw)
In-Reply-To: <Pine.LNX.4.64.0907302019270.6813@axis700.grange>
Hi Guennadi,
Guennadi Liakhovetski wrote:
> On Thu, 30 Jul 2009, Valentin Longchamp wrote:
>
>> Hi Guennadi,
>>
>> Guennadi Liakhovetski wrote:
>>> Hi all
>>>
>>> here goes a new iteration of the soc-camera scaling / cropping API
>>> compliance fix. In fact, this is only the first _complete_ one, the previous
>>> version only converted one platform - i.MX31 and one camera driver -
>>> MT9T031. This patch converts all soc-camera drivers. The most difficult one
>>> is the SuperH driver, since it is currently the only host driver
>>> implementing own scaling and cropping on top of those of sensor drivers. The
>>> first three patches in the series are purely cosmetic, unifying device
>>> objects, used in dev_dbg, dev_info... functions. These patches extend the
>>> patch series uploaded at
>>> http://download.open-technology.de/soc-camera/20090701/ with the actual
>>> scaling / cropping patch still in
>>> http://download.open-technology.de/testing/. The series is still based on
>>> the git://git.pengutronix.de/git/imx/linux-2.6.git (now gone) for-rmk
>>> branch, but the i.MX31 patches, that my patch-series depends on, are now in
>>> the mainline, so, I will be rebasing the stack soon. In the meantime, I'm
>>> afraid, it might require some fiddling to test the stack.
>> I'd love to give your patches a try. But the fiddling looks very hard for me
>> ... patch 0010 does not apply correctly for me, and a 130K patch to do by hand
>> is .. looooong.
>
> Ok, a rebased patch set is under
>
> http://download.open-technology.de/soc-camera/20090730/
>
> now based on 2.6.31-rc4. Notice, all patches are now in the above
> directory, .../testing is empty again.
>
I have some feedback with your patches. I have tried to add support for
my platform by doing the same as you did for pcm037. However it does not
work. I have applied your patches directly on 2.6.31-rc4.
The first problem is that in order to be able to probe the camera
correctly, I cannot have mt9t031 built as module and not loaded at this
time. This certainly is not critcal for the time being, but it should be
handled correctly later (the error comes from
v4l2_i2c_new_subdev_board -called from soc_camera_init_i2c - that does
not create the subdev with the module not loaded - kernel boot).
The second and bigger problem is that even if I can register everything
on the system (/dev/video0 gets created), when I try to access it, I get
a device or resourse busy error.
Kernel log (end):
> Freescale High-Speed USB SOC Device Controller driver (Apr 20, 2007)
> Platform driver 'fsl-usb2-udc' needs updating - please use dev_pm_ops
> i2c /dev entries driver
> Linux video capture interface: v2.00
> camera 0-0: Probing 0-0
> mx3-camera mx3-camera.0: MX3 Camera driver attached to camera 0
> mt9t031 0-005d: Detected a MT9T031 chip ID 1621
> mx3-camera mx3-camera.0: MX3 Camera driver detached from camera 0
> i.MX SDHC driver
> i.MX SDHC driver
> TCP cubic registered
> NET: Registered protocol family 17
> RPC: Registered udp transport module.
> RPC: Registered tcp transport module.
> VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 2
> Waiting for root device /dev/mmcblk0p1...
> mmc0: new SD card at address b368
> mmcblk0: mmc0:b368 NCard 1.85 GiB
> mmcblk0: p1
> EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
> VFS: Mounted root (ext2 filesystem) on device 179:1.
> Freeing init memory: 100K
> root@mx31moboard:~# ./gst.sh
> Setting pipeline to PAUSED ...
> mx3-camera mx3-camera.0: MX3 Camera driver attached to camera 0
> mx3-camera mx3-camera.0: MX3 Camera driver detached from camera 0
> ERROR: Pipeline doesn't want to pause.
> ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not open .
> Additional debug info:
> v4l2_calls.c(477): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
> system error: Device or resource busy
> Setting pipeline to NULL ...
> Freeing pipeline ...
I have noticed that using the old way of doing the things (without
v4lsubdev support, using some code that works with 2.6.30), it does not
work either with 2.6.31-rc4 (same device or resource busy). So maybe am
I missing something here already. Here is the "log":
> root@mx31moboard:~# insmod modules/mt9t031.ko
> camera 0-0: MX3 Camera driver attached to camera 0
> camera 0-0: Detected a MT9T031 chip ID 1621
> camera 0-0: MX3 Camera driver detached from camera 0
> root@mx31moboard:~# camera 0-0: MX3 Camera driver attached to camera 0
> camera 0-0: MX3 Camera driver detached from camera 0
> root@mx31moboard:~# ./gst.sh
> Setting pipeline to PAUSED ...
> camera 0-0: MX3 Camera driver attached to camera 0
> camera 0-0: MX3 Camera driver detached from camera 0
> ERROR: Pipeline doesn't want to pause.
> ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not open .
> Additional debug info:
> v4l2_calls.c(477): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
> system error: Device or resource busy
> Setting pipeline to NULL ...
> Freeing pipeline ...
Best Regards
Val
--
Valentin Longchamp, PhD Student, EPFL-STI-LSRO1
valentin.longchamp@epfl.ch, Phone: +41216937827
http://people.epfl.ch/valentin.longchamp
MEA3485, Station 9, CH-1015 Lausanne
next prev parent reply other threads:[~2009-08-05 13:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-29 15:18 [PATCH 0/4] soc-camera: cleanup + scaling / cropping API fix Guennadi Liakhovetski
2009-07-29 15:18 ` [PATCH 1/4] soc-camera: Use I2C device for dev_{dbg,info,...} output in all clients Guennadi Liakhovetski
2009-07-29 15:18 ` [PATCH 2/4] soc-camera: Use camera device object for core output Guennadi Liakhovetski
2009-07-29 15:18 ` [PATCH 3/4] soc-camera: Use video device object for output in host drivers Guennadi Liakhovetski
2009-07-29 15:18 ` [PATCH 4/4] soc-camera: V4L2 API compliant scaling (S_FMT) and cropping (S_CROP) Guennadi Liakhovetski
2009-07-29 19:05 ` [PATCH 4/4 v2] " Guennadi Liakhovetski
2009-07-30 13:34 ` [PATCH 0/4] soc-camera: cleanup + scaling / cropping API fix Valentin Longchamp
2009-07-30 18:23 ` Guennadi Liakhovetski
2009-07-31 7:46 ` Valentin Longchamp
2009-08-05 13:54 ` Valentin Longchamp [this message]
2009-08-05 17:42 ` Guennadi Liakhovetski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A798F05.808@epfl.ch \
--to=valentin.longchamp@epfl.ch \
--cc=augulis.darius@gmail.com \
--cc=g.liakhovetski@gmx.de \
--cc=linux-media@vger.kernel.org \
--cc=m-karicheri2@ti.com \
--cc=magnus.damm@gmail.com \
--cc=paulius.zaleckas@teltonika.lt \
--cc=robert.jarzmik@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox