summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends
Commit message (Collapse)AuthorAgeFilesLines
* frontends: Fix typo in tda1004x.cMasanari Iida2012-02-051-2/+2
| | | | | | | | Correct spelling "alocate" to "allocate" in drivers/media/dvb/frontends/tda1004x.c Signed-off-by: Masanari Iida <standby24x7@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
* Merge branch 'master' into for-nextJiri Kosina2012-02-0399-3874/+6994
|\ | | | | | | | | Sync with Linus' tree to be able to apply patch to a newer code (namely drivers/gpu/drm/gma500/psb_intel_lvds.c)
| * [media] cxd2820r: sleep on DVB-T/T2 delivery system switchAntti Palosaari2012-01-231-2/+11
| | | | | | | | | | | | | | | | | | Fix bug introduced by multi-frontend to single-frontend change. It is safer to put DVB-T parts sleeping when auto-switching to DVB-T2 and vice versa. That was original behaviour. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] cxd2820r: remove unused parameter from cxd2820r_attachAntti Palosaari2012-01-232-6/+3
| | | | | | | | | | | | | | | | Fix bug introduced by multi-frontend to single-frontend change. This parameter is no longer used after multi-frontend to single-frontend change. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] cxd2820r: fix dvb_frontend_opsAntti Palosaari2012-01-231-1/+3
| | | | | | | | | | | | | | | | | | | | Fix bug introduced by multi-frontend to single-frontend change. * Add missing DVB-C caps * Change frontend name as single frontend does all the standards Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] ds3000: using logical && instead of bitwise &Dan Carpenter2012-01-171-1/+1
| | | | | | | | | | | | | | | | The intent here was to test if the FE_HAS_LOCK was set. The current test is equivalent to "if (status) { ..." Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] cxd2820r: do not allow get_frontend() when demod is not initializedAntti Palosaari2012-01-161-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes bug introduced by multi-frontend to single-frontend change. Finally HAS_LOCK is got back! We are not allowed to access hardware in sleep mode... Chip did not like when .get_frontend() reads some registers while chip was sleeping and due to that HAS_LOCK bit was never gained. TODO: We should add logic for dvb-core to drop out illegal calls like that. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] cxd2820r: wait demod lock for DVB-C tooAntti Palosaari2012-01-161-0/+1
| | | | | | | | | | | | | | | | | | | | Fix yet another bug introduced be recent cxd2820r multi-frontend to single-frontend change. Finally, we have at least almost working picture for DVB-C too. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] tda18271c2dd: Remove pointless linux/version.h includeJesper Juhl2012-01-161-1/+0
| | | | | | | | | | | | | | | | As pointed out by 'make versioncheck', there's no need for drivers/media/dvb/frontends/tda18271c2dd.c to Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] cxd2820r: do not switch to DVB-T when DVB-C failsAntti Palosaari2012-01-161-2/+2
| | | | | | | | | | | | | | | | Fix another bug introduced by recent multi-frontend to single-frontend change. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] mb86a20s: fix off by one checksDan Carpenter2012-01-161-4/+4
| | | | | | | | | | | | | | Clearly ">=" was intended here instead of ">". Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * mb86a20s: Add a few more register settings at the init seqMauro Carvalho Chehab2012-01-111-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some time ago, Manoel sent us a patch adding more stuff to the init sequence. However, his patch were also doing non-related stuff, by changing the init logic without any good reason. So, it was asked for him to submit a patch with just the data that has changed, in order to allow us to better analyze it. As he didn't what it was requested, I finally found some time to dig into his init sequence and add it here. Basically, new stuff is added there. There are a few changes: 1) The removal of the extra (duplicated) logic that puts the chip into the serial mode; 2) Some Viterbi VBER measurement init data was changed from 0x00 to 0xff for layer A, to match what was done for layers B and C. None of those caused any regressions and both make sense on my eyes. The other parameters additions actually increased the tuning quality for some channels. Yet, some channels that were previously discovered with scan disappered, while others appeared instead. This were tested in Brasilia, with an external antena. At the overall, it is now a little better. So, better to add these, and then try to figure out a configuration that would get even better scanning results. Reported-by: Manoel Pinheiro <pinusdtv@hotmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * mb86a20s: Group registers into the same lineMauro Carvalho Chehab2012-01-111-228/+87
| | | | | | | | | | | | | | | | | | On mb86a20s, some registers have sub-addresses, while others not. In order to make easier to compare different settings, group them. No functional changes in this patch. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] [BUG] it913x-fe fix typo error making SNR levels unstableMalcolm Priestley2012-01-101-1/+1
| | | | | | | | | | | | | | Fix error where SNR unstable and jumps levels. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] hd29l2: fix review findingsAntti Palosaari2012-01-101-3/+3
| | | | | | | | | | | | | | | | Fix some issues pointed out by Mauro. Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] hd29l2: add debug for used IF frequencyAntti Palosaari2012-01-101-1/+1
| | | | | | | | | | Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] hd29l2: synch for latest DVB core changesAntti Palosaari2012-01-101-6/+4
| | | | | | | | | | Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] HDIC HD29L2 DMB-TH demodulator driverAntti Palosaari2012-01-105-0/+1251
| | | | | | | | | | Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] mb86a20s: implement get_frontend()Mauro Carvalho Chehab2012-01-101-3/+193
| | | | | | | | | | | | Reports the auto-detected parameters to userspace. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] drxk_hard: Remove dead codeMauro Carvalho Chehab2012-01-071-2/+0
| | | | | | | | | | | | | | As reported by Oliver, some old dead code were preserved there. Thanks-to: Oliver endriss <o.endriss@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] af9013: change & to &&Dan Carpenter2012-01-061-4/+4
| | | | | | | | | | | | | | | | | | This is just a cleanup, it doesn't change how the code works. These are compound conditions and not bitwise operations so it should be && and not &. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] af9013: Fix typo in get_frontend() functionGianluca Gennari2012-01-061-4/+4
| | | | | | | | | | | | | | | | This patch fixes an obvious typo in the get_frontend() function of the af9013 driver, recently rewritten by Antti Palosaari. Signed-off-by: Gianluca Gennari <gennarone@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] it913x-fe ver 1.13 add BER and UNC monitoringMalcolm Priestley2012-01-062-4/+27
| | | | | | | | | | | | | | | | | | Add BER monitoring with Pre-Viterbi error rate. Add UCBLOCKS based on Aborted packets. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] it913x ver 1.22 corrections to Tuner IDsMalcolm Priestley2012-01-061-1/+1
| | | | | | | | | | | | | | | | | | Correction to tuner ID 0x51. Don't force tuner ID 0x60 unless eprom data zero. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] drxk_hard: fix locking issues when changing the delsysMauro Carvalho Chehab2012-01-052-22/+24
| | | | | | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] drxk: create only one frontend for both DVB-C and DVB-TMauro Carvalho Chehab2012-01-053-117/+84
| | | | | | | | | | | | | | | | Instead of creating two DVB frontend entries for the same device, create just one entry, and fill the delivery_system according with the supported standards. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] drxk: remove ops.info.frequency_stepsize from DVB-CMauro Carvalho Chehab2012-01-051-1/+0
| | | | | | | | | | | | | | ops.info.frequency_stepsize is used only for DVB-T & friends. For DVB-C, the step size is calculated using the symbol rate. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] drxk: Add support for parallel mode and prints mpeg modeMauro Carvalho Chehab2012-01-042-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | While the driver has support for both serial and parallel mode, There's was way to select serial mode via configuration. Add a config option for that, while keeping the default in serial mode. Also, at debug mode, it will now print a message when mpeg is enabled/disabled, and showing if parallel or serial mode were selected, helping developers to double-check if the DRX-K is at the right mode. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] drxk: Improve a few debug messagesMauro Carvalho Chehab2012-01-041-3/+9
| | | | | | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] dvb: Remove ops->info.type from frontendsMauro Carvalho Chehab2012-01-0460-93/+2
| | | | | | | | | | | | | | | | | | 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>
| * [media] stb6100: Properly retrieve symbol rateMauro Carvalho Chehab2011-12-311-2/+2
| | | | | | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * stv0297: Fix delivery systemMauro Carvalho Chehab2011-12-311-1/+1
| | | | | | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] dvb: Add ops.delsys to the remaining frontendsMauro Carvalho Chehab2011-12-313-3/+3
| | | | | | | | | | | | | | A few drivers don't have .delsys. Add it, in order to allow future patches for dvb_frontend.c to not use info.type. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] dvb: don't require a parameter for get_frontendMauro Carvalho Chehab2011-12-3145-98/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * [media] s921: Properly report the delivery systemMauro Carvalho Chehab2011-12-311-0/+1
| | | | | | | | | | | | | | Before this patch, a query for the delivery systems were returned SYS_UNDEFINED. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] dvb: don't use DVBv3 bandwidth macrosMauro Carvalho Chehab2011-12-312-7/+2
| | | | | | | | | | | | | | Every frontend now uses DVBv5 way. So, let's not use the DVBv3 macros internally anymore. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] dvb-core: don't use fe_bandwidth_t on driverMauro Carvalho Chehab2011-12-313-3/+3
| | | | | | | | | | | | | | Now that everybody is talking DVBv5 API dialect, using this DVBv3 macro internally is not ok. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] dvb: remove the track() fopsMauro Carvalho Chehab2011-12-312-28/+0
| | | | | | | | | | | | | | | | | | | | | | 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>
| * [media] dvb: don't pass a DVBv3 parameter for search() fopsMauro Carvalho Chehab2011-12-315-14/+12
| | | | | | | | | | | | | | | | | | | | | | 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>
| * [media] dvb-core: Don't pass DVBv3 parameters on tune() fopsMauro Carvalho Chehab2011-12-315-10/+10
| | | | | | | | | | | | | | | | | | As all parameters are passed via DVBv5 to the frontends, there's no need to pass them again via fops. Also, most drivers weren't using it anyway. So, instead, just pass a parameter to indicate if the hardware algorithm wants the driver to re-tune or not. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] dvb: simplify get_tune_settings() structMauro Carvalho Chehab2011-12-313-19/+22
| | | | | | | | | | | | | | | | | | | | In the past, dvb_frontent_parameters were passed inside the struct where get_tuner_settings should store their result. This is not needed anymore, as all parameters needed are stored already at the fe property cache. So, use it, where needed. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
| * [media] af9013: convert get|set_fontend to use DVBv5 parametersMauro Carvalho Chehab2011-12-311-6/+5
| | | | | | | | | | | | | | | | | | | | | | 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>
| * [media] cxd2820: convert get|set_fontend to use DVBv5 parametersMauro Carvalho Chehab2011-12-315-64/+34
| | | | | | | | | | | | | | | | | | | | | | 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>
| * [media] vez1820: convert set_fontend to use DVBv5 parametersMauro Carvalho Chehab2011-12-311-11/+12
| | | | | | | | | | | | | | | | | | | | | | 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>
| * [media] tda8083: convert set_fontend to use DVBv5 parametersMauro Carvalho Chehab2011-12-311-9/+10
| | | | | | | | | | | | | | | | | | | | | | 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>
| * [media] s55h1411: convert set_fontend to use DVBv5 parametersMauro Carvalho Chehab2011-12-311-8/+8
| | | | | | | | | | | | | | | | | | | | | | 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>
| * [media] s5h1409: convert set_fontend to use DVBv5 parametersMauro Carvalho Chehab2011-12-311-8/+8
| | | | | | | | | | | | | | | | | | | | | | 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>
| * [media] or51211: convert set_fontend to use DVBv5 parametersMauro Carvalho Chehab2011-12-311-6/+6
| | | | | | | | | | | | | | | | | | | | | | 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>
| * [media] or51132: convert set_fontend to use DVBv5 parametersMauro Carvalho Chehab2011-12-311-22/+29
| | | | | | | | | | | | | | | | | | | | | | 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>
| * [media] nxt200x: convert set_fontend to use DVBv5 parametersMauro Carvalho Chehab2011-12-311-8/+8
| | | | | | | | | | | | | | | | | | | | | | 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>
OpenPOWER on IntegriCloud