History log of /drivers/media/dvb/dvb-usb/dib0700_devices.c
Revision Date Author Comments
d43272a4e898a1e43e5ac351ab625b7a40b39e88 10-Jan-2012 Jiri Slaby <jslaby@suse.cz> [media] DVB: dib0700, add support for Nova-TD LEDs

Add an override of read_status to intercept lock status. This allows
us to switch LEDs appropriately on and off with signal un/locked.

The second phase is to override sleep to properly turn off both.

This is a hackish way to achieve that.

Thanks to Mike Krufky for his help.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2b05b881ec9b04cc308f0880ea604843bcb2265a 10-Jan-2012 Jiri Slaby <jslaby@suse.cz> [media] DVB: dib0700, add corrected Nova-TD frontend_attach

This means cut & paste from the former f. attach. But while at it write
to the right GPIO to turn on the right LED. Also turn the other two
off jsut for sure.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
52fd5b2ea72863c53c8ab2e839983004ce33e559 10-Jan-2012 Jiri Slaby <jslaby@suse.cz> [media] DVB: dib0700, separate stk7070pd initialization

The start is common for both stk7070pd and novatd specific routine.
This is just a preparation for the next patch.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
9b6ba57bd45da30173f37d5099805d687440e5c0 10-Jan-2012 Jiri Slaby <jslaby@suse.cz> [media] DVB: dib0700, move Nova-TD Stick to a separate set

To properly support the three LEDs which are on the stick, we need
a special handling in the ->frontend_attach function. Thus let's have
a separate ->frontend_attach instead of ifs in the common one.

The hadnling itself will be added in further patches.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14d24d148c7521b2b88b396652e36f55d061e195 24-Dec-2011 Mauro Carvalho Chehab <mchehab@redhat.com> [media] tuners: remove dvb_frontend_parameters from set_params()

This is a big patch, yet trivial: now that all tuners use the DVBv5
way to pass parameters (e. g. via fe->dtv_property_cache), the
extra parameter can be removed from set_params() call.

After this change, very few DVBv3 specific stuff are left at the
tuners.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
47b163af01068789594e950fa3a96a73576588ad 24-Dec-2011 Mauro Carvalho Chehab <mchehab@redhat.com> [media] dib0700_devices: use DVBv5 parameters on set_params()

Instead of using DVBv3 parameters, rely on DVBv5 parameters to
set the tuner

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
d1190024f0277a225c5926dbeb23306eb55035be 29-Aug-2011 Olivier Grenie <olivier.grenie@dibcom.fr> [media] dib9090: limit the I2C speed

The intend of this patch is to limit the maximum I2C speed.

Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
88f3a3584c74af84cd0476ee94af6234b50ce697 10-Aug-2011 Olivier Grenie <olivier.grenie@dibcom.fr> [media] dib8096P: add the reference board TFE8096P

The intend of this patch is to add the support for the DiBcom reference
board TFE8096P.

Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
0c32dbd74fa947a922b9df125ac8795ce761fa8a 10-Aug-2011 Olivier Grenie <olivier.grenie@dibcom.fr> [media] add the support for DiBcom dib8096P

The purpose of this patch is to support the DiBcom chip dib8096P.

Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
b293f304c52c4e7a3473dad4d4d0f3bc3c3cd32f 09-Aug-2011 Olivier Grenie <olivier.grenie@dibcom.fr> [media] dib7090: add the reference board TFE7790E

The intend of this patch is to add the support for the DiBcom reference
board TFE7790E.

Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
a685dbbc65e1e0f266e69a538dfd65a2f10fcc91 05-Aug-2011 Olivier Grenie <olivier.grenie@dibcom.fr> [media] DiBcom: correct warnings

The intend of this patch is to correct some warnings given.

Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
6724a2f4f7a6cb9251641a46e1ab06bb85adf1b5 05-Aug-2011 Olivier Grenie <olivier.grenie@dibcom.fr> [media] dib7090: add the reference board TFE7090E

The intend of this patch is to add the support for the DiBcom reference
board TFE7090E.

Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2e802861403c95ad6a566ff6d7a1a1a45d29c30e 05-Aug-2011 Olivier Grenie <olivier.grenie@dibcom.fr> [media] dib7000p/dib0090: update the driver

This patch intends to update the dib7000p and dib0090 driver in order to
improve the performances.

Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2a776313332c98bdc61485d79aa6f3592f03793a 16-Sep-2011 Michael Krufky <mkrufky@kernellabs.com> [media] dib0700: fix ERROR: space required after that ','

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
9a9677afed9a4009f1201a23765a23e49ef8b95f 13-Sep-2011 Michael Krufky <mkrufky@kernellabs.com> [media] dib0700: fix ERROR: space required before that '&'

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
6e1ce98df1029701d8133a09e52134cfc15f86d9 13-Sep-2011 Michael Krufky <mkrufky@kernellabs.com> [media] dib0700: fix WARNING: suspect code indent for conditional statements

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
e3e59b085e1fc5fff9143be157218782d1f75d5c 12-Sep-2011 Michael Krufky <mkrufky@kernellabs.com> [media] dib0700: fix WARNING: please, no spaces at the start of a line

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
77eed219fed5a913f59329cc846420fdeab0150f 06-Sep-2011 Michael Krufky <mkrufky@kernellabs.com> [media] dvb-usb: refactor MFE code for individual streaming config per frontend

refactor MFE code to allow for individual streaming configuration
for each frontend

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Reviewed-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
bfd4500c9abf3e70e9c563bcba5675bd302f5a4e 25-Jul-2011 Antti Palosaari <crope@iki.fi> [media] dvb-usb: prepare for multi-frontend support (MFE)

Change adapter FE pointer as array of FE pointers.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
941830c9278a72e31389eb04cdfc397f66866de0 06-Jun-2011 Mauro Carvalho Chehab <mchehab@redhat.com> [media] xc4000: make checkpatch.pl happy

Solve the ./scripts/checkpatch.pl compliants for the patches
that added xc4000 support, including a few changes at dib0700.

While here, remove a few printk noise by converting some msgs
into debug ones.

Cc: Istvan Varga <istvan_v@mailbox.hu>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
8edeb6eb1ae113b8f25a79e5076c1a1ec93538d0 06-Jun-2011 istvan_v@mailbox.hu <istvan_v@mailbox.hu> [media] xc4000: removed card_type

Removed the use of 'card_type' from the tuner configuration structure, and
replaced it with separate parameters to set board-specific configuration.

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
341747bef5dd2e2f56647ba30ea2180752905fa0 06-Jun-2011 istvan_v@mailbox.hu <istvan_v@mailbox.hu> [media] xc4000: code cleanup

Various coding style changes:
- removed unused / commented out code
- changed C++ style comments to C format
- renamed functions and variables that included upper case letters in the name
- removed tabs from module parameter descriptions
- replaced the use of XC_RESULT_* with standard error codes

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
62956cedb5e6932c021d52b80bfbcf8add014be4 27-Dec-2009 Devin Heitmueller <dheitmueller@kernellabs.com> [media] dib0700: remove notes from bringup of PCTV 340e

Remove some inline comments I had written from when I was computing the proper
dib7000p configuration to work with the xc4000.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2df12510f97664b740a94cd7fd816460c55ce29b 27-Dec-2009 Devin Heitmueller <dheitmueller@kernellabs.com> [media] dib0700: make PCTV 340e work!

Fixup the PLL and AGC configs so that the 340e works (correcting errors I made
when I did the original config blindly).

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
f1c78d340fc21adb01f89f9bee15c58b533bffd7 05-Oct-2009 Devin Heitmueller <dheitmueller@kernellabs.com> [media] dib0700: fixup PLL config for PCTV 340e

Based on a reference trace under Windows, reverse engineer the PLL config.
Note that the xtal is not yet setup, and the timf cannot be determined yet
because my reference trace doesn't actually achieve a signal lock.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
8583fc834e704312fa9e7c756244895de55d800a 28-Jul-2009 Devin Heitmueller <dheitmueller@kernellabs.com> [media] xc4000: setup dib7000p AGC config for PCTV 340e

Setup a proper AGC config for the 340e, based on the Windows USB trace

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2750d9c3afe7c4b9a21993d79fe31b8d44bde5bd 20-Jul-2009 Devin Heitmueller <dheitmueller@kernellabs.com> [media] dib0700: add a sleep before attempting to detect dib7000p

Add a sleep since in some cases the dib7000p wasn't online when being probed.
The optimal timing has not yet been determined.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
59d0c37baadaba10a3966ad28bbf1663d850adf1 30-Jun-2009 Devin Heitmueller <dheitmueller@kernellabs.com> [media] dib0700: successfully connect to xc4000 over i2c for PCTV 340e

Use the correct i2c bus to communicate with the tuner, and properly setup the
reset GPIO and i2c address.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
01f16263ad8c53f368575db50ab72a287d7daa75 24-Jun-2009 Devin Heitmueller <dheitmueller@kernellabs.com> [media] dib0700: properly setup GPIOs for PCTV 340e

Provide a frontend setup routine for the PCTV 340e which takes into account
the specific GPIO setup of the board.

Note that this patch does *not* take into account the xc4000 reset pin, which
is attached to the dib7000.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
33fb1681c61456898b986405a13222a913f10a4a 24-Jun-2009 Devin Heitmueller <dheitmueller@kernellabs.com> [media] dib0700: add USB id for PCTV 340eSE

Add the board profile for the PCTV 340eSE, since that's what I have here
for development.

[mchehab@redhat.com: rebased on the top of the current tree]
Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
8d009a0c41475a482aca17d2a9fc8e6965f2fdf9 24-Jun-2009 Davide Ferri <davidef1986@gmail.com> [media] dib0700: add initial code for PCTV 340e by Davide Ferri

This is initial code written by Davide Ferri for the PCTV 340e, including
a new xc4000 driver. I am checking in all the code unmodified, and making
no assertions about its quality (other than confirming it compiles).

[mchehab@redhat.com: rebased on the top of the current tree]
Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Davide Ferri <davidef1986@gmail.com>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
d1402307c23cfeafce2313d936a4a990eb8783f7 21-May-2011 Stéphane Elmaleh <stephane.elmaleh@laposte.net> [media] support for medion dvb stick 1660:1921

[mchehab@redhat.com: The same patch were sent by Alf and by Randoslaw.
I've applied the oldest version, just fixing the entry index]

Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Tested-by: James Huk <huk256@gmail.com>
Tested-by: Alf Fahland <alf-f@gmx.de>
Signed-off-by: Radoslaw Warowny <radoslaww@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
fd206508492caffaccc36cbfc40d3b1f8eeb1f0b 26-Mar-2011 Mariusz Kozlowski <mk@lab.zgora.pl> [media] dib0700: fix possible NULL pointer dereference

Seems like 'adap->fe' test for NULL was meant to be before we dereference
that pointer.

Signed-off-by: Mariusz Kozlowski <mk@lab.zgora.pl>
Acked-by: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
71682520b33abef3f6c3fb618cb530826f472476 03-Apr-2011 Patrick Boettcher <pboettcher@kernellabs.com> [media] dib0700: fix possible NULL pointer dereference

Seems like 'adap->fe' test for NULL was meant to be before we dereference
that pointer.

Signed-off-by: Mariusz Kozlowski <mk@lab.zgora.pl>
Signed-off-by: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
7f4d527f0bf3ddc8c257b21fb9bbada5e49f0ef0 03-Apr-2011 Patrick Boettcher <pboettcher@kernellabs.com> [media] DIB0700: fix typo in dib0700_devices.c

Fix typo introduced in b4d6046e841955be9cc49164b03b91c9524f9c2e.

Spotted by Dr. David Alan Gilbert. Thanks for that.

Signed-off-by: Patrick Boettcher <pboettcher@kernellabs.com>
Cc: Dr. David Alan Gilbert <linux@treblig.org>
Cc: stable@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
498e677cfd78b098342640f382293782bfa0bd63 08-Feb-2011 Lukas Max Fisch <lukas.fisch@googlemail.com> [media] Technisat AirStar TeleStick 2

Based on staging 2.6.39.

This patch is based on Veit Berwig's work.

Signed-off-by: Lukas Fisch <lukas.fisch@gmail.com>
Thanks-to: Veit Berwig <veit.Berwig@fimi.landsh.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
b4d6046e841955be9cc49164b03b91c9524f9c2e 04-Jan-2011 Olivier Grenie <olivier.grenie@dibcom.fr> [media] DiBxxxx: Codingstype updates

This patchs fix several conding-style violations.

Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
be9bae10ffa5aeeef051e893c3b15a5d10eb657d 04-Jan-2011 Olivier Grenie <olivier.grenie@dibcom.fr> [media] DiB0700: add support for several board-layouts

This patchs adds support for DiBcom's NIM8096MD, NIM9090M, NIM9090MD,
NIM7090, TFE7090PVR (no diversity) reference designs.

Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
e192a7cf0effe7680264a5bc35c0ad1bdcdc921c 14-Jan-2011 Olivier Grenie <olivier.grenie@dibcom.fr> [media] DiB7000M: add pid filtering

This patch adds the pid filtering for the dib7000M demod. It also
corrects the pid filtering for the dib7700 based board. It should
prevent an oops, when using dib7700p based board.

References: https://bugzilla.novell.com/show_bug.cgi?id=644807

Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Tested-by: Pavel SKARKA <paul.sp@seznam.cz>
Cc: stable@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
52b661449aecc47e652a164c0d8078b31e10aca0 17-Nov-2010 Mauro Carvalho Chehab <mchehab@redhat.com> [media] rc: Rename remote controller type to rc_type instead of ir_type

for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,IR_TYPE,RC_TYPE,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_type,rc_type,g <$i >a && mv a $i; done

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
ca86674b8a93ea11c4bb6f4dd0113b1adf1fa841 17-Nov-2010 Mauro Carvalho Chehab <mchehab@redhat.com> [media] Rename all public generic RC functions from ir_ to rc_

Those functions are not InfraRed specific. So, rename them to properly
reflect it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
d8b4b5822f51e2142b731b42c81e3f03eec475b2 29-Oct-2010 David Härdeman <david@hardeman.nu> [media] ir-core: make struct rc_dev the primary interface

This patch merges the ir_input_dev and ir_dev_props structs into a single
struct called rc_dev. The drivers and various functions in rc-core used
by the drivers are also changed to use rc_dev as the primary interface
when dealing with rc-core.

This means that the input_dev is abstracted away from the drivers which
is necessary if we ever want to support multiple input devs per rc device.

The new API is similar to what the input subsystem uses, i.e:
rc_device_alloc()
rc_device_free()
rc_device_register()
rc_device_unregister()

[mchehab@redhat.com: Fix compilation on mceusb and cx231xx, due to merge conflicts]
Signed-off-by: David Härdeman <david@hardeman.nu>
Acked-by: Jarod Wilson <jarod@redhat.com>
Tested-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
970d14c6cca8c71307a4d23fe373c5895175b2d7 07-Sep-2010 Olivier Grenie <olivier.grenie@dibcom.fr> V4L/DVB: dib7000p: add disable sample and hold, and diversity delay parameter

This patch improves the overall driver performance in
diversity-reception scenarios.

Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Cc: stable@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
90e12cec707204930934acdb5efce5f94a163a5f 07-Sep-2010 Olivier Grenie <olivier.grenie@dibcom.fr> V4L/DVB: dib7770: enable the current mirror

To improve performance on DiB7770-devices enabling the current mirror
is needed.

This patch adds an option to the dib7000p-driver to do that and it
creates a separate device-entry in dib0700-device to use those changes
on hardware which is using the DiB7770.

Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
3bfb317f97cfddbbec67bbe8e35ad38af3507397 03-Sep-2010 Mauro Carvalho Chehab <mchehab@redhat.com> V4L/DVB: Don't identify PV SBTVD Hybrid as a DibCom device

As reported by Carlos, Prolink Pixelview SBTVD Hybrid is based on
Conexant cx231xx + Fujitsu 86A20S demodulator. However, both shares
the same USB ID. So, we need to use USB bcdDevice, in order to
properly discover what's the board.

We know for sure that bcd 0x100 is used for a dib0700 device, while
bcd 0x4001 is used for a cx23102 device. This patch reserves two ranges,
the first one from 0x0000-0x3f00 for dib0700, and the second from
0x4000-0x4fff for cx231xx devices.

This may need fixes in the future, as we get access to other devices.

Thanks-to: Carlos Americo Domiciano <c_domiciano@yahoo.com.br>
Cc: stable@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
0ffd1ab34a00b1e92af50ef11e696839f4cf642b 01-Aug-2010 Mauro Carvalho Chehab <mchehab@redhat.com> V4L/DVB: dib0700: properly implement IR change_protocol

This patch implements change_protocol callback. With this change,
there's no need for an extra modprobe parameter to specify the
protocol. When a table is loaded (either from in-kernel rc-map
tables or via ir-keytable program), the driver will automatically
change the protocol, in order to work with the given table.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
5af935cc96a291f90799bf6a2587d87329a91699 01-Aug-2010 Mauro Carvalho Chehab <mchehab@redhat.com> V4L/DVB: dib0700: break keytable into NEC and RC-5 variants

Instead of having one big keytable with 2 protocols inside, break it
into two separate tables, being one for NEC and another for RC-5 variants,
and properly identify what variant should be used at the boards entries.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
72b393106bddc9f0a1ab502b4c8c5793a0441a30 01-Aug-2010 Mauro Carvalho Chehab <mchehab@redhat.com> V4L/DVB: Port dib0700 to rc-core

Use the new rc-core handler at dvb-usb-remote for dib0700 driver.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
f72a27b8ed4458bb9f7203408441d27382bc93f4 31-Jul-2010 Mauro Carvalho Chehab <mchehab@redhat.com> V4L/DVB: dvb-usb: prepare drivers for using rc-core

This is a big patch, yet trivial. It just move the RC properties
to a separate struct, in order to prepare the dvb-usb drivers to
use rc-core. There's no change on the behavior of the drivers.

With this change, it is possible to have both legacy and rc-core
based code inside the dvb-usb-remote, allowing a gradual migration
to rc-core, driver per driver.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
34abf2194499571b2efa6b4aface8c0ea0c47ce1 31-Jul-2010 Mauro Carvalho Chehab <mchehab@redhat.com> V4L/DVB: dvb-usb: get rid of struct dvb_usb_rc_key

dvb-usb has its own IR handle code. Now that we have a Remote
Controller subsystem, we should start using it. So, remove this
struct, in favor of the similar struct defined at the RC subsystem.

This is a big, but trivial patch. It is a 3 line delect, plus
lots of rename on several dvb-usb files.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
84e2f037ce9672d0fb118e3e82cecfe6122ace3f 27-Apr-2010 Michael Müller <mueller michael@alice-dsl.net> V4L/DVB: Add Elgato EyeTV Diversity to dibcom driver

This patch introduces support for DVB-T for the following dibcom
based card: Elgato EyeTV Diversity (USB-ID: 0fd9:0011)

Support for the Elgato silver IR remote is added too (set parameter
dvb_usb_dib0700_ir_proto=0)

[w.sang@pengutronix.de: rebased to current linuxtv-master]
Signed-off-by: Michael Müller <mueller_michael@alice-dsl.net>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
e27e971c69f87bd6c00c4cff973497de365229ef 02-Apr-2010 Mauro Carvalho Chehab <mchehab@redhat.com> V4L/DVB: rename all *_rc_keys to ir_codes_*_nec_table

Several DVB drivers use a different name convention. As we're moving
the keytables, we need to use the same convention on all places.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
6a2071006b72bf887e38c025c60f98d2998ceacb 04-Jan-2010 Devin Heitmueller <dheitmueller@kernellabs.com> V4L/DVB (13930): dib0700: rework IR logic for firmware 1.20

When firmware 1.20 was introduced, the dib0700 switched from a polling model
using a USB control message, to the messages being delivered on a USB bulk
pipe. The code I originally added would do a blocking read on the pipe with a
50ms timeout. Because the dvb-usb-remote code makes use of the global
workqueue, this resulted in the global workqueue being blocked 50% of the
time. Also, the synchronous urb_bulk_msg() call would burn excess CPU time
(reflected as an abnormal increase in the system's load average when devices
were connected).

Rework the logic so that we now setup an asynchronous callback on the bulk
pipe, so that we now only handle RC data when it arrives on the pipe. Note
that we provide a stub function for the RC polling callback so that we can
continue to leverage the shared code in dvb-usb-rc for the setting up of the
input device.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
9542f502cf5a51b34d1c04c25206a8d69d4b8d0f 07-Dec-2009 Olivier Grenie <olivier.grenie@dibcom.fr> V4L/DVB (13585): STK807xPVR: correct the enumeration

STK807xPVR: correct the enumeration

Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
9c78303681278b983fac3c6c3c0aa3f93cf2ffa8 07-Dec-2009 Olivier Grenie <Olivier.Grenie@dibcom.fr> V4L/DVB (13584): DiBXXX0: fix most of the Codingstyle violations from the previous patch

This patch changes most of the Codingstyle violations which were
introduced by the previous patch. Line length less that 80 chars are
not corrected.

Signed-off-by: Olivier Grenie <Olivier.Grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
03245a5ee69a5faa99b020fe1aca9bafe10c46a9 04-Dec-2009 Olivier Grenie <Olivier.Grenie@dibcom.fr> V4L/DVB (13583): DiB8090: Add the DiB0090 tuner driver and STK8096GP-board

This patchs adds support for the DiBcom DiB0090 RF tuner and for
DiBcom's reference design STK8096GP. Small extracts of the DiB0070 and
the DiB8000-driver into a common codebase.

Signed-off-by: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Olivier Grenie <Olivier.Grenie@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
20232c4791507189d4e9499f81632a1ce434f2a4 01-Dec-2009 Patrick Boettcher <pboettcher@kernellabs.com> V4L/DVB (13582): DiB0700: remove USB IDs of PCTV 74e from the driver

The PCTV 74e is not a design based on the dib0700-USB-device
controller thus we should not have its USB IDs inside.

This reverts partly:
Add support for PCTV 74e (Pinnacle) + fix USB vendor IDs

Signed-off-by: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
e414753c8ce5fb0bd81155406efaefe57f374571 30-Nov-2009 Patrick Boettcher <pboettcher@kernellabs.com> V4L/DVB (13580): Add support for PCTV 74e (Pinnacle) + fix USB vendor IDs

This patch adds support for PCTV 74e (Pinnacle) and it fixes the USB vendor IDs for PCTV (f.k.a Pinnacle).
For convenience all new PCTV USB product IDs are also existing with Pinnacle's USB vendor ID.

Signed-off-by: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
c86c82b74f800486ede57fdd5a4fa77d86368861 04-Nov-2009 Sergio C Fortier <sergiofortier@yahoo.com.br> V4L/DVB (13297): dib0700_devices: EvolutePC TvWay+ USB ISDB-Tb remote control support

Patch for EvolutePC TvWay+ USB ISDB-Tb remote control support.

[dougsland@redhat.com: fixed malformed patch]
Cc: Patrick Boettcher <pboettcher@dibcom.fr>
Signed-off-by: Sergio C Fortier <sergiofortier@yahoo.com.br>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
648732fcefa73932ae8caa8bcfd262863904dd66 04-Nov-2009 Mauro Carvalho Chehab <mchehab@redhat.com> V4L/DVB (13271a): Fix a badly solved merge conflict

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
8a378e8543f044b3e54ddbbb03c349bf054fcedf 28-Sep-2009 S?rgio Fortier <sergiofortier@yahoo.com.br> V4L/DVB (13052): DiB0700: EvolutePC TvWay+ USB ISDB-Tb fullseg device support

Patch for EvolutePC TvWay+ USB ISDB-Tb fullseg device support.

Signed-off-by: S?rgio C Fortier <sergiofortier@yahoo.com.br>
Signed-off-by: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
eac1fe1050f223d28ebe5bb73b438d82ffd5b675 23-Sep-2009 Olivier Grenie <olivier.grenie@dibcom.fr> V4L/DVB (13051): DiB7000P: improve rebostness of HAS_LOCK indicator

Update the dib7000p:
The status is HAS_LOCK only if the demod is able to decode the TPS. Sometimes, there is a TPS data lock, even if the demod is not able to decode it (ex: no RF signal).
For the STK7770P: correct value for the charge pump

Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
f8731f4ddedb78693ae05e40aac5c4817f740518 18-Sep-2009 Olivier Grenie <olivier.grenie@dibcom.fr> V4L/DVB (13049): dib8000: SNR in 10th of dB

dib7000p/dib8000: added pid filtering

dib8000: the SNR is in 10th of dB (not in dB)
dib7000p and dib8000: added the pid filtering. This feature is enabled by module option (dvb-usb module).

Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
61b1e58f0e1b9dd0e6ab7199f19b93948af4baa1 26-Sep-2009 Mauro Carvalho Chehab <mchehab@redhat.com> V4L/DVB (13044): dib0700: Be less verbose when an IR key is pressed

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
4c5128b30dc079d625bd109a94d5937d14f93ece 26-Sep-2009 Mauro Carvalho Chehab <mchehab@redhat.com> V4L/DVB (13043): Add support for Pixelview SBTVD IR

This IR uses NEC protocol. In order to use, dvb_usb_dib0700_ir_proto=0
should be used.

Cc: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
aa15c0a347be6d5d16c557ed5b6b72345be48bdd 26-Sep-2009 Mauro Carvalho Chehab <mchehab@redhat.com> V4L/DVB (13042): Add NEC protocol to firmware v1.2 handler

Currently, dvb_usb_dib0700_ir_proto is supported only with firmwares
older than 1.2. Adds support for it also with the newer firmware.

This is needed in order to support PixelView SBTVD IR.

Cc: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1e13c8f0c97c883287b1940719d0040fd38fcd58 19-Sep-2009 Patrick Boettcher <pboettcher@kernellabs.com> V4L/DVB (13050): DIB0700: fix-up USB device ID for Terratec/Leadtek

git commit db48138f6bc4d2b613b08731ffc8b319432ebc25 changed by accident the
assignment of certain USB IDs to their device-specific-handlers.

Thanks to Edward Sheldrake for finding this regression

Signed-off-by: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
aaeab30f753d9499e04979e2a5a7feadba18c39d 16-Sep-2009 Mauro Carvalho Chehab <mchehab@redhat.com> V4L/DVB (12906): dib0700: Add support for Prolink SBTVD

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
ba3fe3a96374ff209f532a4924743bb1fa4d57f6 16-Sep-2009 Patrick Boettcher <pboettcher@dibcom.fr> V4L/DVB (12901): DiB0700: add support for STK807XP and STK807XPVR

This patchs adds support for the DiB8000 based devices STK807xP and
STK807xPVR to the dib0700-device-tree.

[mchehab@redhat.com: Fix merge conflicts]

Signed-off-by: Olivier Grenie <Olivier.Grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <pboettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
7e5ce6515d0deb76a49dcb4112a6dff5d950bfb6 03-Aug-2009 Patrick Boettcher <Patrick.Boettcher@dibcom.fr> V4L/DVB (12898): DiB0070: Update to latest internal release

General update of the dib0070-driver based on DiBcom's latest release.

New driver features can enable better performance in some reception situations.

Signed-off-by: Patrick Boettcher <Patrick.Boettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
db48138f6bc4d2b613b08731ffc8b319432ebc25 15-Sep-2009 Patrick Boettcher <pboettcher@kernellabs.com> V4L/DVB (12889): DIB0700: added USB IDs for a Terratec DVB-T XXS

Since there is now correct support for the DiB7770 the support for the
'Terratec Cinergy T USB XXS (HD)' can be added.

One USB-ID has been moved, another one has been added.

Signed-off-by: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
d300bd691464ffb87342e375793ac2418e66c3f3 15-Sep-2009 Olivier Grenie <olivier.grenie@dibcom.fr> V4L/DVB (12888): STK7770P: Add support for STK7770P

Added support for the dib7770P and the STK7770P

Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
74b76f213640b4ebde9134d94a8013dbfecfcd93 02-Sep-2009 Olivier Grenie <olivier.grenie@dibcom.fr> V4L/DVB (12886): Added new Pinnacle USB devices

Added Pinnacle PCTV USB devices based on PCTV 73e.

Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2e3658836efad06662968bd6373c72df06c4b2f1 29-Aug-2009 Mauro Carvalho Chehab <mchehab@redhat.com> V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field

In order to be closer to V4L IR implementation, it is needed to replace
u8 custom, data
to:
u16 scan

This allows using non-rc5 mappings, like the 8 bit keycodes used on older
protocols. It will also allow future implementations of rc6 keystrokes
when needed.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
200e861c511ded56783a3032f9d41fc6f1474e7a 04-Aug-2009 James A Webb <jamesawebb@gmail.com> V4L/DVB (12584): Support for Kaiser Baas ExpressCard Dual HD Tuner

The card is reported as YUAN High-Tech Development Co., Ltd STK7700D

[mchehab@redhat.com: fix merge conflicts and properly name USB PID]
Cc: Patrick Boettcher <patrick.boettcher@desy.de>
Signed-off-by: James A Webb <jamesawebb@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
c53d83ccc8a180d05f6f930167a4acd4a9694e5d 05-Aug-2009 Pete Hildebrandt <send2ph@googlemail.com> V4L/DVB (12396): [patch] Added Support for STK7700D (DVB)

This patch adds support for the STK7700D USB-DVB-Device.

lsusb identifies it as:
idVendor 0x1164 YUAN High-Tech Development Co., Ltd
idProduct 0x1efc
iProduct 2 STK7700D

The device is build into a Samsung R55-T5500 notebook.

Signed-off-by: Pete Hildebrandt <send2ph@googlemail.com>
Signed-off-by: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1ebcad77078a10571eb194b53cb65006d3daf3c4 02-Jul-2009 Joe Perches <joe@perches.com> V4L/DVB (12197): Remove unnecessary semicolons

Cc: Patrick Boettcher <patrick.boettcher@desy.de>
Cc: Steven Toth <stoth@linuxtv.org>
Cc: Igor M. Liplianin <liplianin@netup.ru>
Cc: Srinivasa Deevi <srinivasa.deevi@conexant.com>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
a9b8fe30a6d2a49749327ff18c4daa488ef73ab3 20-May-2009 Patrick Boettcher <pb@linuxtv.org> V4L/DVB (11831): dib0700: added USB IDs for Terratec T3 and T5

This patch adds the USB IDs for the Terratec devices T3 and T5.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
f0f4ae763b3dc04de3745a75c3518925d1b8325e 20-May-2009 tomas petr <tom-petr@seznam.cz> V4L/DVB (11830): dib0700: add support for Leadtek WinFast DTV Dongle H

"Leadtek WinFast DTV Dongle H" is a hybrid digital/analog USB-stick TV
receiver. The code below allows the digital part to work with dvb_usb
in linux.

Signed-off-by: tomas petr <tom-petr@seznam.cz>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
f0f4633a048128031b1a37253ab7935aca748b6b 05-May-2009 Devin Heitmueller <dheitmueller@kernellabs.com> V4L/DVB (11801): dib0700: reduce xc5000 sleep time for Pinnacle 801e to 10ms

According to the xc5000 spec, the reset pin only needs to be held low for 10ms.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
513846ece644662dc0914f7b518ed1bd29953fc3 20-Apr-2009 Armin Schenker <sar@snafu.de> V4L/DVB (11571): Add Elgato EyeTV DTT deluxe to dibcom driver

This patch introduces support for DVB-T for the following dibcom based
card:
Elgato EyeTV DTT deluxe (USB-ID: 0fd9:0020)

Signed-off-by: Armin Schenker <sar@snafu.de>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
919a5488dba69c79d52876e8d4f9bc0ffe0c58fe 29-Mar-2009 Klaus Flittner <klaus@flittner.org> V4L/DVB (11290): Add Elgato EyeTV DTT to dibcom driver

This patch introduces support for DVB-T for the following dibcom based card:
Elgato EyeTV DTT (USB-ID: 0fd9:0021)

Signed-off-by: Klaus Flittner <klaus@flittner.org>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16ba1ee5d2d4d5d3b7d69a7a2e49de393aa931e5 29-Mar-2009 Xoan Loureiro <x04n2.0@gmail.com> V4L/DVB (11289): Patch for Yuan MC770 DVB-T (1164:0871)

This patch adds support for the Yuan MC770 DVB-T (1164:0871).

Thanks to Xoan Loureiro.

Signed-off-by: Xoan Loureiro <x04n2.0@gmail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
ce904bcba41d0b4b809e9573ca43f391e5ffcf4b 19-Jan-2009 Michael Krufky <mkrufky@linuxtv.org> V4L/DVB (10927): dib0700: add support for Hauppauge ATSC MiniCard

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
9abb6e6f5942885b7ca387a41e55e645732d63bc 26-Feb-2009 Pascal Terjan <pterjan@mandriva.com> V4L/DVB (10825): Add ids for Yuan PD378S DVB adapter

Signed-off-by: Arnaud Patard <apatard@mandriva.com>
Signed-off-by: Pascal Terjan <pterjan@mandriva.com>
Cc: Patrick Boettcher <patrick.boettcher@desy.de>
[mchehab@redhat.com: Fixed a small merge conflict]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
0a6e1ed2f11d92e24c3792ce5403e2628a9f7a7e 24-Feb-2009 sebastian.blanes@gmail.com <sebastian.blanes@gmail.com> V4L/DVB (10824): Add "Sony PlayTV" to dibcom driver

This patch introduces support for DVB-T for the following dibcom based card:
Sony PlayTV (USB-ID: 1415:0003)

Signed-off-by: Sebastián Blanes <sebastian.blanes@gmail.com>
Cc: Patrick Boettcher <patrick.boettcher@desy.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
83c4fdf7aa9e6630f668de0932b0bd44d587ec7a 21-Jan-2009 Devin Heitmueller <dheitmueller@linuxtv.org> V4L/DVB (10321): dib0700: Report dib0700_i2c_enumeration failures

Make it clear that a failure in dib0700_i2c_enumeration is a fatal condition
and we cannot continue. If the failure occurs, do not attempt to attach to
the tuner.

Problem Noticed the issue when debugging an i2c issue a YUAN High-Tech
STK7700PH for user Roshan Karki <roshan@olenepal.org>.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
c985a8dca3320a11550efc995d8bb40d1d739493 21-Jan-2009 Arne Luehrs <arne.luehrs@googlemail.com> V4L/DVB (10319): dib0700: enable IR receiver in Nova TD usb stick (52009)

Adds the IR data structure to the configuration datastructure of the
Hauppauge WinTV Nova-TD USB stick (52009)

Provided remote control is the same as theone provided with the Nova-T500
Card.

Signed-off-by: Arne Luehrs <arne.luehrs@googlemail.com>
Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
db4b2d193c2d3ad495bcfbce8d4354c1663af2e5 13-Jan-2009 Nicolas Fournier <nicolasfournier@yahoo.com> V4L/DVB (10233): [PATCH] Terratec Cinergy DT XS Diversity new USB ID (0ccd:0081)

The following patch adds support for a new version of the
Terratec Cinergy DT USB XS Diversity Dual DVB-T TV tuner stick.
The USB ID of the new stick is 0ccd:0081.
The hardware of the stick has changed, when compared to the first version of
this stick, but it still uses quite standard components, so that only minor
changes are needed to the sources.

The patch has been successfully tested with hotplugging the device and then
2 x tzap and 2 x mplayer, to watch two different TV programs simultaneously.

The stick works with both, the old and new firmwares:
- dvb-usb-dib0700-1.10.fw and
- dvb-usb-dib0700-1.20.fw

Signed-off-by: Nicolas Fournier <nicolasfournier@yahoo.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
bb1b082ed65292fc6fc7e01bbe0dd005d5a4140e 08-Jan-2009 Yusuf Altin <yusuf.altin@t-online.de> V4L/DVB (10195): [PATCH] add Terratec Cinergy T Express to dibcom driver

This patch introduces support for dvb-t for the following dibcom based card:
Terratec Cinergy T Express (USB-ID: 0ccd:0062)

Signed-off-by: Yusuf Altin <yusuf.altin@t-online.de>
Signed-off-by: Albert Comerma <albert.comerma@gmail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
4b330bee66e88c94789d2eea250dd1fd454a645e 01-Dec-2008 Devin Heitmueller <devin.heitmueller@gmail.com> V4L/DVB (9780): dib0700: Stop repeating after user stops pushing button

A user noticed that there would continue to be 4-6 keypresses even after the
user stopped holding down the button. This was because we were not reading
the bulk pipe faster than the firmware was injecting information, which would
result in a backlog.

Make the query interval faster, and increase the number of cycles before we
start repeating to compensate.

Thanks to Knud Poulsen <knud.poulsen@nokia.com> for pointing this out.

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
99afb989b05b9fb1c7b3831ce4b7a000b214acdb 15-Nov-2008 Devin Heitmueller <devin.heitmueller@gmail.com> V4L/DVB (9639): Make dib0700 remote control support work with firmware v1.20

The format for reading the IR controller changed in firmware 1.20. It now
provides the events on bulk endpoint 1 instead of using a control request.

Support the new format, providing backward compatibility for users who might
be using older firmware.

Thanks to Patrick Boettcher <patrick.boettcher@desy.de> for providing the
required information on how the version 1.20 firmware works.

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
79025a9ed9132880d5197611dec6d8533c121ac7 06-Oct-2008 Devin Heitmueller <devin.heitmueller@gmail.com> V4L/DVB (9114): dib0700: fix bad assignment of dib0700_xc5000_tuner_callback after return call

Put callback definition before function return and cleanup callback:

Fix a bug where the xc5000 callback was being set *after* the
return call (essentially resulting in dead code).

Also cleanup the callback function to detect unknown commands.

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
767f3b3bf23244d52be0492df20b0eaf14f501c5 25-Sep-2008 Michael Krufky <mkrufky@linuxtv.org> V4L/DVB (9051): dib0700: use dvb_frontend->callback for xc5000 gpio reset

The tuner_callback function pointer from struct xc5000_config has been removed.
Use dvb_frontend->callback instead.

Also, mark function dib0700_xc5000_tuner_callback as static int.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
d7cba043d7ec840d67bd5143779d1febe7d83407 12-Sep-2008 Michael Krufky <mkrufky@linuxtv.org> V4L/DVB (9049): convert tuner drivers to use dvb_frontend->callback

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
48aa739164ca6430b8b1da12ea367b44bb14ce82 25-Sep-2008 Chris Rankin <rankincj@yahoo.com> V4L/DVB (9047): [PATCH] Add remote control support to Nova-TD (52009)

This patch adds remote control support for the Hauppauge WinTV Nova-TD
(Diversity) model. (That's the 52009 version.) It also adds the
key-codes for the credit-card style remote control that comes with
this particular adapter.

Signed-off-by: Chris Rankin <rankincj@yahoo.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
d2fc3bfcc3abd14ffd1191b37d2809e780919ef4 25-Sep-2008 Devin Heitmueller <devin.heitmueller@gmail.com> V4L/DVB (9046): Add support for Non-Pro version of Pinnacle PCTV HD USB Stick

Add USB ID for Pinnacle PCTV HD USB Stick. According to the USB trace and
photos, the only difference is the removal of the port for the analog
S-video/audio input.

Thanks to Mike Pringle <oblongd@gmail.com> for providing the USB trace of the
device starting up, and testing the support.

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
cb22cb5213192d2c0baaeec0ae4961e268916419 08-Sep-2008 Devin Heitmueller <devin.heitmueller@gmail.com> V4L/DVB (9044): Add support for Pinnacle PCTV HD Pro 801e (ATSC only)

Add digital support for the Pinnacle PCTV HD Pro 801e (usb id 2304:023a)

Thanks to Patrick Boettcher <patrick.boettcher@desy.de> for providing new
firmware fixing the issue with the i2c that prevented the xc5000 from working.

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
5769743ad345881911cee4e73ddf6120b00ed3eb 07-Sep-2008 Albert Comerma <albert.comerma@gmail.com> V4L/DVB (9042): Add support for Asus My Cinema U3000 Hybrid

This patch introduces support for dvb-t for the following dibcom based
cards: Asus My Cinema U3000 Hybrid (USB-ID: 0b05:1736)

Signed-off-by: Albert Comerma <albert.comerma@gmail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
8751aaa6c8be191171cd8c7db01a9b4e01892b08 07-Sep-2008 Daniel Oliveira Nascimento <don@syst.com.br> V4L/DVB (9041): Add support YUAN High-Tech STK7700D (1164:1f08)

This patch extends the dib0700 driver to support the DVB-part of the Asus notebook M51Sn tv-tunner (USB-ID 1164:1f08).

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
bdc203e156ce938e12d957912bd29ca53d160540 06-Sep-2008 Devin Heitmueller <devin.heitmueller@gmail.com> V4L/DVB (9039): Add support for new i2c API provided in firmware version 1.20

The Pinnacle PCTV HD Pro has an xc5000, which exposed a bug in the dib0700's
i2c implementation where it did not properly support a single i2c read request
(sending it as an i2c write request instead). Version 1.20 of the firmware
added support for a new i2c API which supported such requests.

This change defaults to fw 1.20 for all devices, but does not default to using
the new i2c API (since initial testing suggests problems interacting with the
mt2060). Maintainers can enable the use of the new i2c API by putting
the following into their frontend initialization:

struct dib0700_state *st = adap->dev->priv;
st->fw_use_new_i2c_api = 1;

Also note that the code expects i2c repeated start to be supported. If the
i2c slave does not support repeated start, i2c messsages should have the
I2C_M_NOSTART flag set.

Thanks to Patrick Boettcher <patrick.boettcher@desy.de> for providing new
firmware fixing the issue as well as example i2c code utilizing the interface.

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17a370bcca661a849c9af07feae86f42d0c6dfd1 06-Sep-2008 Finn Thain <fthain@telegraphics.com.au> V4L/DVB (9038): Add support for the Gigabyte R8000-HT USB DVB-T adapter.

Thanks to Ilia Penev for the tip-off that this device is much the same as
(identical to?) a Terratec Cinergy HT USB XE, and for the firmware hints:
http://linuxtv.org/pipermail/linux-dvb/2008-August/028108.html

DVB functionality tested OK with xine using the usual dib0700 firmware.

This diff is based on the latest latest linuxtv.org v4l-dvb mercurial
repo.

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
9a0c04a1ee3b4df6a30ae6975e13c558908df400 03-Sep-2008 Michael Krufky <mkrufky@linuxtv.org> V4L/DVB (8840): dib0700: add basic support for Hauppauge Nova-TD-500 (84xxx)

This adds basic support for the Hauppauge Nova-TD-500 84xxx series.

A future patch will allow for one aerial input to supply both tuners.

With the current code, an aerial must be plugged into each antannae input
in order for both tuners to function.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
af2a887c9aaca82306e9744d914ac335051ce987 03-Sep-2008 Michael Krufky <mkrufky@linuxtv.org> V4L/DVB (8839): dib0700: add comment to identify 35th USB id pair

This comment helps to make the code more readable.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
d01eb2dc7d5265ec3bee9ec1b8ab79155e1310d6 04-Jul-2008 Michael Krufky <mkrufky@linuxtv.org> V4L/DVB (8186): dib0700: add support for Hauppauge Nova-TD Stick 52009

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
da5ee48677b96dbf44c2ae46857dea060af34164 21-May-2008 Al Viro <viro@ftp.linux.org.uk> V4L/DVB (7961): fix endianness bug in dib0700_devices.c

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
b1721d0da266b4af8cb4419473b4ca36206ab200 26-Apr-2008 Harvey Harrison <harvey.harrison@gmail.com> v4l/dvb: add statics to avoid multiple definitions

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
5da4e2c645e4324f63fd87a0f93e3d0ad6619798 30-Mar-2008 Darryl Green <darryl.green@aanet.com.au> V4L/DVB (7476): New USB ID for Leadtek DVB-T USB

Detect Leadtek Winfast USB DTV Dongle with ID of 0x6f01

Signed-off-by: Darryl Green <darryl.green@aanet.com.au>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
dc88807ed61ed0fc0d57bd80a92508b9de638f5d 30-Mar-2008 Alexander Simon <alexander.simon@informatik.tu-muenchen.de> V4L/DVB (7475): Added support for Terratec Cinergy T USB XXS

Alexander Simon found out that the Terratec Cinergy T USB XXS is just a clone of another DiB7070P-based device.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
58e6f95e613b37372a58fd504646ae1b1964c2ed 30-Mar-2008 Patrick Boettcher <pb@linuxtv.org> V4L/DVB (7474): support key repeat with dib0700 ir receiver

This patch enables support for repeating last event when a key is holded
down with dib0700 devices. It works with rc5 and nec remotes.
It also fixes an annoying bug that floods kernel log with "Unknown key"
messages after each keypress. This happened because the driver was not
resetting infrared register after each poll so it kept polling last key
even if nothing was being pressed. Fixing this, (calling rc_setup after
each poll), permits to implement key repeat.

Signed-off-by: Filippo Argiolas <filippo.argiolas at gmail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
6ca8f0b97473dcef3a754bab5239dcfcdd00b244 30-Mar-2008 Albert Comerma <albert.comerma@gmail.com> V4L/DVB (7473): PATCH for various Dibcom based devices

This patch introduces support for dvb-t for the following DiBcom based cards:

- Terratec Cinergy HT USB XE (USB-ID: 0ccd:0058)
- Terratec Cinergy HT Express (USB-ID: 0ccd:0060)
- Pinnacle 320CX (USB-ID: 2304:022e)
- Pinnacle PCTV72e (USB-ID: 2304:0236)
- Pinnacle PCTV73e (USB-ID: 2304:0237)
- Yuan EC372S (USB-ID: 1164:1edc)

Signed-off-by: Hans-Frieder Vogt <hfvogt@gmx.net>
Signed-off-by: Felix Apitzsch <F.Apitzsch@soz.uni-frankfurt.de>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Albert Comerma <albert.comerma@gmail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
4a2b108379743405bc488eaef6a75080aa1bbba4 25-Jan-2008 Patrick Boettcher <pb@linuxtv.org> V4L/DVB (7075): Make a local function static

Make a local function static

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
3cb2c39ded029b8572cf7625b8042e9984d63c2c 25-Jan-2008 Patrick Boettcher <pb@linuxtv.org> V4L/DVB (7073): DiB7070: Reception quality improved

Removing two bugs to improve sensitivity for DiB7070 and Dib7000P with MT2266.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
c52344fdc49665a4eeef24236750b49637d6982f 25-Jan-2008 Olivier DANET <odanet at caramail.com> V4L/DVB (7072): sets the MT2060 IF1 frequency according to EEPROM

Here is a patch for Hauppage Nova-T-Stick and Nova-T-500 users. It
sets the MT2060 IF1 frequency according to the calibration values
stored in the EEPROM.

It is supposed to enhance the signal quality, but, hey, there is no
guarantee. Feedbacks would be much appreciated, to know whether it
deserves being applied.

Signed-off-by: Olivier DANET <odanet at caramail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
13b83b5d516abe2610ae7812267d7d322050bf68 25-Jan-2008 Darren Salt <linux@youmustbejoking.demon.co.uk> V4L/DVB (7069): Support for myTV.t

Here's a roll-up which provides support for both this and the myTV.t.

Signed-off-by: Darren Salt <linux@youmustbejoking.demon.co.uk>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
c7637b1a31bb0470e1247f1923a323c90927ac37 25-Jan-2008 Tim Taubert <ttmails@gmx.de> V4L/DVB (7068): Add support for WinTV Nova-T-CE driver

Add support for WinTV Nova-T-CE driver

Signed-off-by: Tim Taubert <ttmails@gmx.de>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
132c3188433bcb149ee764be1ca9a69f6d719dfe 25-Jan-2008 Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us> V4L/DVB (7066): ASUS My Cinema U3000 Mini DVBT Tuner

Adding support for ASUS My Cinema U3000 Mini DVBT Tuner

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
7999a8161d06326f3c4cb797fcf0de8b2eb08253 25-Jan-2008 Yousef Lamlum <yousef@youseflamlum.com> V4L/DVB (7065): Artec T14BR patches

Added Artec T14BR support

Signed-off-by: Yousef Lamlum <yousef@youseflamlum.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
67053a409af94ac3d67e0ef0651c42c8c10f5394 10-Nov-2007 dominik <dominik95@free.fr> V4L/DVB (6589): Gigabyte u7000 usb dvb-t support

Signed-off-by: dominik <dominik95@free.fr>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
48e6a0173162690533951cd72b3edaa2e1605716 10-Nov-2007 Jaroslav Barton <djaara@djaara.net> V4L/DVB (6588): Leadtek Winfast DTV Dongle remote control

Add remote controller support for Leadtek Winfast DTV Dongle based on
DiB7700P, MT2060 and using last drivers (6040:6a79c243aecc), firmware
dvb-usb-dib0700-03-pre1.fw

Signed-off-by: Jaroslav Barton <djaara@djaara.net>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
74c78a26645a0ddc1d3b2fc8a523e560785aca27 11-Oct-2007 Patrick Boettcher <pb@linuxtv.org> V4L/DVB (6378): DiB0700-device: Using 1.10 firmware

As for most of the users the 1.10 firmware is an improvement we should
use this firmware always now.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
fa3b877e5c75a2f4d1706c40163dbf176a2fd80d 09-Oct-2007 Joachim Steiger <roh@hyte.de> V4L/DVB (6296): dib0700: add support for AverMedia DVB-T Express card

add Avermedia dvb-t express card 34 (usb2) id

Signed-off-by: Joachim Steiger <roh@hyte.de>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
b1139e353c7fc636bfe413f3296ba0284eb60c2e 18-Aug-2007 Darren Salt <linux@youmustbejoking.demon.co.uk> V4L/DVB (6040): Add IR support for Nova-T Stick

Working with Nova-T Stick (70001) with remote control model A415.
Untested with other dib0700m/dib0700p devices.

Signed-off-by: Darren Salt <linux@youmustbejoking.demon.co.uk>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
faebb914399ecf8ecfd0e24b96ac90d7381f7e07 18-Aug-2007 Darren Salt <linux@youmustbejoking.demon.co.uk> V4L/DVB (6039): Typo fix in Nova-TD description

Typo fix in Nova-TD description

Signed-off-by: Darren Salt <linux@youmustbejoking.demon.co.uk>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
89f4267d6fa96cb3db053d5183558c94ad5f46e5 01-Aug-2007 Janne Grunau <janne-dvb@grunau.be> V4L/DVB (5964): Fixed remote control for dib0700 with new firmware

The new firmware returns the data of the REQUEST_POLL_RC request in
reversed order. The default is RC5, but it can be adjusted using a
module parameter.

Signed-off-by: Janne Grunau <janne-dvb@grunau.be>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
034d65ed209f8525b1989dc3e6beca92fad57a7d 31-Jul-2007 Janne Grunau <janne-dvb@grunau.be> V4L/DVB (5962): Fix line-break in err output

line-breaks in dib0700-remote-query function fixed.

Signed-off-by: Janne Grunau <janne-dvb@grunau.be>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
3db78e59500a45e05cbe271c8e1ba5a2b7ce0ef8 31-Jul-2007 Patrick Boettcher <pb@linuxtv.org> V4L/DVB (5961): Fix support for DiB7000M-devices

Forgot to initialize the timf_default field.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
8779737b8e01b95fe6f1e33dc90ea621281c7b67 30-Jul-2007 Patrick Boettcher <pb@linuxtv.org> V4L/DVB (5959): Fix for size of remote keys in DiB0700

Fix for size of remote control keys in DiB0700.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
1f8ca4b37355cc56a4d25d5698a894ec46964f83 30-Jul-2007 Patrick Boettcher <pb@linuxtv.org> V4L/DVB (5958): Add support Compro VideoMate 500 with DiB7000PC

Add support Compro VideoMate 500 with DiB7000PC. Another design of
Compro uses the DiB7000PC and it has new USB ids.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
7161f27f2e61b44352a9dcf3927813380d5e710b 30-Jul-2007 Janne Grunau <janne-dvb@grunau.be> V4L/DVB (5957): Add remote keymap for the Hauppauge Nova-TD Stick

Copied from drivers/media/dvb/dvb-usb/nova-t-usb2.c

Signed-off-by: Janne Grunau <janne-dvb@grunau.be>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
82f3d5594240adcd8d6764cf31dffc473a6cc1d0 30-Jul-2007 Janne Grunau <janne-dvb@grunau.be> V4L/DVB (5956): Add remote control support for the Hauppauge Nova-T 500

This patch adds remote control support for the Hauppauge Nova-T 500
using the same keys as for STK7700PD.

Signed-off-by: Janne Grunau <janne-dvb@grunau.be>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
01373a5c97ced83d4cb520f7e56c80454a198bfb 30-Jul-2007 Patrick Boettcher <pb@linuxtv.org> V4L/DVB (5955): Add support for DiB7070-based devices

This changeset adds support for DiB7070P-based devices by adding the
dib0070-driver and putting the appropriate layouts into
dib0700_devices.c

It also includes a new firmware for the dib0700 which is necessary to
make the DiB7070-boards work and it also should fix the i2c-problems
on some boards.

Signed-off-by: Jean-Philippe Sibers <jpsibers@dibcom.fr>
Signed-off-by: Patrick Boettcher <pboettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
b6884a17fc70e979ef34e4b5560988b522bb50a0 27-Jul-2007 Patrick Boettcher <pboettcher@dibcom.fr> V4L/DVB (5954): Sync with DiBcom Driver Release 2.1.3 + some improvements

This changesets syncs the OpenSource driver for DiBcom demodulators
with version 2.1.3 of DiBcom reference driver. There were some
improvements since the last release for linux-dvb, e.g.:

- stepped AGC startup
- less space for initialization
- diversity synchronization

Furthermore this changeset contains the following things:

- latest AGC settings for MT2266-based devices (namely Nova-TD and other) will improve the sensitivity
- support for STK7700D reference design in dib0700-devices
- remove some line-breaks when debugging is enabled
- getting rid of layer between frontend_parameters and ofdm_channel used in dib*-drivers

Signed-off-by: Patrick Boettcher <pboettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
54d75ebaa02809f24a16624e32706af3bf97588e 25-Jul-2007 Olivier DANET <odanet@caramail.com> V4L/DVB (5914): Add initial support for Dual-DVB-T stick

Add initial support for Dual-DVB-T stick based on DiB7700 and MT2266

- Microtune MT2266 driver.
- Preliminary support for these dual tuner devices :
- Pinnacle Dual DVB-T diversity
- Terratec Cinergy DT USB XS diversity
- Hauppauge Nova TD USB

Signed-off-by: Olivier DANET <odanet@caramail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
387e69adff3d441616b45002ff85c5b36001be9e 02-Mar-2007 Dennis Ranke <mail@exoticorn.de> V4L/DVB (5373): [PATCH] Hauppauge Nova-T endianess problem on powerpc

When trying to use a Hauppauge Nova-T Stick on a big-endian architecture
(such as powerpc) no frontend can be attached.
The attached patch fixes this problem by removing two lines in
dib0700_ctrl_rd() that try to correct the endianess on two values that
already are correct:
- /* think about swapping here */
- value = le16_to_cpu(value);
- index = le16_to_cpu(index);
With this simple patch this dvb hardware works great, thanks to anyone
involved for the good work. :)

Signed-off-by: Dennis Ranke <mail@exoticorn.de>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
ddc9ece89dbeb374e34772232f5e26f64ce63390 27-Apr-2007 Christophe Cattelain <xof@skynet.be> V4L/DVB (5371): [PATCH] Pinnacle PCTV Sat Pro USB (450e) support by ttusb2.c (400e driver)

Added USB_PID_PCTV_450E to the 'usb_device_id ttusb2_table' and an entry in the
.devices table. The 400e driver now supports the 'Pinnacle PCTV Sat Pro USB
(450e)' with USB_ID 2304:0222.

Signed-off-by: Christophe Cattelain <xof@skynet.be>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
ced8fecaecba6aa6b092abeb0c9e51deeeac9247 14-Nov-2006 Jose Carlos Garcia Sogo <jsogo@debian.org> V4L/DVB (4823): Add alternative device ID (0xb808) for AverMedia AverTV Volar dongles.

Add alternative device ID (0xb808) for AverMedia AverTV Volar dongles.

Signed-off-by: Jose Carlos Garcia Sogo <jsogo@debian.org>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
f9aeba45000423cdf1211736592cb02c25f28437 12-Nov-2006 Stefan Traby <stefan@hello-penguin.com> V4L/DVB (4819): Dib0700: Add support for new revision of Nova-T Stick

Added support for Nova-T Stick with USB-pid: 0x7060

Signed-off-by: Stefan Traby <stefan@hello-penguin.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
8637a8759585b97ec1d54ff4a4f33f34be4f5b1c 08-Nov-2006 Michael Krufky <mkrufky@linuxtv.org> V4L/DVB (4805): Dib0700: Add support for Leadtek Winfast DTV Dongle (STK7700P based)

This patch adds support for the new, STK7700-based revision
of the Leadtek Winfast DTV Dongle.

Signed-off-by: Michal CIJOML Semler <cijoml@volny.cz>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
bf11f5e944b3bb7d310aff041a1664fb80a82078 19-Oct-2006 Patrick Boettcher <pb@linuxtv.org> V4L/DVB (4778): Fixed device count

Forgot to increase the device count for the STK7700P-devices

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
0ce215e1f0d40702d6233029d234293754610fd7 19-Oct-2006 Henning Schroeer <post@henning-schroeder.de> V4L/DVB (4776): Adding USB IDs for Uniwill STK7700P-ref-design

Adding USB IDs for Uniwill STK7700P-ref-design

Signed-off-by: Henning Schroeer <post@henning-schroeder.de>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
49a1376cf47b644f31d0fb2532054183fcec6fc8 19-Oct-2006 Tomi Koivulahti <birchbay@gmail.com> V4L/DVB (4775): [patch] Add Compro USB IDs

This patch adds Compro Videomate U500 to supported devices.

Signed-off-by: Tomi Koivulahti <birchbay@gmail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
a75763ffff4175bd8c115c217a39fbf445612aae 18-Oct-2006 Patrick Boettcher <pboettcher@dibcom.fr> V4L/DVB (4772): Add support for DiBcom DiB7000PC

This patch contains support for the DiB7000PC-driver.

Signed-off-by: Francois KANOUNNIKOFF <fkanounnikoff@dibcom.fr>
Signed-off-by: Patrick Boettcher <pboettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
69ea31e7debdefcf1412e8d590ae9bd90cf9253f 17-Oct-2006 Patrick Boettcher <pboettcher@dibcom.fr> V4L/DVB (4766): Add working dib7000m-module

First working version of the dib7000m-driver.
This commit also makes the Hauppauge NOVA-T Stick working.

Signed-off-by: Francois Kanounnikoff <fkanounnikoff@dibcom.fr>
Signed-off-by: Patrick Boettcher <pboettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
91bb9be6ff4101652bb104f9f083f340e73ba6dd 03-Dec-2006 Patrick Boettcher <pboettcher@dibcom.fr> V4L/DVB (4524): Initial commit for the DiB7000M-demod

Initial commit for the driver for the DiB7000M COFDM demodulator.

Signed-off-by: Francois KANOUNNIKOFF <fkanounnikoff@dibcom.fr>
Signed-off-by: Patrick Boettcher <pboettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
b97c5c7e6cc9ab1d2bb590db094b8534410deca3 20-Sep-2006 Patrick Boettcher <pb@linuxtv.org> V4L/DVB (4655): Removed compilation warnings

Removed compilation warnings for unused statics and locals

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
7fb3fc0c30a8bb8831da9d74b0c5f574962044f1 20-Sep-2006 Patrick Boettcher <pb@linuxtv.org> V4L/DVB (4654): Added module parameter force_lna_activation

Added a module parameter for force the activation of any LNA on a board.
Suggest by Steve Toth.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
9d0bc7047fc7a3f0e3bdc9ccc53ab6c487d4e189 26-Sep-2006 Patrick Boettcher <patrick.boettcher@desy.de> V4L/DVB (4654a): dib700m is not yet ready.

Removing include for kernel 2.6.19

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
303cbeaaacd449545d259f82b966d070418c58af 19-Sep-2006 Patrick Boettcher <pb@linuxtv.org> V4L/DVB (4653): Misc fixes for Nova-T 500

- forward the clock to the slave undivided
- when sleeping the 3000 do not shutdown the clock

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
01b4bf31ce6ca6c1de31c773fa281a34fd98ff87 19-Sep-2006 Patrick Boettcher <pb@linuxtv.org> V4L/DVB (4652): Misc fixes for DiB3000MC and Nova-T 500

- make the timing frequency update work.
- fix AGC calibration for Nova-T 500

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
d535cfa776b091a95ca88ba560a9d296cb1570fd 19-Sep-2006 Patrick Boettcher <pb@linuxtv.org> V4L/DVB (4651): Adding another USB product ID for Nova-T 500

Adding another USB product ID for the Nova-T 500. Reported by Jose Alberto Reguero.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
6958effedb0dc709966c22e7fd0e8210b5401b84 19-Sep-2006 Patrick Boettcher <pb@linuxtv.org> V4L/DVB (4648): Hauppauge Nova-T 500 support added

This changeset finalizes the support of the Hauppauge Nova-T 500 (Dual DVB-T).
It adds correct AGC setting for the 3000P, correct firmware download state
detection.
Additionally it fixes the mt2060-driver to be able to be used with dvb_attach.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
b7f54910ce018f93a74211136be46c09cefd80e2 19-Sep-2006 Patrick Boettcher <pb@linuxtv.org> V4L/DVB (4647): Added module for DiB0700 based devices

Added module for DiB0700 based USB devices. This module is preliminary and
untested (because of a lack of test devices) but should work.
Further commits will be necessary to make it work properly.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>