11 Jan, 2012

1 commit


30 Dec, 2011

1 commit

  • Linux 3.2-rc7

    * tag 'v3.2-rc7': (1304 commits)
    Linux 3.2-rc7
    netfilter: xt_connbytes: handle negation correctly
    Btrfs: call d_instantiate after all ops are setup
    Btrfs: fix worker lock misuse in find_worker
    net: relax rcvbuf limits
    rps: fix insufficient bounds checking in store_rps_dev_flow_table_cnt()
    net: introduce DST_NOPEER dst flag
    mqprio: Avoid panic if no options are provided
    bridge: provide a mtu() method for fake_dst_ops
    md/bitmap: It is OK to clear bits during recovery.
    md: don't give up looking for spares on first failure-to-add
    md/raid5: ensure correct assessment of drives during degraded reshape.
    md/linear: fix hot-add of devices to linear arrays.
    sparc64: Fix MSIQ HV call ordering in pci_sun4v_msiq_build_irq().
    pata_of_platform: Add missing CONFIG_OF_IRQ dependency.
    ipv4: using prefetch requires including prefetch.h
    VFS: Fix race between CPU hotplug and lglocks
    vfs: __read_cache_page should use gfp argument rather than GFP_KERNEL
    USB: Fix usb/isp1760 build on sparc
    net: Add a flow_cache_flush_deferred function
    ...

    Conflicts:
    drivers/media/common/tuners/tda18218.c
    drivers/media/video/omap3isp/ispccdc.c
    drivers/staging/media/as102/as102_drv.h

    Mauro Carvalho Chehab
     

11 Dec, 2011

3 commits


25 Nov, 2011

1 commit

  • There's one comment that has been copied from bttv to many other
    media/video drivers:

    /* init + register i2c algo-bit adapter */

    Meanwhile, many drivers use hardware I2C implementations instead of
    relying on i2c-algo-bit, so this comment is misleading. Remove the
    reference to "algo-bit" from all drivers, to avoid any confusion. This
    is the best way to ensure that the comments won't go out of sync
    again. Anyone interested in the implementation details would rather
    look at the code itself.

    Signed-off-by: Jean Delvare
    Signed-off-by: Mauro Carvalho Chehab

    Jean Delvare
     

04 Sep, 2011

1 commit

  • Usage of these flags has been deprecated for nearly 4 years by:

    commit f77bf01425b11947eeb3b5b54685212c302741b8
    Author: Sam Ravnborg
    Date: Mon Oct 15 22:25:06 2007 +0200

    kbuild: introduce ccflags-y, asflags-y and ldflags-y

    Moreover, these flags (at least EXTRA_CFLAGS) have been documented for command
    line use. By default, gmake(1) do not override command line setting, so this is
    likely to result in build failure or unexpected behavior.

    Replace their usage by Kbuild's `{as,cc,ld}flags-y'.

    Cc: Sam Ravnborg
    Cc: Mauro Carvalho Chehab
    Cc: linux-media@vger.kernel.org
    Signed-off-by: Arnaud Lacombe
    Acked-by: Laurent Pinchart
    Signed-off-by: Mauro Carvalho Chehab

    Arnaud Lacombe
     

28 Jul, 2011

1 commit

  • All the modified drivers didn't have any version increment since
    Jan, 1 2011. Several of them didn't have any version increment
    for a long time, even having new features and important bug fixes
    happening.

    As we're now filling the QUERYCAP version with the current Kernel
    Release, we don't need to maintain a per-driver version control
    anymore. So, let's just use the default.

    In order to preserve the Kernel module version history, a
    KERNEL_VERSION() macro were added to all modified drivers, and
    the extraver number were incremented.

    I opted to preserve the per-driver version control to a few
    pwc, pvrusb2, s2255, s5p-fimc and sh_vou.

    A few drivers are still using the legacy way to handle ioctl's.
    So, we can't do such change on them, otherwise, they'll break.
    Those are: uvc, et61x251 and sn9c102.

    The rationale is that the per-driver version control seems to be
    actively maintained on those.

    Yet, I think that the better for them would be to just use the
    default version numbering, instead of doing that by themselves.

    While here, removed a few uneeded include linux/version.h

    Acked-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

31 Mar, 2011

1 commit


22 Mar, 2011

2 commits

  • au0828-dvb.c:99:6: warning: variable 'ptr' set but not used [-Wunused-but-set-variable]
    au0828-video.c:1180:25: warning: variable 'maxheight' set but not used [-Wunused-but-set-variable]
    au0828-video.c:1180:15: warning: variable 'maxwidth' set but not used [-Wunused-but-set-variable]
    bttv-input.c:196:16: warning: variable 'current_jiffies' set but not used [-Wunused-but-set-variable]

    Those variables are not used at all, so just remove them.

    Cc: Steven Toth
    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • tuner-core has no business to do with digital TV. So, don't use
    T_DIGITAL_TV on it, as it has no code to distinguish between
    them, and nobody fills T_DIGITAL_TV right.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

02 Feb, 2011

1 commit

  • au0828: fix VBI handling when in V4L2 streaming mode

    It turns up V4L2 streaming mode (a.k.a mmap) was broken for VBI streaming.
    This was causing libzvbi to fall back to V4L1 capture mode, and is a blatent
    violation of the V4L2 specification.

    Make the implementation work properly in this mode.

    Signed-off-by: Devin Heitmueller
    Signed-off-by: Mauro Carvalho Chehab

    Devin Heitmueller
     

29 Dec, 2010

6 commits


22 Nov, 2010

1 commit


23 Oct, 2010

1 commit


21 Oct, 2010

1 commit


03 Aug, 2010

2 commits

  • This function has sanity checks to make sure that "dev" is non-null. I
    moved the dereference down below the checks. In the current code "dev"
    is never actually null.

    Signed-off-by: Dan Carpenter
    Acked-by: Devin Heitmueller
    Signed-off-by: Mauro Carvalho Chehab

    Dan Carpenter
     
  • Add NTSC closed captioning support for au0828 based products. Note that this
    also required reworking the locking to support streaming on both the video and
    VBI devices (the logic for which I copied from my changes made to the em28xx
    several months ago).

    This work was sponsored by GetWellNetwork Inc.

    Signed-off-by: Devin Heitmueller
    Signed-off-by: Mauro Carvalho Chehab

    Devin Heitmueller
     

21 May, 2010

2 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (229 commits)
    USB: remove unused usb_buffer_alloc and usb_buffer_free macros
    usb: musb: update gfp/slab.h includes
    USB: ftdi_sio: fix legacy SIO-device header
    USB: kl5usb105: reimplement using generic framework
    USB: kl5usb105: minor clean ups
    USB: kl5usb105: fix memory leak
    USB: io_ti: use kfifo to implement write buffering
    USB: io_ti: remove unsused private counter
    USB: ti_usb: use kfifo to implement write buffering
    USB: ir-usb: fix incorrect write-buffer length
    USB: aircable: fix incorrect write-buffer length
    USB: safe_serial: straighten out read processing
    USB: safe_serial: reimplement read using generic framework
    USB: safe_serial: reimplement write using generic framework
    usb-storage: always print quirks
    USB: usb-storage: trivial debug improvements
    USB: oti6858: use port write fifo
    USB: oti6858: use kfifo to implement write buffering
    USB: cypress_m8: use kfifo to implement write buffering
    USB: cypress_m8: remove unused drain define
    ...

    Fix up conflicts (due to usb_buffer_alloc/free renaming) in
    drivers/input/tablet/acecad.c
    drivers/input/tablet/kbtab.c
    drivers/input/tablet/wacom_sys.c
    drivers/media/video/gspca/gspca.c
    sound/usb/usbaudio.c

    Linus Torvalds
     
  • For more clearance what the functions actually do,

    usb_buffer_alloc() is renamed to usb_alloc_coherent()
    usb_buffer_free() is renamed to usb_free_coherent()

    They should only be used in code which really needs DMA coherency.

    All call sites have been changed accordingly, except for staging
    drivers.

    Signed-off-by: Daniel Mack
    Cc: Alan Stern
    Cc: Pedro Ribeiro
    Signed-off-by: Greg Kroah-Hartman

    Daniel Mack
     

19 May, 2010

1 commit


30 Mar, 2010

1 commit

  • …it slab.h inclusion from percpu.h

    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 -> 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 <tj@kernel.org>
    Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>

    Tejun Heo
     

16 Dec, 2009

2 commits

  • Now that the video_device registration is tested using
    video_is_registered(), drivers don't need to initialize the
    video_device::minor field to -1 anymore.

    Remove those unneeded assignments.

    [mchehab.redhat.com: removed tm6000 changes as tm6000 is not ready yet for submission even on staging]

    Signed-off-by: Laurent Pinchart
    Signed-off-by: Mauro Carvalho Chehab

    Laurent Pinchart
     
  • Fix all device drivers to use the video_drvdata function instead of
    maintaining a local list of minor to private data mappings. Call
    video_set_drvdata to register the driver private pointer when not
    already done.

    Where applicable, the local list of mappings is completely removed when
    it becomes unused.

    [mchehab.redhat.com: removed tm6000 changes as tm6000 is not ready yet for submission even on staging]

    Signed-off-by: Laurent Pinchart
    Signed-off-by: Mauro Carvalho Chehab

    Laurent Pinchart
     

06 Dec, 2009

1 commit

  • Upcoming I2C v4l2_subdev drivers need a way to control the subdevice
    power state from the core. This use case is already partially covered by
    the tuner s_standby operation, but no way to explicitly come back from
    the standby state is available.

    Rename the tuner s_standby operation to core s_power, and fix tuner
    drivers accordingly. The tuner core will call s_power(0) instead of
    s_standby(). No explicit call to s_power(1) is required for tuners as
    they are supposed to wake up from standby automatically.

    [mchehab@redhat.com: CodingStyle fix]
    Signed-off-by: Laurent Pinchart
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Laurent Pinchart
     

19 Sep, 2009

1 commit


12 Sep, 2009

2 commits


17 Jun, 2009

5 commits


30 Apr, 2009

1 commit

  • A regression was introduced in hg changeset 33810c734a0d, which resulted in
    a kernel panic whenever the device was disconnected from USB. The call to
    4l2_device_register() was overwriting the pointer for usb_set_intfdata(), so
    when au0828_usb_disconnect() was called, the usb_get_intfdata() returned a
    pointer to the v4l2_device instead of the au0828_dev structure.

    Signed-off-by: Devin Heitmueller
    Signed-off-by: Mauro Carvalho Chehab

    Devin Heitmueller
     

07 Apr, 2009

1 commit

  • Fix this build error:
    ERROR: "videobuf_queue_vmalloc_init" [drivers/media/video/au0828/au0828.ko] undefined!
    ERROR: "videobuf_vmalloc_free" [drivers/media/video/au0828/au0828.ko] undefined!
    ERROR: "videobuf_to_vmalloc" [drivers/media/video/au0828/au0828.ko] undefined!

    Signed-off-by: Alexander Beregalov
    Signed-off-by: Mauro Carvalho Chehab

    Alexander Beregalov