- 17 4月, 2013 23 次提交
-
-
由 Mauro Carvalho Chehab 提交于
There are a few errors at the PLL calculus, causing the device to use wrong values. While here, change the calculus to use 32 bits, as there's no need for 64 bits there. Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
r820t_standby() can be called before r820t_init(). If that happens, just do nothing. Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
The rtl-sdr library disabled IMR callibration. While I'm not sure yet why, it could be a good idea to add a modprobe parameter here, to allow to also disable it. There are two rationale behind it: - It helps to compare USB dumps between rtl-sdr and the Kernel module; - If rtl-sdr disabled it, perhaps there's a good reason (e. g. it might not be actually working, or it might be causing some trouble). For both cases, it seems useful to add a modprobe parameter to allow testing the device with both configurations. Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
Add the code to set the GPIO for this tuner. This code is currently unused, so it is kept there only for completeness. With this patch there are just two things that got left from the original driver: - At standby, there's another mode, not used by rtl2832u. Not sure if it might be needed in the future, but I suspect it is not used at all; - There is a "fast tune" mode. As nor DVB or V4L API supports it, it seems an overkill to implement it. Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
This code seems to calibrate I/Q phase and gain during the device initialization. This is done only once, and it doesn't seem to be needed to happen after resuming. Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
The rtl-sdr library, from where this driver was initially based, doesn't use half PLL clock, but this is used on the Realtek Kernel driver. So, also do the same here. Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
Instead of using msleep(), use sleep_range(), as it provides a closer sleep time. Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
Just cosmetic changes: all other functions are prefixed by r820t. Do the same for r820t_read(). Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
As we'll need to retrieve cached registers, make this function explicit. Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
If signal is zero, shows it as a zero, not as 0xff. Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
This is part of the original driver, and adding it doesn't hurt, so add it, to better sync the code. Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
As the driver's logic uses the bit-reversed order for read, use it as well when displaying the debug messages. Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
The Realtek Kernel driver uses the second DVB-T 7MHz table instead of the first one. Use it as well. Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
On read, the bit order is inverted. Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
IF is set at r820t_set_tv_standard(). So, we can't calculate LO frequency before calling it. Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
Scale used at get_if_freq and LO freq calculus is Hz. Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
[ 2255.342797] r820t 3-001a: generic_set_freq: PLL locked on frequency 725476191 Hz, gain=45 Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
As this tuner can be used by analog and digital parts of the driver, be sure that all ops that access the hardware will be be properly locked. Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
This tuner works with 2 modes: automatic gain mode and manual gain mode. Put it into automatic mode, as we currently don't have any API for manual gain adjustment. The logic to allow setting the manual mode is there, as it is just a few extra code. This way, if/when we latter add support for setting the gain mode, the code is already there. Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
Instead of a binary signal strength measure, use the tuner gain to obtain a better estimation of the signal strength. Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
This driver was written from scratch, based on an existing driver that it is part of rtl-sdr git tree, released under GPLv2: https://groups.google.com/forum/#!topic/ultra-cheap-sdr/Y3rBEOFtHug https://github.com/n1gp/gr-baz http://cgit.osmocom.org/rtl-sdr/plain/src/tuner_r820t.c (there are also other variants of it out there) >From what I understood from the threads, the original driver was converted to userspace from a Realtek tree. I couldn't find the original tree. However, the original driver look awkward on my eyes. So, I decided to write a new version from it from the scratch, while trying to reproduce everything found there. TODO: - After locking, the original driver seems to have some routines to improve reception. This was not implemented here yet. - RF Gain set/get is not implemented. Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com> Tested-by: NAntti Palosaari <crope@iki.fi>
-
由 Mauro Carvalho Chehab 提交于
There are three drivers with *it913x name on it, and they all belong to the same device: a tuner, at it913x.c; a frontend: it913x-fe.c; a bridge: it913x.c, renamed to dvb_usb_it913x by the building system. This is confusing. Even more confusing are the two .c files with the same name under different directories, with different contents and different functions. So, prepend the tuner one. This also breaks the out-of-tree compilation system. Reported-by: NFrederic Fays <frederic.fays@gmail.com> Acked-by: NAntti Palosaari <crope@iki.fi> Reviewed-by: NAntti Palosaari <crope@iki.fi> Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
-
- 15 4月, 2013 2 次提交
-
-
由 Hans Verkuil 提交于
The get_rf_strength op in tuner-simple is valid only for the radio mode. But due to the way get_signal in analog_demod_ops was designed it would overwrite the signal value with a bogus value when in TV mode. Pass a pointer to the signal value instead, and when not in radio mode leave it alone in the tuner-simple. This broke in commit 030755bd (tuner-core: call has_signal for both TV and radio) in kernel 3.6. Before that this was working correctly. That commit did the right thing, but what wasn't realized at the time was that tuner-simple should have been updated as well to restrict setting the signal strength to the radio mode only. Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
-
由 Hans Verkuil 提交于
The get_afc op in tda9887 is valid only for the radio mode. But due to the way get_afc in analog_demod_ops was designed it would overwrite the afc value with a bogus value when in TV mode. Pass a pointer to the afc value instead, and when not in radio mode leave it alone in the tda9887. This broke a long time ago in 2.6.19 when the get_afc op was introduced. Before that the afc was only set for radio mode in the tda9887. Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
-
- 08 4月, 2013 3 次提交
-
-
由 Ondrej Zary 提交于
Use enum instead of magic values for LNA config in tda8290. Update tda827x, tda18271 and saa7134 to use the enum too. Signed-off-by: NOndrej Zary <linux@rainbow-software.org> Signed-off-by: NMichael Krufky <mkrufky@linuxtv.org> Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
-
由 Ondrej Zary 提交于
Allow specifying a custom std_map for tda18271 by external configuration. This is required by cards that require custom std_map for analog TV or radio, like AverMedia A706. Signed-off-by: NOndrej Zary <linux@rainbow-software.org> Signed-off-by: NMichael Krufky <mkrufky@linuxtv.org> Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
-
由 Ondrej Zary 提交于
Allow disabling I2C gate handling by external configuration. This is required by cards that have all devices on a single I2C bus, like AverMedia A706. Signed-off-by: NOndrej Zary <linux@rainbow-software.org> Signed-off-by: NMichael Krufky <mkrufky@linuxtv.org> Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
-
- 24 3月, 2013 1 次提交
-
-
由 Hans Verkuil 提交于
This adds support for three Sony BTF tuners: TUNER_SONY_BTF_PG472Z: PAL+SECAM TUNER_SONY_BTF_PK467Z: NTSC-M-JP TUNER_SONY_BTF_PB463Z: NTSC-M These come from the go7007 staging driver where they were implemented in the wis-sony-tuner i2c driver. Adding support for these tuners to tuner-types.c is the first step towards removing the wis-sony-tuner driver. Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
-
- 23 3月, 2013 1 次提交
-
-
由 Mauro Carvalho Chehab 提交于
Instead of checking everywhere there for 3 symbols, use instead IS_ENABLED macro. Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
-
- 22 3月, 2013 10 次提交
-
-
由 Antti Palosaari 提交于
That register is property of demodulator so move it correct place. Signed-off-by: NAntti Palosaari <crope@iki.fi> Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
-
由 Antti Palosaari 提交于
Those are demodulator init tables according to used tuner tuner config. af9033 demod driver does those inits currently and due to that these duplicate inits could be removed. Signed-off-by: NAntti Palosaari <crope@iki.fi> Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
-
由 Antti Palosaari 提交于
These are demod inits and are already done by af9033 demod driver. Signed-off-by: NAntti Palosaari <crope@iki.fi> Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
-
由 Antti Palosaari 提交于
Signed-off-by: NAntti Palosaari <crope@iki.fi> Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
-
由 Antti Palosaari 提交于
Signed-off-by: NAntti Palosaari <crope@iki.fi> Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
-
由 Antti Palosaari 提交于
Signed-off-by: NAntti Palosaari <crope@iki.fi> Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
-
由 Antti Palosaari 提交于
We don't need it. Tuner ID and device address are enough. Signed-off-by: NAntti Palosaari <crope@iki.fi> Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
-
由 Antti Palosaari 提交于
Copy forgotten power up registers from it913x-fe driver. Remove two demod registers as those are already written by af9033 driver. Signed-off-by: NAntti Palosaari <crope@iki.fi> Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
-
由 Antti Palosaari 提交于
Signed-off-by: NAntti Palosaari <crope@iki.fi> Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
-
由 Antti Palosaari 提交于
Signed-off-by: NAntti Palosaari <crope@iki.fi> Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
-