12 Sep, 2009

4 commits

  • The dvb-pll code should do the same thing that
    alps_tdee4_stv0297_tuner_set_params() was doing. Except the dvb-pll code
    will check for tuner presence when attaching, while the old code didn't.

    This tuner appears to not be behind the stv0297's I2C gate but is instead
    on a different I2C adapter provided by the flexcop chip. The old code
    would turn the I2C gate off each time the tuner was used. I've changed it
    to turn the gate off when the tuner is attached and then disable the gate
    control function. This should result in the gate staying off, which should
    be even better.

    [hverkuil@xs4all.nl: fix compile error]

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

    Trent Piepho
     
  • The code in skystar23_samsung_tbdu18132_tuner_set_params() and
    samsung_tbmu24112_tuner_set_params() is equivalent to what the dvb-pll code
    does. There could be an issue because the dvb-pll code will probe to check
    for the tuner, while the previous code didn't do any checks.

    Signed-off-by: Trent Piepho
    Signed-off-by: Mauro Carvalho Chehab

    Trent Piepho
     
  • The code in samsung_tdtc9251dh0_calc_regs() is equivalent to what dvb-pll's
    code does.

    Signed-off-by: Trent Piepho
    Signed-off-by: Mauro Carvalho Chehab

    Trent Piepho
     
  • Cc: Patrick Boettcher
    Cc: Steven Toth
    Cc: Igor M. Liplianin
    Cc: Srinivasa Deevi
    Signed-off-by: Joe Perches
    Signed-off-by: Douglas Schilling Landgraf
    Signed-off-by: Mauro Carvalho Chehab

    Joe Perches
     

25 Jul, 2009

1 commit

  • A recent patch didn't take into account that frontends can be compiled into
    the kernel. Or that frontends compiled as modules can't be used by the
    b2c2 driver if it is not a module itself.

    Some frontends require multiple drivers, e.g. a demod driver and a tuner
    driver. The code for the frontend support was getting added if the demod
    driver was available. Change this to also require any needed tuner or SEC
    drivers as well.

    Signed-off-by: Trent Piepho
    Signed-off-by: Mauro Carvalho Chehab

    Trent Piepho
     

17 Jun, 2009

4 commits

  • Changeset 1589a993f074124c3edfff03656e910bb472eeaa broke user visible
    names of flexcop-pci devices, as it did reorder the enum of card types,
    but did not adjust the array containing the card names.

    Reorder the names, and uses [FC_AIR_DVBT] = "Air2PC/AirStar 2 DVB-T"
    assignment style for more clarity.

    It also adds the revision Number to the name for SkyStar rev. 2.3 and rev 2.6
    as I think it is useful to see in log output.

    Signed-off-by: Matthias Schwarzott
    Signed-off-by: Mauro Carvalho Chehab

    Matthias Schwarzott
     
  • The frontend attachment code didn't handle cases where the frontend
    partially failed to attach. For instance, when the demod was attached
    successfully but the tuner driver wasn't compiled or fails to init for some
    reason. In these cases we try to clean up the partial attachment and fail
    instead of proceeding with a broken frontend.

    If frontend registration fails, clean up with dvb_frontend_detach() rather
    than just calling the frontend's main release method. The former does some
    additional stuff, like release an attached tuner and take care of putting
    symbols when dynamic binding is used.

    In skystar2_rev23_attach() it's not necessary to set fc->dev_type, that
    gets set before skystar2_rev23_attach() is called.

    Signed-off-by: Trent Piepho
    Signed-off-by: Patrick Boettcher
    Signed-off-by: Mauro Carvalho Chehab

    Trent Piepho
     
  • This patch is reorganizing the frontend-attach mechanism in order to
    gain noise-less (superflous prints) deactivation of submodules.

    Credits go to Uwe Bugla for helping to clean and test the code.

    Signed-off-by: Uwe Bugla
    Signed-off-by: Patrick Boettcher
    Signed-off-by: Mauro Carvalho Chehab

    Patrick Boettcher
     
  • Reducing the print-levle of I2C error prints cleans some unwanted but
    unavoidable errors from default syslog-level.

    Signed-off-by: Matthias Schwarzott
    Signed-off-by: Patrick Boettcher
    Signed-off-by: Mauro Carvalho Chehab

    Matthias Schwarzott
     

30 Mar, 2009

6 commits


27 Feb, 2009

1 commit

  • With (some) Technisat cards you cannot run multiple DVB applications
    in parallel and switch the channel at the same time.

    There seems to be a problem on the interfaces or even inside the flexcop-device
    that can't handle interruption on the streaming interface.

    This patch adds a watchdog to check whether data is supposed to come in
    (streaming PIDs are requested) and if no data is seen within 400ms (default) it
    resets the streaming/pid-filtering hardware.

    This patch is urgently needed to support the rev 2.8 of the hardware and solves
    problem occassionally seen on older hardware.

    Signed-off-by: Uwe Bugla
    Signed-off-by: Patrick Boettcher
    Signed-off-by: Mauro Carvalho Chehab

    Patrick Boettcher
     

30 Dec, 2008

1 commit


29 Dec, 2008

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1429 commits)
    net: Allow dependancies of FDDI & Tokenring to be modular.
    igb: Fix build warning when DCA is disabled.
    net: Fix warning fallout from recent NAPI interface changes.
    gro: Fix potential use after free
    sfc: If AN is enabled, always read speed/duplex from the AN advertising bits
    sfc: When disabling the NIC, close the device rather than unregistering it
    sfc: SFT9001: Add cable diagnostics
    sfc: Add support for multiple PHY self-tests
    sfc: Merge top-level functions for self-tests
    sfc: Clean up PHY mode management in loopback self-test
    sfc: Fix unreliable link detection in some loopback modes
    sfc: Generate unique names for per-NIC workqueues
    802.3ad: use standard ethhdr instead of ad_header
    802.3ad: generalize out mac address initializer
    802.3ad: initialize ports LACPDU from const initializer
    802.3ad: remove typedef around ad_system
    802.3ad: turn ports is_individual into a bool
    802.3ad: turn ports is_enabled into a bool
    802.3ad: make ntt bool
    ixgbe: Fix set_ringparam in ixgbe to use the same memory pools.
    ...

    Fixed trivial IPv4/6 address printing conflicts in fs/cifs/connect.c due
    to the conversion to %pI (in this networking merge) and the addition of
    doing IPv6 addresses (from the earlier merge of CIFS).

    Linus Torvalds
     

17 Dec, 2008

2 commits

  • When the tuner modules were moved to common/tuners, a separate customize
    option were added for tuners. However, the automatic selection of the
    tuners were still using the older option.

    This causes that the automatic selection to fail, if DVB_FE_CUSTOMISE is
    selected. Also, since those tuners are now under MEDIA_TUNER_CUSTOMIZE
    menu, if you unset MEDIA_TUNER_CUSTOMIZE, you can't manually select the
    tuners.

    This patch fixes this error by replacing DVB_FE_CUSTOMISE by
    MEDIA_TUNER_CUSTOMIZE on all places were a tuner is selected.

    The patch were generated by this small script:

    for i in `find drivers/media -name Kconfig`; do
    cat $i|perl -ne 's/(MEDIA_TUNER.*)DVB_FE_CUSTOMISE/\1MEDIA_TUNER_CUSTOMIZE/; print $_' >a
    mv a $i
    done

    Also, manually reordered the tuner entries.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • At some point the Flexcop driver was changed to support newer Flexcop cards.
    These modifications however broke the detection of Cablestar 2 DVB-C cards.

    The reason is that the earlier version of the driver used to retry
    unsuccessful i2c operations. The demodulator of Cablestar 2 cards (stv0297)
    seems to be very dependent on these retries and adding them back fixes
    Cablestar detection.

    This patch restores this behaviour for the CableStar2.

    Signed-off-by: Antti Seppälä
    Signed-off-by: Patrick Boettcher
    Signed-off-by: Mauro Carvalho Chehab

    Antti Seppälä
     

28 Oct, 2008

1 commit

  • A number of places still use %02x:...:%02x because it's
    in debug statements or for no real reason. Make a few
    of them use %pM.

    Signed-off-by: Johannes Berg
    Signed-off-by: David S. Miller

    Johannes Berg
     

12 Oct, 2008

1 commit


05 Oct, 2008

1 commit

  • Different backends have different input busses (saa7146, flexcop).
    To reflect that a config-option to the s5h1420-driver was added which makes
    the output mode selectable.

    Furthermore the s5h1420-driver is now doing the same i2c-method as it was done
    before adding support for other i2c-users.

    This patch needs to go into the current release of the kernel, as this driver
    is currently broken.

    (Thanks to Eberhard Kaltenhaeuser for helping out to debug this issue.)

    Signed-off-by: Patrick Boettcher
    Signed-off-by: Mauro Carvalho Chehab

    Patrick Boettcher
     

05 Sep, 2008

1 commit

  • b2c2-flexcop, dvb/bt8xx and video/bt8xx fails to build on ARM with:

    __bad_udelay is specifically designed on ARM to fail when udelay is
    called in a bad way. arch/arm/include/asm/delay.h has this to say
    about __bad_udelay:

    /*
    * This function intentionally does not exist; if you see references to
    * it, it means that you're calling udelay() with an out of range value.
    *
    * With currently imposed limits, this means that we support a max delay
    * of 2000us. Further limits: HZ
    Signed-off-by: Mauro Carvalho Chehab

    Thierry MERLE
     

04 Sep, 2008

1 commit

  • Some DVB drivers are incorrectly assuming that the size of
    i2c_adapter.name is I2C_NAME_SIZE. Here's a fix.

    Also change strncpy to strlcpy, as the former is error-prone (and was
    indeed incorrectly used.)

    Signed-off-by: Jean Delvare
    Acked-by: Uwe Bugla
    Reviewed-by: Michael Krufky
    Signed-off-by: Steven Toth
    Signed-off-by: Andrew Morton
    Signed-off-by: Mauro Carvalho Chehab

    Jean Delvare
     

05 Jun, 2008

1 commit


14 May, 2008

1 commit


30 Apr, 2008

2 commits


25 Apr, 2008

9 commits


26 Jan, 2008

1 commit


24 Aug, 2007

1 commit

  • Git changeset 6bdcc6e6dbab8daffd05e5026486f34ba41a6c72 dropped the
    stand-alone lgh06xf module, whose functionality was absorbed into the
    dvb-pll module. However, there was a minor difference between the code
    in lgh06xf and dvb-pll, which caused a regression in b2c2-flexcop
    devices using the LG-H06xF NIM.

    dvb-pll will probe for the presence of an i2c pll chip by performing a
    single byte read, the lgh06xf driver did not do this. Unfortunately, the
    code in flexcop-i2c.c does not currently support 1 byte or 0 byte reads
    as a probe. Such probes with the current code will always fail.

    In order to work around this problem, and restore proper functionality
    of the Airstar HD5000 device, this hack was created to make the probe
    appear to succeed. The single byte read in dvb_pll_attach is the only
    place where such a probe would ever occur, so this change is safe, and
    will not affect any other devices.

    Of course, if one knew how to actually perform the read operation, it
    would be better to go that route. In the meantime, however, we must
    apply this workaround, in order to prevent the regression that causes
    tuning to fail on the Airstar HD5000 ATSC device.

    Thanks to Jarod Wilson, who had originally reported this regression, and
    to Geoffrey Hausheer, whose original workaround patch led us to find the
    actual cause of the problem.

    Signed-off-by: Trent Piepho
    Cc: Geoffrey Hausheer
    Acked-by: Jarod Wilson
    Signed-off-by: Michael Krufky
    Signed-off-by: Mauro Carvalho Chehab

    Trent Piepho