History log of /drivers/media/dvb/frontends/stv0900_core.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7581e61d8d7a3ed89a3fdac2235231cd36548f78 01-Jan-2012 Mauro Carvalho Chehab <mchehab@redhat.com> [media] dvb: Remove ops->info.type from frontends

Now that this field is deprecated, and core generates it for
DVBv3 calls, remove it from the drivers.

It also adds .delsys on the few drivers where this were missed.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
7c61d80a9bcfc3fdec8ffd75756cad6a64678229 30-Dec-2011 Mauro Carvalho Chehab <mchehab@redhat.com> [media] dvb: don't require a parameter for get_frontend

Just like set_frontend, use the dvb cache properties for get_frontend.
This is more consistent, as both functions are now symetric. Also,
at the places get_frontend is called, it makes sense to update the
cache.

Most of this patch were generated by this small perl script:

while (<>) { $file .= $_; }
if ($file =~ m/\.get_frontend\s*=\s*([\d\w_]+)/) {
my $get = $1;
$file =~ s/($get)(\s*\([^\,\)]+)\,\s*struct\s+dtv_frontend_properties\s*\*\s*([_\d\w]+)\)\s*\{/\1\2)\n{\n\tstruct dtv_frontend_properties *\3 = &fe->dtv_property_cache;/g;
}
print $file;

Of course, the changes at dvb_frontend.[ch] were made by hand,
as well as the changes on a few other places, where get_frontend()
is called internally inside the driver.

On some places, get_frontend() were just a void function. Those
occurrences were removed, as the DVB core handles such cases.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
1b5d8716b1663ed00718d738a16f43ebeeeaf81d 26-Dec-2011 Mauro Carvalho Chehab <mchehab@redhat.com> [media] dvb: remove the track() fops

This callback is not used anywhere. Maybe it were used in the
past to optimize the custom algo, but, as it is not used anymore,
let's just remove it.

If later needed, some patch may re-add it with a proper
implementation.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
41da5320df6decec7efce0d936ccadfa9deb49d1 26-Dec-2011 Mauro Carvalho Chehab <mchehab@redhat.com> [media] dvb: don't pass a DVBv3 parameter for search() fops

Just like the other DVB algorithms, drivers should use the DVBv5
way to retrieve parameters: via the cache struct.

Actually, several drivers were partially using the DVBv3 struct
and partially using the DVBv5 way, with is confusing and may
lead into troubles.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
38d945e05c20d29aa01f1bb3806281a4d2bd3a36 26-Dec-2011 Mauro Carvalho Chehab <mchehab@redhat.com> [media] stv900: convert set_fontend to use DVBv5 parameters

Instead of using dvb_frontend_parameters struct, that were
designed for a subset of the supported standards, use the DVBv5
cache information.

Also, fill the supported delivery systems at dvb_frontend_ops
struct.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
a689e3657d7e82c2271008553c709fc79fb2e038 22-Dec-2011 Mauro Carvalho Chehab <mchehab@redhat.com> [media] dvb-core: add support for a DVBv5 get_frontend() callback

Creates a DVBv5 get_frontend call, renaming the DVBv3 one to
get_frontend_legacy(), while not all frontends are converted.

After the conversion for all drivers, get_frontend_legacy()
will be removed.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
bcc072756e4467dc30e502a311b1c3adec96a0e4 17-Nov-2011 Manu Abraham <abraham.manu@gmail.com> [media] STV0900: Query DVB frontend delivery capabilities

Override default delivery system information provided by FE_GET_INFO, so
that applications can enumerate delivery systems provided by the frontend.

Signed-off-by: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
3b30e0a871389eda9034084faec67d43478fb4c0 14-Feb-2011 Abylay Ospan <aospan@netup.ru> [media] stv0900: Update status when LOCK is missed

Signed-off-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
38cdbce7634bdd914b6c6e673c2f6ebedca30d43 28-Feb-2011 Igor M. Liplianin <liplianin@netup.ru> [media] stv0900: speed up DVB-S searching

Simptoms:
After zapping DVB-S2 channel searching for DVB-S tooks long time.
Now it takes less than a second.

Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
fa8bae102fbbabe9ecc4381ace3b74a199684594 25-Feb-2011 Igor M. Liplianin <liplianin@me.by> [media] dw2102: Prof 7500: Lock LED implemented

Code changed for dw2102, stv0900 in order to achieve that.

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
a82437510256b83671e49a23774c9c5ce0d4ab00 24-Mar-2010 Mauro Carvalho Chehab <mchehab@redhat.com> V4L/DVB: stv0900: Whitespace cleanup

Fixes sync with -hg tree

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
403c34f6bbc095f9c8b2e25becd65c9c3d159080 06-Mar-2010 Abylay Ospan <aospan@netup.ru> V4L/DVB: get_frontend for STV0900

Signed-off-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
62bdbb735c0415c2ffdddc2269a860a76f7f716a 06-Feb-2010 Julia Lawall <julia@diku.dk> V4L/DVB: drivers/media: Correct NULL test

In each case, the NULL test has been performed already.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@r@
expression *x;
expression e;
identifier l;
@@

if (x == NULL || ...) {
... when forall
return ...; }
... when != goto l;
when != x = e
when != &x
*x == NULL
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
fb3ab105a5ef43b03d2788e9b124c7c69112682f 29-Aug-2009 Roel Kluin <roel.kluin@gmail.com> V4L/DVB: stv0900: dereference of state->internal in fe_stv0900_error stv0900_init_internal()

state->internal allocation may fail as well as the allocation of
stv0900_first_inode or new_node->next_inode in append_internal().

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
936c05e7f677640a9bc4d77354899f199d7d958f 16-Jan-2010 Márton Németh <nm127@freemail.hu> V4L/DVB: stv0900: make more local functions static

Some functions are only used locally so mark them static.

This will remove the following sparse warnings (see "make C=1"):
* symbol 'extract_mask_pos' was not declared. Should it be static?
* symbol 'stv0900_initialize' was not declared. Should it be static?
* symbol 'stv0900_get_mclk_freq' was not declared. Should it be static?
* symbol 'stv0900_set_mclk' was not declared. Should it be static?
* symbol 'stv0900_get_err_count' was not declared. Should it be static?

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
cd79d33e168dba0d7de32c5bf010e20cff184b2a 15-Dec-2009 Igor M. Liplianin <liplianin@me.by> V4L/DVB (13818): Add Prof 7500 DVB-S2 USB card

The card based on stv0903 demod, stb6100 tuner.

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
247cb142a924fad215337170a5201a5cf9d960e1 12-Dec-2009 Abylay Ospan <aospan@netup.ru> V4L/DVB (13630): Print bitrate measured by stv0900 demod in stv0900_read_status

Signed-off-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
b699c2712b1ddcc3ef4491adde00a47a880fde97 17-Nov-2009 Igor M. Liplianin <liplianin@me.by> V4L/DVB (13407): Add Prof 7301 PCI DVB-S2 card

Add Prof 7301 PCI DVB-S2 card

The card based on stv0903 demod, stb6100 tuner.

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
1e0c397d5ee261b4d855bf38c1e9987caf0e37ca 07-Nov-2009 Igor M. Liplianin <liplianin@netup.ru> V4L/DVB (13340): stv0900: big rework to support cut 3.0.

Patch 3 of 4.
Also patch changes logic to prevent code repetitions and big indents.
It makes checkpatch silent :)

Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
502cd96d5b0714e0ab022766014f58b0684699a8 27-Oct-2009 Igor M. Liplianin <liplianin@netup.ru> V4L/DVB (13337): Change str snr scale for stv0900/903 and Netup Dual DVB-S2 card.

Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
29372a8daec4c1dca83e294006488b1d47dd965c 17-Oct-2009 Igor M. Liplianin <liplianin@netup.ru> V4L/DVB (13336): stv0900: config definition for single/dual mode

Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
9329fb5b731cd535a7c7d0690d30e872f29a33d3 17-Oct-2009 Abylay Ospan <aospan@netup.ru> V4L/DVB (13335): stv0900: fix diseqc support for NetUP card

Signed-off-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
8171c2059cc4b0507faf3a0e0fdf28cc83d8ac62 19-Sep-2009 Igor M. Liplianin <liplianin@netup.ru> V4L/DVB (13045): Fix debug messaging for stv0900 demod.

Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
fc7e4a3e7201ee8a9a6359fdbcb6677231f353b5 19-Jul-2009 Abylay Ospan <aospan@netup.ru> V4L/DVB (12312): stv0900: fix i2c repeater configuration must be set to manual

In automatic mode every stop event on SDA line ends repetition.
However, in NetUP Dual card on the same i2c bus we have several devices.
If someone using both adapters to lock simultaneously or working with CAM interface
during lock procedure, it lead to end repetition prematurely quite often.
Set stv0900 i2c repeater to manual mode prevents such situation.

Signed-off-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
f867c3f4eab1d5006df4f3734fab1134feffbeba 19-Jun-2009 Igor M. Liplianin <liplianin@netup.ru> V4L/DVB (12098): Create table for customize stv0900 ts registers.

Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
ee1ebcfea6ee16491f88e8023554dd214e1ba85c 08-Jun-2009 Abylay Ospan <aospan@netup.ru> V4L/DVB (12097): Implement reading uncorrected blocks for stv0900

Signed-off-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
68191edeb50773993f4a05651b0a085bd110fbeb 14-Jun-2009 Abylay Ospan <aospan@netup.ru> V4L/DVB (12096): Bug fix: stv0900 register read must using i2c in one transaction

Signed-off-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
e9d4a6d5ef58a700d3add96ffb984741c6e34fff 17-Mar-2009 Abylay Ospan <aospan@netup.ru> V4L/DVB (11057): Fix CiMax stability in Netup Dual DVB-S2 CI

It appears TS discontinuity about one per 10 hrs if CAM used.
Patch to fix it.

Signed-off-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
5765348cd41c17c797765174d479508ecfbd43de 15-Mar-2009 Igor M. Liplianin <liplianin@netup.ru> V4L/DVB (11055): Fix typo in stv0900

Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
11a84143b27303095b035931350e9233b538c4e3 15-Mar-2009 Igor M. Liplianin <liplianin@netup.ru> V4L/DVB (11054): Shorten some lines in stv0900 to less then 81 characters

Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
78175bf2c5e4beb0874aee27dcfce58c4c7d4fb4 06-Mar-2009 Igor M. Liplianin <liplianin@netup.ru> V4L/DVB (10871): stv0900: delete debug messages not related to stv0900 tuning algorythm

Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
5a771cb186dfa1f663ea15cdff3e32e04a8427e3 09-Mar-2009 Randy Dunlap <randy.dunlap@oracle.com> V4L/DVB (10846): dvb/frontends: fix duplicate 'debug' symbol

Fix dvb frontend debug variable to be static, to avoid linker
errors:

drivers/built-in.o:(.data+0xf4b0): multiple definition of `debug'
arch/x86/kernel/built-in.o:(.kprobes.text+0x90): first defined here
ld: Warning: size of symbol `debug' changed from 85 in arch/x86/kernel/built-in.o to 4 in drivers/built-in.o

It would also be Good if arch/x86/kernel/entry_32.S didn't have a
non-static 'debug' symbol. OTOH, it helps catch things like this one.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c
99277b3824e4bfd290c30e8981929373c9a9e6a4 03-Mar-2009 Igor M. Liplianin <liplianin@netup.ru> V4L/DVB (10803): Add core code for ST STV0900 dual demodulator.

Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/dvb/frontends/stv0900_core.c