14 Dec, 2012

2 commits

  • Pull media updates from Mauro Carvalho Chehab:

    - Missing MAINTAINERS entries were added for several drivers

    - Adds V4L2 support for DMABUF handling, allowing zero-copy buffer
    sharing between V4L2 devices and GPU

    - Got rid of all warnings when compiling with W=1 on x86

    - Add a new driver for Exynos hardware (s3c-camif)

    - Several bug fixes, cleanups and driver improvements

    * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (243 commits)
    [media] omap3isp: Replace cpu_is_omap3630() with ISP revision check
    [media] omap3isp: Prepare/unprepare clocks before/after enable/disable
    [media] omap3isp: preview: Add support for 8-bit formats at the sink pad
    [media] omap3isp: Replace printk with dev_*
    [media] omap3isp: Find source pad from external entity
    [media] omap3isp: Configure CSI-2 phy based on platform data
    [media] omap3isp: Add PHY routing configuration
    [media] omap3isp: Add CSI configuration registers from control block to ISP resources
    [media] omap3isp: Remove unneeded module memory address definitions
    [media] omap3isp: Use monotonic timestamps for statistics buffers
    [media] uvcvideo: Fix control value clamping for unsigned integer controls
    [media] uvcvideo: Mark first output terminal as default video node
    [media] uvcvideo: Add VIDIOC_[GS]_PRIORITY support
    [media] uvcvideo: Return -ENOTTY for unsupported ioctls
    [media] uvcvideo: Set device_caps in VIDIOC_QUERYCAP
    [media] uvcvideo: Don't fail when an unsupported format is requested
    [media] uvcvideo: Return -EACCES when trying to access a read/write-only control
    [media] uvcvideo: Set error_idx properly for extended controls API failures
    [media] rtl28xxu: add NOXON DAB/DAB+ USB dongle rev 2
    [media] fc2580: write some registers conditionally
    ...

    Linus Torvalds
     
  • Pull trivial branch from Jiri Kosina:
    "Usual stuff -- comment/printk typo fixes, documentation updates, dead
    code elimination."

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (39 commits)
    HOWTO: fix double words typo
    x86 mtrr: fix comment typo in mtrr_bp_init
    propagate name change to comments in kernel source
    doc: Update the name of profiling based on sysfs
    treewide: Fix typos in various drivers
    treewide: Fix typos in various Kconfig
    wireless: mwifiex: Fix typo in wireless/mwifiex driver
    messages: i2o: Fix typo in messages/i2o
    scripts/kernel-doc: check that non-void fcts describe their return value
    Kernel-doc: Convention: Use a "Return" section to describe return values
    radeon: Fix typo and copy/paste error in comments
    doc: Remove unnecessary declarations from Documentation/accounting/getdelays.c
    various: Fix spelling of "asynchronous" in comments.
    Fix misspellings of "whether" in comments.
    eisa: Fix spelling of "asynchronous".
    various: Fix spelling of "registered" in comments.
    doc: fix quite a few typos within Documentation
    target: iscsi: fix comment typos in target/iscsi drivers
    treewide: fix typo of "suport" in various comments and Kconfig
    treewide: fix typo of "suppport" in various comments
    ...

    Linus Torvalds
     

03 Dec, 2012

1 commit


28 Nov, 2012

1 commit

  • * linus/master: (1428 commits)
    futex: avoid wake_futex() for a PI futex_q
    watchdog: using u64 in get_sample_period()
    writeback: put unused inodes to LRU after writeback completion
    mm: vmscan: check for fatal signals iff the process was throttled
    Revert "mm: remove __GFP_NO_KSWAPD"
    proc: check vma->vm_file before dereferencing
    UAPI: strip the _UAPI prefix from header guards during header installation
    include/linux/bug.h: fix sparse warning related to BUILD_BUG_ON_INVALID
    Linux 3.7-rc7
    powerpc/eeh: Do not invalidate PE properly
    ALSA: hda - Fix build without CONFIG_PM
    of/address: sparc: Declare of_iomap as an extern function for sparc again
    PM / QoS: fix wrong error-checking condition
    bnx2x: remove redundant warning log
    vxlan: fix command usage in its doc
    8139cp: revert "set ring address before enabling receiver"
    MPI: Fix compilation on MIPS with GCC 4.4 and newer
    MIPS: Fix crash that occurs when function tracing is enabled
    MIPS: Merge overlapping bootmem ranges
    jbd: Fix lock ordering bug in journal_unmap_buffer()
    ...

    Mauro Carvalho Chehab
     

23 Nov, 2012

2 commits

  • Since b9bf2eafaad9c1ef02fb3db38c74568be601a43a, the function
    ds3000_firmware_ondemand() is called only once during init. This
    locking scheme may have been useful when the firmware was loaded at
    each tune.
    Furthermore, it looks like this 'lock' was put in to prevent concurrent
    access (and not recursion as the comments suggest). However, this open-
    coded mechanism is anything but race-free and should have used a proper
    mutex.

    Signed-off-by: Rémi Cardona
    Reviewed-by: Antti Palosaari
    Signed-off-by: Mauro Carvalho Chehab

    Rémi Cardona
     
  • Signed-off-by: Rémi Cardona
    Reviewed-by: Antti Palosaari
    Signed-off-by: Mauro Carvalho Chehab

    Rémi Cardona
     

29 Oct, 2012

1 commit

  • While it is very unlikely, if the number of parameters for
    QAMDemodulatorCommand is not 2 or 4, status become undefined:

    /home/hans/work/build/v4l-dvb-git/drivers/media/dvb-frontends/drxk_hard.c: In function ‘QAMDemodulatorCommand’:
    /home/hans/work/build/v4l-dvb-git/drivers/media/dvb-frontends/drxk_hard.c:5452:5: warning: ‘status’ may be used uninitialized in this function [-Wuninitialized]

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

28 Oct, 2012

10 commits

  • On gcc, enums are generally unsigned, except if a negative value
    is declared. Due to that, warnings may happen there:
    drivers/media/dvb-frontends/cx22700.c:142:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
    drivers/media/dvb-frontends/cx22700.c:155:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
    drivers/media/dvb-frontends/cx24123.c:341:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
    drivers/media/dvb-frontends/l64781.c:183:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
    drivers/media/dvb-frontends/l64781.c:187:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
    drivers/media/dvb-frontends/mt312.c:552:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
    drivers/media/dvb-frontends/mt312.c:560:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
    As other compilers might be using signed values, the better is to
    keep the checks there, casting the value to avoid the warning.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • drivers/media/dvb-frontends/drxk_hard.c:68:13: warning: 'IsA1WithPatchCode' defined but not used [-Wunused-function]
    drivers/media/dvb-frontends/drxk_hard.c:73:13: warning: 'IsA1WithRomCode' defined but not used [-Wunused-function]

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • drivers/media/dvb-frontends/dib9000.h:100:5: warning: no previous prototype for 'dib9000_remove_slave_frontend' [-Wmissing-prototypes]

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • drivers/media/dvb-frontends/tda18271c2dd.c:1224:22: warning: no previous prototype for 'tda18271c2dd_attach' [-Wmissing-prototypes]

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • drivers/media/dvb-frontends/tda10071.c:119:5: warning: no previous prototype for 'tda10071_rd_reg_mask' [-Wmissing-prototypes]
    drivers/media/dvb-frontends/tda10071.c:99:5: warning: no previous prototype for 'tda10071_wr_reg_mask' [-Wmissing-prototypes]

    Cc: Antti Palosaari
    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • drivers/media/dvb-frontends/stv0367.c:1267:25: warning: no previous prototype for 'stv0367ter_lock_algo' [-Wmissing-prototypes]
    drivers/media/dvb-frontends/stv0367.c:1531:5: warning: no previous prototype for 'stv0367ter_init' [-Wmissing-prototypes]
    drivers/media/dvb-frontends/stv0367.c:2381:21: warning: no previous prototype for 'stv0367cab_SetQamSize' [-Wmissing-prototypes]
    drivers/media/dvb-frontends/stv0367.c:2765:5: warning: no previous prototype for 'stv0367cab_init' [-Wmissing-prototypes]
    drivers/media/dvb-frontends/stv0367.c:882:4: warning: no previous prototype for 'stv0367_getbits' [-Wmissing-prototypes]

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • drivers/media/dvb-frontends/stb0899_drv.c:1263:5: warning: no previous prototype for 'stb0899_get_dev_id' [-Wmissing-prototypes]

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • drivers/media/dvb-frontends/rtl2832.c:268:5: warning: no previous prototype for 'rtl2832_rd_demod_reg' [-Wmissing-prototypes]
    drivers/media/dvb-frontends/rtl2832.c:308:5: warning: no previous prototype for 'rtl2832_wr_demod_reg' [-Wmissing-prototypes]
    drivers/media/dvb-frontends/rtl2832.c:513:5: warning: no previous prototype for 'rtl2832_get_tune_settings' [-Wmissing-prototypes]

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • drivers/media/dvb-frontends/rtl2830.c:133:5: warning: no previous prototype for 'rtl2830_wr_reg_mask' [-Wmissing-prototypes]
    drivers/media/dvb-frontends/rtl2830.c:153:5: warning: no previous prototype for 'rtl2830_rd_reg_mask' [-Wmissing-prototypes]
    drivers/media/dvb-frontends/rtl2830.c:259:5: warning: no previous prototype for 'rtl2830_get_tune_settings' [-Wmissing-prototypes]

    Cc: Antti Palosaari
    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • drivers/media/dvb-frontends/drxd_hard.c:1751:5: warning: no previous prototype for 'SetOperationMode' [-Wmissing-prototypes]
    drivers/media/dvb-frontends/drxd_hard.c:2615:5: warning: no previous prototype for 'DRXD_init' [-Wmissing-prototypes]
    drivers/media/dvb-frontends/drxd_hard.c:2777:5: warning: no previous prototype for 'DRXD_status' [-Wmissing-prototypes]

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

26 Oct, 2012

1 commit


25 Oct, 2012

2 commits


07 Oct, 2012

2 commits

  • [mchehab@redhat.com: Fix a merge conflict]
    Signed-off-by: Rémi Cardona
    Reviewed-by: Antti Palosaari
    Signed-off-by: Mauro Carvalho Chehab

    Rémi Cardona
     
  • A simplified version of the semantic patch that finds this problem is as
    follows: (http://coccinelle.lip6.fr/)
    //
    @r1@
    statement S;
    position p,p1;
    @@
    S@p1;@p
    @script:python r2@
    p << r1.p;
    p1 << r1.p1;
    @@
    if p[0].line != p1[0].line_end:
    cocci.include_match(False)
    @@
    position r1.p;
    @@
    -;@p
    //

    [mchehab@redhat.com: some hunks got bitroted; applied only the
    ones that succeeds]
    Signed-off-by: Peter Senna Tschudin
    [crope@iki.fi: For my drivers a8293, af9013, af9015, af9035]
    Acked-by: Antti Palosaari
    Reviewed-by: Antti Palosaari
    Signed-off-by: Mauro Carvalho Chehab

    Peter Senna Tschudin
     

06 Oct, 2012

10 commits


03 Oct, 2012

1 commit

  • Due to udev-182, the firmware load was changed to be async, as
    otherwise udev would give up of loading a firmware.

    Add an option to return to the previous behaviour, async firmware
    loads cause failures with the tda18271 driver.

    Antti tested it with the following hardware:
    Hauppauge WinTV HVR 930C
    MaxMedia UB425-TC
    PCTV QuatroStick nano (520e)

    Tested-by: Antti Palosaari
    Cc: stable@kernel.org # for Kernel 3.6 - please note that driver location has changed
    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

02 Oct, 2012

1 commit


01 Oct, 2012

1 commit


28 Sep, 2012

4 commits


27 Sep, 2012

1 commit