<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/video/mx1_camera.c, branch linux-3.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.1.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.1.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2011-07-27T20:56:08Z</updated>
<entry>
<title>[media] V4L: soc-camera: remove soc-camera bus and devices on it</title>
<updated>2011-07-27T20:56:08Z</updated>
<author>
<name>Guennadi Liakhovetski</name>
</author>
<published>2011-07-15T23:03:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7dfff95366f48bf66f77c17cdc9ebd8be696ac5d'/>
<id>urn:sha1:7dfff95366f48bf66f77c17cdc9ebd8be696ac5d</id>
<content type='text'>
Now that v4l2 subdevices have got their own device objects, having
one more device in soc-camera clients became redundant and confusing.
This patch removes those devices and the soc-camera bus, they used to
reside on.

Signed-off-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Acked-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] Stop using linux/version.h on the remaining video drivers</title>
<updated>2011-07-27T20:53:16Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2011-06-25T14:28:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=64dc3c1a906467d90c24913b0b38dd13d9378f4f'/>
<id>urn:sha1:64dc3c1a906467d90c24913b0b38dd13d9378f4f</id>
<content type='text'>
Standardize the remaining video drivers to return the API version
for the VIDIOC_QUERYCAP version, instead of a per-driver version.

Those drivers had the version updated more recently or are SoC
drivers. Even so, it doesn't sound a good idea to keep a per-driver
version control, so, let's use the per-subsystem version control
instead.

Acked-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] V4L: mx1-camera: fix uninitialized variable</title>
<updated>2011-07-01T18:51:34Z</updated>
<author>
<name>Andre Bartke</name>
</author>
<published>2011-06-10T10:57:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=258c05637d6b6df2478a2808a3d2350c3c6782d6'/>
<id>urn:sha1:258c05637d6b6df2478a2808a3d2350c3c6782d6</id>
<content type='text'>
mx1_camera_add_device() can return an uninitialized value of ret.

Signed-off-by: Andre Bartke &lt;andre.bartke@gmail.com&gt;
[g.liakhovetski@gmx.de: modified the fix to remove "ret" completely]
Signed-off-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] v4l: soc-camera: switch to .unlocked_ioctl</title>
<updated>2010-12-31T00:29:26Z</updated>
<author>
<name>Guennadi Liakhovetski</name>
</author>
<published>2010-12-25T20:40:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b6a633c18ba83c0c8e96759a31d356bfb77e2b5f'/>
<id>urn:sha1:b6a633c18ba83c0c8e96759a31d356bfb77e2b5f</id>
<content type='text'>
Use the V4L mutex infrastructure in soc-camera core and drivers and switch to
.unlocked_ioctl.

Signed-off-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>V4L/DVB: videobuf: add ext_lock argument to the queue init functions (part 2)</title>
<updated>2010-10-21T03:06:19Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2010-09-30T12:18:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e3cfd447d01cf723ccda0ad6bfa2e85b73d3d747'/>
<id>urn:sha1:e3cfd447d01cf723ccda0ad6bfa2e85b73d3d747</id>
<content type='text'>
Missed a few init functions on non-Intel platforms the first time :-(

Signed-off-by: Hans Verkuil &lt;hverkuil@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>V4L/DVB: soc-camera: allow only one video queue per device</title>
<updated>2010-10-21T03:06:18Z</updated>
<author>
<name>Guennadi Liakhovetski</name>
</author>
<published>2010-08-17T17:29:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=57bee29d6e8cf721864fa47a18366bee5ff24f21'/>
<id>urn:sha1:57bee29d6e8cf721864fa47a18366bee5ff24f21</id>
<content type='text'>
Multiple user-space application instances can open the same video device, but
it only makes sense for one of them to manage the videobuffer queue and set
video format of the device. Restrict soc-camera respectively.

Signed-off-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>V4L/DVB: videobuf: add queue argument to videobuf_waiton()</title>
<updated>2010-10-21T03:06:14Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2010-09-26T12:01:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0e0809a58869e3e422985f868ad5e0da1fc0ba85'/>
<id>urn:sha1:0e0809a58869e3e422985f868ad5e0da1fc0ba85</id>
<content type='text'>
videobuf_waiton() must unlock and relock ext_lock if it has to wait.
For that to happen it needs the videobuf_queue pointer.

Don't attempt to unlock/relock q-&gt;ext_lock unless it was locked in the
first place.

vb-&gt;state has to be protected by a spinlock to be safe.

This patch is based on code from Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;.

[mchehab@redhat.com: add extra argument to a few missing places]
Signed-off-by: Hans Verkuil &lt;hverkuil@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>V4L/DVB: V4L2: Replace loops for finding max buffers in VIDIOC_REQBUFS callbacks</title>
<updated>2010-05-19T15:57:13Z</updated>
<author>
<name>Andreas Bombe</name>
</author>
<published>2010-03-21T19:02:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dab7e3106ddd6cbc3b55301228407b9d17ce7773'/>
<id>urn:sha1:dab7e3106ddd6cbc3b55301228407b9d17ce7773</id>
<content type='text'>
Due to obvious copy and paste coding a number of video capture drivers
which implement a limit on the buffer memory decremented the user
supplied buffer count in a while loop until it reaches an acceptable
value.

This is a silly thing to do when the maximum value can be directly
computed.

Signed-off-by: Andreas Bombe &lt;aeb@debian.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>V4L/DVB: mx1-camera: compile fix</title>
<updated>2010-05-06T22:20:51Z</updated>
<author>
<name>Uwe Kleine-König</name>
</author>
<published>2010-03-27T21:42:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b7d41d6d580743b1fed1b9560d948c9ef58564bd'/>
<id>urn:sha1:b7d41d6d580743b1fed1b9560d948c9ef58564bd</id>
<content type='text'>
This fixes a regression of

	7d58289 (mx1: prefix SOC specific defines with MX1_ and deprecate old names)

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Acked-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
Signed-off-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h</title>
<updated>2010-03-30T13:02:32Z</updated>
<author>
<name>Tejun Heo</name>
</author>
<published>2010-03-24T08:04:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5a0e3ad6af8660be21ca98a971cd00f331318c05'/>
<id>urn:sha1:5a0e3ad6af8660be21ca98a971cd00f331318c05</id>
<content type='text'>
percpu.h is included by sched.h and module.h and thus ends up being
included when building most .c files.  percpu.h includes slab.h which
in turn includes gfp.h making everything defined by the two files
universally available and complicating inclusion dependencies.

percpu.h -&gt; slab.h dependency is about to be removed.  Prepare for
this change by updating users of gfp and slab facilities include those
headers directly instead of assuming availability.  As this conversion
needs to touch large number of source files, the following script is
used as the basis of conversion.

  http://userweb.kernel.org/~tj/misc/slabh-sweep.py

The script does the followings.

* Scan files for gfp and slab usages and update includes such that
  only the necessary includes are there.  ie. if only gfp is used,
  gfp.h, if slab is used, slab.h.

* When the script inserts a new include, it looks at the include
  blocks and try to put the new include such that its order conforms
  to its surrounding.  It's put in the include block which contains
  core kernel includes, in the same order that the rest are ordered -
  alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
  doesn't seem to be any matching order.

* If the script can't find a place to put a new include (mostly
  because the file doesn't have fitting include block), it prints out
  an error message indicating which .h file needs to be added to the
  file.

The conversion was done in the following steps.

1. The initial automatic conversion of all .c files updated slightly
   over 4000 files, deleting around 700 includes and adding ~480 gfp.h
   and ~3000 slab.h inclusions.  The script emitted errors for ~400
   files.

2. Each error was manually checked.  Some didn't need the inclusion,
   some needed manual addition while adding it to implementation .h or
   embedding .c file was more appropriate for others.  This step added
   inclusions to around 150 files.

3. The script was run again and the output was compared to the edits
   from #2 to make sure no file was left behind.

4. Several build tests were done and a couple of problems were fixed.
   e.g. lib/decompress_*.c used malloc/free() wrappers around slab
   APIs requiring slab.h to be added manually.

5. The script was run on all .h files but without automatically
   editing them as sprinkling gfp.h and slab.h inclusions around .h
   files could easily lead to inclusion dependency hell.  Most gfp.h
   inclusion directives were ignored as stuff from gfp.h was usually
   wildly available and often used in preprocessor macros.  Each
   slab.h inclusion directive was examined and added manually as
   necessary.

6. percpu.h was updated not to include slab.h.

7. Build test were done on the following configurations and failures
   were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
   distributed build env didn't work with gcov compiles) and a few
   more options had to be turned off depending on archs to make things
   build (like ipr on powerpc/64 which failed due to missing writeq).

   * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
   * powerpc and powerpc64 SMP allmodconfig
   * sparc and sparc64 SMP allmodconfig
   * ia64 SMP allmodconfig
   * s390 SMP allmodconfig
   * alpha SMP allmodconfig
   * um on x86_64 SMP allmodconfig

8. percpu.h modifications were reverted so that it could be applied as
   a separate patch and serve as bisection point.

Given the fact that I had only a couple of failures from tests on step
6, I'm fairly confident about the coverage of this conversion patch.
If there is a breakage, it's likely to be something in one of the arch
headers which should be easily discoverable easily on most builds of
the specific arch.

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Guess-its-ok-by: Christoph Lameter &lt;cl@linux-foundation.org&gt;
Cc: Ingo Molnar &lt;mingo@redhat.com&gt;
Cc: Lee Schermerhorn &lt;Lee.Schermerhorn@hp.com&gt;
</content>
</entry>
</feed>
