24 Feb, 2020

1 commit

  • [ Upstream commit dc4cac67e13515835ed8081d510aa507aacb013b ]

    The AVerMedia CE310B is a simple composite + S-Video + stereo audio
    capture card, and uses only the CX23888 to perform all of these
    functions.

    I've tested both video inputs and the audio interface and confirmed that
    they're all working. However, there are some issues:

    * Sometimes when I switch inputs the video signal turns black and can't
    be recovered until the system is rebooted. I haven't been able to
    determine the cause of this behavior, nor have I found a solution to
    fix it or any workarounds other than rebooting.
    * The card sometimes seems to have trouble syncing to the video signal,
    and some of the VBI data appears as noise at the top of the frame, but
    I assume that to be a result of my very noisy RF environment and the
    card's unshielded input traces rather than a configuration issue.

    Signed-off-by: Forest Crossman
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Sasha Levin

    Forest Crossman
     

31 Dec, 2019

1 commit

  • [ Upstream commit e1444e9b0424c70def6352580762d660af50e03f ]

    A call to 'pci_disable_device()' is missing in the error handling path.
    In some cases, a call to 'free_irq()' may also be missing.

    Reorder the error handling path, add some new labels and fix the 2 issues
    mentionned above.

    This way, the error handling path in more in line with 'cx8800_finidev()'
    (i.e. the remove function)

    Signed-off-by: Christophe JAILLET
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Sasha Levin

    Christophe JAILLET
     

27 Aug, 2019

3 commits

  • On 32-bits archs, a signed integer has 31 bits plus on extra
    bit for signal. Due to that, touching the 32th bit with something
    like:

    int bar = 1 << 31;

    has an undefined behavior in C on 32 bit architectures, as it
    touches the signal bit. This is warned by cppcheck.

    Instead, force the numbers to be unsigned, in order to solve this
    issue.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • As warned by cppcheck:

    [drivers/media/dvb-frontends/cx24123.c:434]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
    [drivers/media/pci/bt8xx/bttv-input.c:87]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
    [drivers/media/pci/bt8xx/bttv-input.c:98]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
    ...
    [drivers/media/v4l2-core/v4l2-ioctl.c:1391]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour

    There are lots of places where we're doing 1 << 31. That's bad,
    as, depending on the architecture, this has an undefined behavior.

    The BIT() macro is already prepared to handle this, so, let's
    just switch all "1 << number" macros by BIT(number) at the header files
    with has 1 << 31.

    Reviewed-by: Sylwester Nawrocki # exynos4-is and s3c-camif
    Reviewed-by: Laurent Pinchart # omap3isp, vsp1, xilinx, wl128x and ipu3
    Reviewed-by: Benoit Parrot # am437x and ti-vpe
    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • It doesn't make any sense to have gcc's stdarg.h included
    inside the Linux Kernel.

    Get rid of those includes.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

26 Aug, 2019

3 commits

  • saa7134_i2c_eeprom_md7134_gate() function and the associated comment uses
    an inverted i2c gate open / closed terminology.
    Let's fix this.

    Signed-off-by: Maciej S. Szmigiero
    Signed-off-by: Hans Verkuil
    [hverkuil-cisco@xs4all.nl: fix alignment checkpatch warning]
    Signed-off-by: Mauro Carvalho Chehab

    Maciej S. Szmigiero
     
  • Medion 7134 has two i2c eeproms on the same i2c bus sharing the same bus
    addresses: the first one for SAA7134 chip config and the second one behind
    TDA10046 DVB-T demod chip i2c gate storing its firmware.
    The TV tuner on this board is not behind this i2c gate.

    Due to the bus conflict described above, the card PCI SVID / SSID sometimes
    gets garbled after a reboot, which makes it necessary to specify the card
    model manually as an insmod option in order for it to be detected reliably.
    To avoid this, let's just leave the gate permanently closed so the eeprom
    chips won't clash.

    The demod firmware load is done with its i2c gate closed anyway so it is
    not affected by this change.

    Signed-off-by: Maciej S. Szmigiero
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Maciej S. Szmigiero
     
  • If saa7146_register_device() fails, no cleanup is executed, leading to
    memory/resource leaks. To fix this issue, perform necessary cleanup work
    before returning the error.

    Signed-off-by: Wenwen Wang
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Wenwen Wang
     

22 Aug, 2019

2 commits

  • Static structure dst_config, of type dst_config, is not used except to
    be assigned as the value of field state of a variable having type
    dst_state *. In the definition of dst_state, field config is declared as
    const. Hence dst_config, when assigned to config, cannot be modified.
    Therefore, make dst_config const as well.
    Issue found with Coccinelle.

    Signed-off-by: Nishka Dasgupta
    Signed-off-by: Sean Young
    Signed-off-by: Mauro Carvalho Chehab

    Nishka Dasgupta
     
  • This protocol responds to a real philips rc-mm remote; it does not respond
    to IR encoded with the encoder in ir-rcmm-decoder.c.

    Signed-off-by: Sean Young
    Signed-off-by: Mauro Carvalho Chehab

    Sean Young
     

13 Aug, 2019

1 commit


08 Aug, 2019

1 commit

  • Commit b2ce5617dad2 ("media: i2c: fix warning same module names")
    renamed the adv7511 module in the media tree to adv7511-v4l2.

    This patch does the same rename for the driver name and device id to
    keep the naming consistent.

    Since the cobalt driver loads this module, it had to be renamed there
    as well.

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

    Hans Verkuil
     

25 Jul, 2019

4 commits


23 Jul, 2019

5 commits

  • The variable value is being assigned with a value that is never
    read and it is being updated later with a new value. The
    assignment is redundant and can be removed.

    Addresses-Coverity: ("Unused value")

    Signed-off-by: Colin Ian King
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Colin Ian King
     
  • Commit 8c0d3a02c130 ("PCI: Add accessors for PCI Express Capability")
    added accessors for the PCI Express Capability so that drivers didn't
    need to be aware of differences between v1 and v2 of the PCI
    Express Capability.

    Replace pci_read_config_word() and pci_write_config_word() calls with
    pcie_capability_read_word() and pcie_capability_write_word().

    Signed-off-by: Frederick Lawler
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Frederick Lawler
     
  • The variable data is being initialized with a value that is never
    read and it is being updated later with a new value. The
    initialization is redundant and can be removed.

    Addresses-Coverity: ("Unused value")

    Signed-off-by: Colin Ian King
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Colin Ian King
     
  • The priv field of struct v4l2_pix_format shouldn't be set by drivers,
    it's set by the v4l2 core instead to V4L2_PIX_FMT_PRIV_MAGIC.

    Drop this from the few media drivers that still do this.

    Note that the gspca patch is slightly more involved since some of the
    sub-gspca drivers use the priv field internally.

    Signed-off-by: Hans Verkuil
    Reviewed-by: Laurent Pinchart
    [hverkuil-cisco@xs4all.nl: fix clash in gspca between priv arg and priv variable]
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • The V4L2 core sets the description for the driver in order to ensure
    consistent naming.

    So drop the strscpy of the description in drivers. Also remove any
    description strings in driver-internal structures since those are
    no longer needed.

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

    Hans Verkuil
     

10 Jul, 2019

2 commits

  • Pull fbdev updates from Bartlomiej Zolnierkiewicz:

    - remove fbdev notifier usage for fbcon (as prep work to clean up the
    fbcon locking), add locking checks in vt/console code and make
    assorted cleanups in fbdev and backlight code (Daniel Vetter)

    - add COMPILE_TEST support to atmel_lcdfb, da8xx-fb, gbefb, imxfb,
    pvr2fb and pxa168fb drivers (me)

    - fix DMA API abuse in au1200fb and jz4740_fb drivers (Christoph
    Hellwig)

    - add check for new BGRT status field rotation bits in efifb driver
    (Hans de Goede)

    - mark expected switch fall-throughs in s3c-fb driver (Gustavo A. R.
    Silva)

    - remove fbdev mxsfb driver in favour of the drm version (Fabio
    Estevam)

    - remove broken rfbi code from omap2fb driver (me)

    - misc fixes (Arnd Bergmann, Shobhit Kukreti, Wei Yongjun, me)

    - misc cleanups (Gustavo A. R. Silva, Colin Ian King, me)

    * tag 'fbdev-v5.3' of git://github.com/bzolnier/linux: (62 commits)
    video: fbdev: imxfb: fix a typo in imxfb_probe()
    video: fbdev: s3c-fb: Mark expected switch fall-throughs
    video: fbdev: s3c-fb: fix sparse warnings about using incorrect types
    video: fbdev: don't print error message on framebuffer_alloc() failure
    video: fbdev: intelfb: return -ENOMEM on framebuffer_alloc() failure
    video: fbdev: s3c-fb: return -ENOMEM on framebuffer_alloc() failure
    vga_switcheroo: Depend upon fbcon being built-in, if enabled
    video: fbdev: omap2: remove rfbi
    video: fbdev: atmel_lcdfb: remove redundant initialization to variable ret
    video: fbdev-MMP: Use struct_size() in devm_kzalloc()
    video: fbdev: controlfb: fix warnings about comparing pointer to 0
    efifb: BGRT: Add check for new BGRT status field rotation bits
    jz4740_fb: fix DMA API abuse
    video: fbdev: pvr2fb: fix link error for pvr2fb_pci_exit
    video: fbdev: s3c-fb: add COMPILE_TEST support
    video: fbdev: imxfb: fix sparse warnings about using incorrect types
    video: fbdev: pvr2fb: fix build warning when compiling as module
    fbcon: Export fbcon_update_vcs
    backlight: simplify lcd notifier
    staging/olpc_dcon: Add drm conversion to TODO
    ...

    Linus Torvalds
     
  • Pull media updates from Mauro Carvalho Chehab:

    - new Atmel microship ISC driver

    - coda has gained support for mpeg2 and mpeg4

    - cxusb gained support for analog TV

    - rockchip staging driver was split into two separate staging drivers

    - added a new staging driver for Allegro DVT video IP core

    - added a new staging driver for Amlogic Meson video decoder

    - lots of improvements and cleanups

    * tag 'media/v5.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (398 commits)
    media: allegro: use new v4l2_m2m_ioctl_try_encoder_cmd funcs
    media: doc-rst: Fix typos
    media: radio-raremono: change devm_k*alloc to k*alloc
    media: stv0297: fix frequency range limit
    media: rc: Prefer KEY_NUMERIC_* for number buttons on remotes
    media: dvb_frontend: split dvb_frontend_handle_ioctl function
    media: mceusb: disable "nonsensical irdata" messages
    media: rc: remove redundant dev_err message
    media: cec-notifier: add new notifier functions
    media: cec: add struct cec_connector_info support
    media: cec-notifier: rename variables, check kstrdup and n->conn_name
    media: MAINTAINERS: Add maintainers for Media Controller
    media: staging: media: tegra-vde: Defer dmabuf's unmapping
    media: staging: media: tegra-vde: Add IOMMU support
    media: hdpvr: fix locking and a missing msleep
    media: v4l2: Test type instead of cfg->type in v4l2_ctrl_new_custom()
    media: atmel: atmel-isc: fix i386 build error
    media: v4l2-ctrl: Move compound control initialization
    media: hantro: Use vb2_get_buffer
    media: pci: cx88: Change the type of 'missed' to u64
    ...

    Linus Torvalds
     

25 Jun, 2019

2 commits

  • Callers of hrtimer_forward_now() should save the return value in u64.
    change type of missed from unsigned long to u64.

    Signed-off-by: Puranjay Mohan
    Signed-off-by: Hans Verkuil
    [hverkuil-cisco@xs4all.nl: type changed, so %ld -> %llu in printk]
    Signed-off-by: Mauro Carvalho Chehab

    Puranjay Mohan
     
  • Instead of filling in the struct v4l2_capability device_caps
    field, fill in the struct video_device device_caps field.

    That way the V4L2 core knows what the capabilities of the
    video device are.

    But this only really works if all drivers use this, so convert
    all pci drivers in this patch.

    Tested with cx88-blackbird and ivtv PVR-350.

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

    Hans Verkuil
     

22 Jun, 2019

2 commits


19 Jun, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 only
    as published by the free software foundation this program is
    distributed in the hope that it will be useful but without any
    warranty without even the implied warranty of merchantability or
    fitness for a particular purpose see the gnu general public license
    for more details to obtain the license point your browser to http
    www gnu org copyleft gpl html

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 12 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Enrico Weigelt
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190604081202.028166291@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

13 Jun, 2019

1 commit

  • Except for driver bugs (which we'll catch with a WARN_ON) this is only
    to report failures of the new driver taking over the console. There's
    nothing the outgoing driver can do about that, and no one ever
    bothered to actually look at these return values. So remove them all.

    v2: fixup unregister_framebuffer in savagefb, fbtft, ivtvfb, and neofb
    drivers, reported by kbuild.

    Signed-off-by: Daniel Vetter
    Reviewed-by: Sam Ravnborg
    Reviewed-by: Maarten Lankhorst
    Cc: Bartlomiej Zolnierkiewicz
    Cc: Daniel Vetter
    Cc: "Michał Mirosław"
    Cc: Peter Rosin
    Cc: Hans de Goede
    Cc: Mikulas Patocka
    Cc: linux-fbdev@vger.kernel.org
    Link: https://patchwork.freedesktop.org/patch/msgid/20190528090304.9388-19-daniel.vetter@ffwll.ch

    Daniel Vetter
     

12 Jun, 2019

3 commits

  • Add SPDX headers and fix MODULE_LICENSE() when needed on
    some files I co-authored.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • CONFIG_DRM_I2C_ADV7511 and CONFIG_VIDEO_ADV7511 bind to the same
    platform device, so whichever driver gets loaded first will be used on
    the device. So they shouldn't be enabled at the same time.

    Rework so that VIDEO_ADV7511 and VIDEO_COBALT depends on
    DRM_I2C_ADV7511=n or COMPILE_TEST.

    Suggested-by: Hans Verkuil
    Signed-off-by: Anders Roxell
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Anders Roxell
     
  • There are some conflicts due to SPDX changes. We also have more
    patches being merged via media tree touching them.

    So, let's merge back from upstream and address those.

    Linux 5.2-rc4

    * tag 'v5.2-rc4': (767 commits)
    Linux 5.2-rc4
    MAINTAINERS: Karthikeyan Ramasubramanian is MIA
    i2c: xiic: Add max_read_len quirk
    lockref: Limit number of cmpxchg loop retries
    uaccess: add noop untagged_addr definition
    x86/insn-eval: Fix use-after-free access to LDT entry
    kbuild: use more portable 'command -v' for cc-cross-prefix
    s390/unwind: correct stack switching during unwind
    block, bfq: add weight symlink to the bfq.weight cgroup parameter
    cgroup: let a symlink too be created with a cftype file
    drm/nouveau/secboot/gp10[2467]: support newer FW to fix SEC2 failures on some boards
    drm/nouveau/secboot: enable loading of versioned LS PMU/SEC2 ACR msgqueue FW
    drm/nouveau/secboot: split out FW version-specific LS function pointers
    drm/nouveau/secboot: pass max supported FW version to LS load funcs
    drm/nouveau/core: support versioned firmware loading
    drm/nouveau/core: pass subdev into nvkm_firmware_get, rather than device
    block: free sched's request pool in blk_cleanup_queue
    pktgen: do not sleep with the thread lock held.
    net: mvpp2: Use strscpy to handle stat strings
    net: rds: fix memory leak in rds_ib_flush_mr_pool
    ...

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

11 Jun, 2019

1 commit

  • The IR protocol can now only be set via the rc protocols sysfs file rather
    than via module parameters or a custom procfs file. So, it is no longer
    necessary to periodically check for protocol changes.

    The IR_RCMM protocol does not decode the Philips RC-MM protocol (12, 24 or
    32 bit variants) or any protocol rc-core can encode, so this is marked
    RC_PROTO_UNKNOWN.

    Tested on Technotrend/Hauppauge WinTV Nexus-S rev2.1, which comes
    with a small black hauppauge remote.

    Signed-off-by: Sean Young
    Signed-off-by: Mauro Carvalho Chehab

    Sean Young
     

05 Jun, 2019

3 commits

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms and conditions of the gnu general public license
    version 2 as published by the free software foundation this program
    is distributed in the hope it will be useful but without any
    warranty without even the implied warranty of merchantability or
    fitness for a particular purpose see the gnu general public license
    for more details you should have received a copy of the gnu general
    public license along with this program if not write to the free
    software foundation inc 51 franklin st fifth floor boston ma 02110
    1301 usa the full gnu general public license is included in this
    distribution in the file called copying

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 2 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Alexios Zavras
    Reviewed-by: Armijn Hemel
    Reviewed-by: Kate Stewart
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190530000434.706787045@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation version 2 this program is distributed
    in the hope that it will be useful but without any warranty without
    even the implied warranty of merchantability or fitness for a
    particular purpose see the gnu general public license for more
    details

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 97 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Alexios Zavras
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190529141901.025053186@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Support for multiplanar and singleplanar formats is mutually exclusive,
    at least in practice. In our attempt to unify support for support for
    mplane and !mplane in v4l, let's get rid of the
    ->vidioc_enum_fmt_{vid,out}_cap_mplane() hooks and call
    ->vidioc_enum_fmt_{vid,out}_cap() instead.

    Signed-off-by: Boris Brezillon
    Reviewed-by: Sylwester Nawrocki
    [hverkuil-cisco@xs4all.nl: fix typos: pirv -> priv and prov -> priv]
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Boris Brezillon
     

03 Jun, 2019

1 commit


31 May, 2019

3 commits

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of version 2 of the gnu general public license as
    published by the free software foundation

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 107 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Richard Fontana
    Reviewed-by: Steve Winslow
    Reviewed-by: Alexios Zavras
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190528171438.615055994@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation this program is
    distributed in the hope that it will be useful but without any
    warranty without even the implied warranty of merchantability or
    fitness for a particular purpose see the gnu general public license
    for more details

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 655 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Kate Stewart
    Reviewed-by: Richard Fontana
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190527070034.575739538@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 3 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version this program is distributed in the
    hope that it will be useful but without any warranty without even
    the implied warranty of merchantability or fitness for a particular
    purpose see the gnu general public license for more details

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version [author] [kishon] [vijay] [abraham]
    [i] [kishon]@[ti] [com] this program is distributed in the hope that
    it will be useful but without any warranty without even the implied
    warranty of merchantability or fitness for a particular purpose see
    the gnu general public license for more details

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version [author] [graeme] [gregory]
    [gg]@[slimlogic] [co] [uk] [author] [kishon] [vijay] [abraham] [i]
    [kishon]@[ti] [com] [based] [on] [twl6030]_[usb] [c] [author] [hema]
    [hk] [hemahk]@[ti] [com] this program is distributed in the hope
    that it will be useful but without any warranty without even the
    implied warranty of merchantability or fitness for a particular
    purpose see the gnu general public license for more details

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 1105 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Richard Fontana
    Reviewed-by: Kate Stewart
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190527070033.202006027@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner