28 Jul, 2011

3 commits


22 Mar, 2011

2 commits

  • Used for storing subdev information per file handle and hold V4L2 file
    handle.

    Signed-off-by: Stanimir Varbanov
    Signed-off-by: Antti Koskipaa
    Signed-off-by: Laurent Pinchart
    Acked-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Stanimir Varbanov
     
  • The media_devnode structure provides support for registering and
    unregistering character devices using a dynamic major number. Reference
    counting is handled internally, making device drivers easier to write
    without having to solve the open/disconnect race condition issue over
    and over again.

    The code is based on video/v4l2-dev.c.

    [mchehab@redhat.com: Remove linux/smp_lock.h include to not break compilation on bisect]
    Signed-off-by: Laurent Pinchart
    Acked-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Laurent Pinchart
     

29 Dec, 2010

4 commits


09 Nov, 2010

1 commit

  • All of the hard problems for BKL removal appear to be solved in the
    v4l-dvb/master tree. This removes the BKL from the various open
    functions that do not need it, or only use it to protect an
    open count.

    The zoran driver is nontrivial in this regard, so I introduce
    a new mutex that locks both the open/release and the ioctl
    functions. Someone with access to the hardware can probably
    improve that by using the existing lock in all cases.

    Finally, all drivers that still use the locked version of the
    ioctl function now get called under a new mutex instead of
    the BKL.

    Signed-off-by: Arnd Bergmann
    Signed-off-by: Mauro Carvalho Chehab

    Arnd Bergmann
     

21 Oct, 2010

1 commit

  • With all the patches we have queued in the BKL removal tree, only a
    few dozen modules are left that actually rely on the BKL, and even
    there are lots of low-hanging fruit. We need to decide what to do
    about them, this patch illustrates one of the options:

    Every user of the BKL is marked as 'depends on BKL' in Kconfig,
    and the CONFIG_BKL becomes a user-visible option. If it gets
    disabled, no BKL using module can be built any more and the BKL
    code itself is compiled out.

    The one exception is file locking, which is practically always
    enabled and does a 'select BKL' instead. This effectively forces
    CONFIG_BKL to be enabled until we have solved the fs/lockd
    mess and can apply the patch that removes the BKL from fs/locks.c.

    Signed-off-by: Arnd Bergmann

    Arnd Bergmann
     

16 Dec, 2009

1 commit


17 Jun, 2009

1 commit


30 Mar, 2009

1 commit


20 Jul, 2008

3 commits


14 May, 2008

1 commit

  • If one of DVB_CORE or VIDEO_DEV is a module, the modules that can be used by
    both DVB and V4L cores should also be a module, otherwise, it will break its
    dependencies. This Kconfig logic implements the following:

    CONFIG_VIDEO_DEV CONFIG_DVB_CORE CONFIG_VIDEO_MEDIA
    N N N
    N M M
    N Y Y
    M N M
    M M M
    M Y M
    Y N Y
    Y M M
    Y Y Y

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

30 Apr, 2008

2 commits


25 Apr, 2008

5 commits


18 Feb, 2008

3 commits

  • Signed-off-by: Paul Mundt
    Signed-off-by: Mauro Carvalho Chehab

    Paul Mundt
     
  • As pointed by Adrian Bunk, with I2C=m and VIDEO_DEV=y, videodev brokes.

    This patch moves the functions that videodev needs from v4l2-common. It also
    fixes some Kconfig changes.

    After this patch, I2C=m / VIDEO_DEV=y will make v4l2 core statically linked
    into kernel. v4l2-common will be m, and all V4L drivers will also be m.

    This approach is very conservative, since it is possible to have V4L drivers
    that don't need I2C or v4l2-common. The better is to map what drivers really
    need v4l2-common, making them to select v4l2-common, and allowing the others to
    be 'y', 'm' and 'n'.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Adrian Bunk reported:

    > > Commit 8ffbc6559493c64d6194c92d856196fdaeb8a5fb causes the following
    > > compile error with CONFIG_VIDEO_DEV=y/m, CONFIG_I2C=n:
    > >
    > >
    > >
    > > ...
    > > MODPOST 26 modules
    > > ERROR: "i2c_attach_client" [drivers/media/video/v4l2-common.ko] undefined!
    > > make[2]: *** [__modpost] Error 1
    > >
    > >

    ...

    And what should happen if CONFIG_VIDEO_DEV=y, CONFIG_I2C=m?

    CC: Adrian Bunk
    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

26 Jan, 2008

4 commits


05 Nov, 2007

1 commit


10 Oct, 2007

5 commits


19 Jul, 2007

1 commit


12 May, 2007

1 commit

  • * 'master' of ssh://master.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb: (44 commits)
    V4L/DVB (5571): V4l1-compat: Make VIDIOCSPICT return errors in a useful way
    V4L/DVB (5624): Radio-maestro.c cleanup
    V4L/DVB (5623): Dsbr100.c Replace usb_dsbr100_do_ioctl to use video_ioctl2
    V4L/DVB (5622): Radio-zoltrix.c cleanup
    V4L/DVB (5621): Radio-cadet.c Replace cadet_do_ioctl to use video_ioctl2
    V4L/DVB (5619): Dvb-usb: fix typo
    V4L/DVB (5618): Cx88: Drop the generic i2c client from cx88-vp3054-i2c
    V4L/DVB (5617): V4L2: videodev, allow debugging
    V4L/DVB (5614): M920x: Disable second adapter on LifeView TV Walker Twin
    V4L/DVB (5613): M920x: loosen up 80-col limit
    V4L/DVB (5612): M920x: rename function prefixes from m9206_foo to m920x_foo
    V4L/DVB (5611): M920x: replace deb_rc with deb
    V4L/DVB (5610): M920x: remove duplicated code
    V4L/DVB (5609): M920x: group like functions together
    V4L/DVB (5608): M920x: various whitespace cleanups
    V4L/DVB (5607): M920x: Initial support for devices likely manufactured by Dposh
    V4L/DVB (5606): M920x: add "c-basic-offset: 8" to help emacs to enforce tabbing
    V4L/DVB (5605): M920x: Add support for LifeView TV Walker Twin
    V4L/DVB (5603): V4L: Prevent queueing queued buffers.
    V4L/DVB (5602): Enable DiSEqC in Starbox II (vp7021a)
    ...

    Linus Torvalds