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 -
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 -
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 -
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
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
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 -
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 -
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 -
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
30 Mar, 2009
6 commits
-
This is the second part of the code cleanup changing the usb and pci-driver cores.
Signed-off-by: Uwe Bugla
Signed-off-by: Patrick Boettcher
Signed-off-by: Mauro Carvalho Chehab -
This patch cleans up the source code of the b2c2 flexcop-driver. It is the first of a total of two.
The code is now passing the checkpatch-script.
Signed-off-by: Uwe Bugla
Signed-off-by: Patrick Boettcher
Signed-off-by: Mauro Carvalho Chehab -
When resetting the PID-filter block a safety msleep(1) was injected. Now that the function is called from interrupt context, it was replaced with a udelay. It seems that this delay is not necessary at all, let's remove it for now and test a while.
Signed-off-by: Patrick Boettcher
Signed-off-by: Mauro Carvalho Chehab -
This patch adds a workaround in the i2c-code of the flexcop-driver to
fix support for SkyStar2 rev 2.7. There are not many devices out
there, that's why this bug was not revealed earlier.Signed-off-by: Patrick Boettcher
Signed-off-by: Mauro Carvalho Chehab -
There are several Kconfig items using CUSTOMIZE. Yet, most use the English
writing CUSTOMISE. This generates lots of trouble, because people sometimes type
the Kbuild item different.Let's standardise every occurrence using the same syntax.
The changes were generated by this small shell script:
for i in `find linux -type f`; do sed s,CUSTOMIZE,CUSTOMISE,g $i >/tmp/a && mv /tmp/a $i; done
Signed-off-by: Mauro Carvalho Chehab
-
Print a message in case the new software IRQ watchdog detects a problem.
I choose the info message category, this can be changed if not appropriate.Cc: Patrick Boettcher
Signed-off-by: Matthias Schwarzott
Signed-off-by: Mauro Carvalho Chehab
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
30 Dec, 2008
1 commit
-
This commit adds support for the CX24113 DVB-S tuner driver and thus support for the Technisat Skystar2 revision 2.8.
The driver was created with the help of Technisat. Thank you very much.Signed-off-by: Patrick Boettcher
Signed-off-by: Mauro Carvalho Chehab
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).
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
doneAlso, manually reordered the tuner entries.
Signed-off-by: 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
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
12 Oct, 2008
1 commit
-
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
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
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
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
05 Jun, 2008
1 commit
-
Signed-off-by: Al Viro
Signed-off-by: Mauro Carvalho Chehab
14 May, 2008
1 commit
-
This patch does some small cleanup to mt312.
It changes kconfig description to also list the ZL10313.It does change some strange symbol names to be consistent with
module name mt312 and naming of all other functions in there.
* vp310_mt312_ops -> mt312_ops
* vp310_mt312_attach -> mt312_attachAdds a MODULE_AUTHOR for me
Signed-off-by: Matthias Schwarzott
Signed-off-by: Mauro Carvalho Chehab
30 Apr, 2008
2 commits
-
namespace for all of them.
-
There were several issues in the past, caused by the hybrid tuner design, since
now, the same tuner can be used by drivers/media/dvb and drivers/media/video.Kconfig items were rearranged, to split V4L/DVB core from their drivers.
Signed-off-by: Mauro Carvalho Chehab
25 Apr, 2008
9 commits
-
Fixed some typos.
Signed-off-by: Oliver Endriss
Signed-off-by: Mauro Carvalho Chehab -
This patches adds support for the SkyStar2 rev2.7 with the PN1010/ITD1000 Frontend.
Signed-off-by: Patrick Boettcher
Signed-off-by: Mauro Carvalho Chehab -
Support is prepared, but the CX24113-driver .c-file is missing. After sorting out the NDA problems, the file will be there immediatly.
Signed-off-by: Patrick Boettcher
Signed-off-by: Mauro Carvalho Chehab -
The adapter_nr module options can be used to allocate static adapter
numbers on a driver level. It avoids problems with changing DVB apapter
numbers after warm/cold boot or device unplugging and repluging.Each driver holds DVB_MAX_ADAPTER long array of the preferred order of
adapter numbers.options dvb-usb-dib0700 adapter_nr=7,6,5,4,3,2,1,0 would result in a
reversed allocation of adapter numbers.With adapter_nr=2,5 it tries first to get adapter number 2 and 5. If
both are already in use it will allocate the lowest free adapter number.Signed-off-by: Janne Grunau
Acked-by: Hermann Pitton
Signed-off-by: Michael Krufky
Signed-off-by: Mauro Carvalho Chehab -
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison
Signed-off-by: Michael Krufky
Signed-off-by: Mauro Carvalho Chehab -
To prepare the support for new device to the flexcop-family some preparation and cleanups was done + some saneness:
- created an i2c-adapter for each i2c-port available. Easier usage for devices with several device on different i2c-busses
- initialize i2c before doing the eeprom read
- changed the way to attach the different frontends, easier to read now
- enabled support for i2c-devices having no register address (1-byte access)Signed-off-by: Patrick Boettcher
Signed-off-by: Mauro Carvalho Chehab -
Update Kconfig for the hybrid devices recently converted
to use tuner-simple rather than dvb-pll.dvb-bt8xx no longer uses dvb-pll at all, so remove all
references to dvb-pll within that driver.Signed-off-by: Michael Krufky
Signed-off-by: Mauro Carvalho Chehab -
Convert cx88-dvb, dvb-bt8xx, b2c2-flexcop, cxusb and cx23885 to use
tuner-simple instead of dvb-pll for LG TDVS-H06xFSigned-off-by: Michael Krufky
Signed-off-by: Mauro Carvalho Chehab -
- Static memory is always initialized with 0.
- Replaced in some cases C99 comments for /* */Signed-off-by: Douglas Schilling Landgraf
Signed-off-by: Mauro Carvalho Chehab
26 Jan, 2008
1 commit
-
This patch removes the unused EXPORT_SYMBOL(flexcop_reset_block_300).
Signed-off-by: Adrian Bunk
Signed-off-by: Mauro Carvalho Chehab
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