16 Jan, 2012

1 commit

  • * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (655 commits)
    [media] revert patch: HDIC HD29L2 DMB-TH USB2.0 reference design driver
    mb86a20s: Add a few more register settings at the init seq
    mb86a20s: Group registers into the same line
    [media] [PATCH] don't reset the delivery system on DTV_CLEAR
    [media] [BUG] it913x-fe fix typo error making SNR levels unstable
    [media] cx23885: Query the CX25840 during enum_input for status
    [media] cx25840: Add support for g_input_status
    [media] rc-videomate-m1f.c Rename to match remote controler name
    [media] drivers: media: au0828: Fix dependency for VIDEO_AU0828
    [media] convert drivers/media/* to use module_platform_driver()
    [media] drivers: video: cx231xx: Fix dependency for VIDEO_CX231XX_DVB
    [media] Exynos4 JPEG codec v4l2 driver
    [media] doc: v4l: selection: choose pixels as units for selection rectangles
    [media] v4l: s5p-tv: mixer: fix setup of VP scaling
    [media] v4l: s5p-tv: mixer: add support for selection API
    [media] v4l: emulate old crop API using extended crop/compose API
    [media] doc: v4l: add documentation for selection API
    [media] doc: v4l: add binary images for selection API
    [media] v4l: add support for selection api
    [media] hd29l2: fix review findings
    ...

    Linus Torvalds
     

15 Jan, 2012

1 commit


13 Jan, 2012

1 commit


11 Jan, 2012

13 commits


09 Jan, 2012

1 commit

  • * 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (165 commits)
    reiserfs: Properly display mount options in /proc/mounts
    vfs: prevent remount read-only if pending removes
    vfs: count unlinked inodes
    vfs: protect remounting superblock read-only
    vfs: keep list of mounts for each superblock
    vfs: switch ->show_options() to struct dentry *
    vfs: switch ->show_path() to struct dentry *
    vfs: switch ->show_devname() to struct dentry *
    vfs: switch ->show_stats to struct dentry *
    switch security_path_chmod() to struct path *
    vfs: prefer ->dentry->d_sb to ->mnt->mnt_sb
    vfs: trim includes a bit
    switch mnt_namespace ->root to struct mount
    vfs: take /proc/*/mounts and friends to fs/proc_namespace.c
    vfs: opencode mntget() mnt_set_mountpoint()
    vfs: spread struct mount - remaining argument of next_mnt()
    vfs: move fsnotify junk to struct mount
    vfs: move mnt_devname
    vfs: move mnt_list to struct mount
    vfs: switch pnode.h macros to struct mount *
    ...

    Linus Torvalds
     

07 Jan, 2012

8 commits

  • The patch "dm1105: handle errors from dvb_net_init" moved the
    initialization of dvbnet to before frontend attachment but forgot
    to adjust the error handling when frontend attachment fails.

    Signed-off-by: Jonathan Nieder
    Signed-off-by: Mauro Carvalho Chehab

    Jonathan Nieder
     
  • This module does some printks with the loglevel missing.

    pr_err() takes care of adding the KERN_ERR tag and the module name.
    So we can simplify the code and add the missing printk loglevel by
    using it.

    Also add a #define pr_fmt() to make this work, and remove a few
    unnecessary periods at the end of messages and bump the loglevel of
    "Unknown bttv card type" from KERN_WARNING to KERN_ERR while at it.

    Inspired-by: Mauro Carvalho Chehab

    Signed-off-by: Jonathan Nieder
    Signed-off-by: Mauro Carvalho Chehab

    Jonathan Nieder
     
  • This way, the messages will be tagged with KERN_DEBUG and not clutter
    the log from dmesg unless the "debug" module parameter is set.

    [mchehab@redhat.com: whitespace fixes]
    Signed-off-by: Jonathan Nieder
    Signed-off-by: Mauro Carvalho Chehab

    Jonathan Nieder
     
  • Lift assignments from "if" conditionals for readability. No change
    in functionality intended.

    Suggested-by: Mauro Carvalho Chehab

    Signed-off-by: Jonathan Nieder
    Signed-off-by: Mauro Carvalho Chehab

    Jonathan Nieder
     
  • This code is wrong as I should have coded it as SYS_DVBC, instead of
    SYS_DVBS & friends. Anyway, this check has other problems

    1) it does some "magic" by assuming that all QAM modulations are below
    QAM_AUTO;

    2) it checks modulation parameters only for one delivery system.
    Or the core should check invalid parameters for all delivery
    systems, or it should let the frontend drivers do it;

    3) frontend drivers should already be checking for invalid parameters
    (most of them do it, anyway);

    4) not all modulations are mapped at fe->ops.info.caps, so it is not
    even possible to check for the valid modulations inside the core
    for some delivery systems;

    5) The core check is incomplete anyway: it only checks for a few
    parameters. If moved into the core other parameters like bandwidth
    and fec should also be checked;

    6) 2nd gen DVB-C uses OFDM. So, that test would fail for it.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • As reported by Oliver, some old dead code were preserved there.

    Thanks-to: Oliver endriss
    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • This resolves the conflict in the arch/arm/mach-s3c64xx/s3c6400.c file,
    and it fixes the build error in the arch/x86/kernel/microcode_core.c
    file, that the merge did not catch.

    The microcode_core.c patch was provided by Stephen Rothwell
    who was invaluable in the merge issues involved
    with the large sysdev removal process in the driver-core tree.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This is just a cleanup, it doesn't change how the code works. These
    are compound conditions and not bitwise operations so it should be &&
    and not &.

    Signed-off-by: Dan Carpenter
    Signed-off-by: Mauro Carvalho Chehab

    Dan Carpenter
     

06 Jan, 2012

15 commits

  • On Thu, 2011-12-15 at 16:42 +0000, Malcolm Priestley wrote:
    > > [ 1103.536156] it913x: Chip Version=ec Chip Type=5830
    > > [ 1104.336178] it913x: Dual mode=92 Remote=92 Tuner Type=92
    > > [ 1106.248116] dvb-usb: found a 'ITE 9135(9006) Generic' in cold state,
    > > will try to load a firmware
    > > [ 1106.253773] dvb-usb: downloading firmware from file
    > > 'dvb-usb-it9135-02.fw'
    > > [ 1106.452123] it913x: FRM Starting Firmware Download
    > > [ 1130.756039] it913x: FRM Firmware Download Failed (ffffff92)
    > > [ 1130.956168] it913x: Chip Version=79 Chip Type=5823
    > > [ 1131.592192] it913x: DEV it913x Error
    > > [ 1131.592271] usbcore: registered new interface driver it913x
    > >
    > > No frontend is generated anyway.
    >
    > Looks like the the firmware is not at all compatible with your device.
    >
    > Have you applied the patch cleanly to the latest media_build?
    >
    > These appear to be new version of the 9006. A supplier is sending me one
    > of these devices.
    >
    > As a last resort see if the device works with dvb-usb-it9137-01.fw
    >
    > You will have force to use this firmware
    > dvb-usb-it913x firmware=1

    Here is a modified firmware loader for version 2 types.

    The firmware must be as in original
    ./dvb_get_firmware it9135

    dd if=dvb-usb-it9135.fw ibs=1 skip=12866 count=5817 of=dvb-usb-it9135-02.fw

    Signed-off-by: Malcolm Priestley
    Signed-off-by: Mauro Carvalho Chehab

    Malcolm Priestley
     
  • This patch fixes an obvious typo in the get_frontend() function
    of the af9013 driver, recently rewritten by Antti Palosaari.

    Signed-off-by: Gianluca Gennari
    Signed-off-by: Mauro Carvalho Chehab

    Gianluca Gennari
     
  • By accident, I added an extra comma at the printk format argument.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Add BER monitoring with Pre-Viterbi error rate.

    Add UCBLOCKS based on Aborted packets.

    Signed-off-by: Malcolm Priestley
    Signed-off-by: Mauro Carvalho Chehab

    Malcolm Priestley
     
  • Correction to tuner ID 0x51.

    Don't force tuner ID 0x60 unless eprom data zero.

    Signed-off-by: Malcolm Priestley
    Signed-off-by: Mauro Carvalho Chehab

    Malcolm Priestley
     
  • Some channels appear weak signal after warm boot.

    Because tuner id is not present in eprom 0x38 is
    assigned.

    9006 devices are now always assigned 0x60.

    Signed-off-by: Malcolm Priestley
    Signed-off-by: Mauro Carvalho Chehab

    Malcolm Priestley
     
  • Fixes issues with PID filter
    Stalling of some channels when PID is on.
    PID filter not turning off fully.
    PID filter can now turn on and off each index.

    Removed PID_RST from it913x_pid_filter_ctrl.
    Replaced with PID_EN removed from it913x_pid_filter

    Signed-off-by: Malcolm Priestley
    Signed-off-by: Mauro Carvalho Chehab

    Malcolm Priestley
     
  • It is not common for dvb_net_init to fail, but after the patch
    "dvb_net_init: return -errno on error" it can fail due to running out
    of memory. Handle this.

    From an audit of dvb_net_init callers.

    Signed-off-by: Jonathan Nieder
    Reviewed-by: Stefan Richter
    Signed-off-by: Mauro Carvalho Chehab

    Jonathan Nieder
     
  • From an audit of dvb_net_init callers, now that that function
    returns -errno on error.

    Signed-off-by: Jonathan Nieder
    Signed-off-by: Mauro Carvalho Chehab

    Jonathan Nieder
     
  • Clean up and error out if dvb_net_init fails (for example due to
    ENOMEM). This involves moving the dvb_net_init call to before
    frontend_init to make cleaning up a little easier.

    From an audit of dvb_net_init callers, now that dvb_net_init lets
    callers know about errors.

    Signed-off-by: Jonathan Nieder
    Signed-off-by: Mauro Carvalho Chehab

    Jonathan Nieder
     
  • Clean up and error out if dvb_net_init fails (for example when
    running out of memory).

    From an audit of dvb_net_init callers, now that dvb_net_init
    has learned to return a nonzero value from time to time.

    [mchehab.redhat.com: codingstyle fix: printk() should include KERN_ facility level]
    Signed-off-by: Jonathan Nieder
    Signed-off-by: Mauro Carvalho Chehab

    Jonathan Nieder
     
  • Bail out if dvb_net_init encounters an error (for example an
    out-of-memory condition), now that it reports them.

    [mchehab@redhat.com: CodingStyle fix: don't use "if ((ret = foo()) < 0)"]
    Signed-off-by: Jonathan Nieder
    Signed-off-by: Mauro Carvalho Chehab

    Jonathan Nieder
     
  • Avoid some repetition by adopting the usual "goto err" idiom for error
    handling.

    Signed-off-by: Jonathan Nieder
    Signed-off-by: Mauro Carvalho Chehab

    Jonathan Nieder
     
  • Repeating the same cleanup code in each error handling path makes life
    unnecessarily difficult for reviewers, who much check each instance of
    the same copy+pasted code separately. A "goto" to the end of the
    function is more maintainable and conveys the intent more clearly.

    While we're touching this code, also lift some assignments from "if"
    conditionals for simplicity.

    No functional change intended.

    Signed-off-by: Jonathan Nieder
    Signed-off-by: Mauro Carvalho Chehab

    Jonathan Nieder
     
  • dvb_net_init unconditionally returns 0. Callers such as
    videobuf_dvb_register_frontend examine dvbnet->dvbdev instead of the
    return value to tell whether the operation succeeded. If it has been
    set to a valid pointer, success; if it was left equal to NULL,
    failure.

    Alas, there is an edge case where that logic does not work as well:
    when network support has been compiled out (CONFIG_DVB_NET=n), we want
    dvb_net_init and related operations to behave as no-ops and always
    succeed, but there is no appropriate value to which to set dvb->dvbdev
    to indicate this.

    Let dvb_net_init return a meaningful error code, as preparation for
    adapting callers to look at that instead.

    The only immediate impact of this patch should be to make the few
    callers that already check for an error code from dvb_net_init behave
    a little more sensibly when it fails.

    Signed-off-by: Jonathan Nieder
    Signed-off-by: Mauro Carvalho Chehab

    Jonathan Nieder