summaryrefslogtreecommitdiffstats
path: root/src/af903x-tuner.c
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2012-09-21 20:01:45 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2012-09-21 20:01:45 (GMT)
commitc0dd634c8b5b2eb7c566ad5a8d8e0a75ac4058c3 (patch)
tree98d25bda9e81f24889dd31827d0252ab088b85bb /src/af903x-tuner.c
parentfc6c0fc3df42cfad3fe07aa20d06085d4026f0c0 (diff)
downloadAF903x_SRC-c0dd634c8b5b2eb7c566ad5a8d8e0a75ac4058c3.zip
AF903x_SRC-c0dd634c8b5b2eb7c566ad5a8d8e0a75ac4058c3.tar.gz
AF903x_SRC-c0dd634c8b5b2eb7c566ad5a8d8e0a75ac4058c3.tar.bz2
Josef Gercak's latest patches for the Asus U3100Mini PlusHEADmaster
Only the asus stick should work with this on 3.2 kernel. Other tuners/demodulators etc are disabled. Untested.
Diffstat (limited to 'src/af903x-tuner.c')
-rw-r--r--src/af903x-tuner.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/af903x-tuner.c b/src/af903x-tuner.c
index c45f1ae..1e9c562 100644
--- a/src/af903x-tuner.c
+++ b/src/af903x-tuner.c
@@ -11,13 +11,14 @@
-static int tuner_set_params(struct dvb_frontend *fe, struct dvb_frontend_parameters *params)
+static int tuner_set_params(struct dvb_frontend *fe)
{
+ struct dtv_frontend_properties *params = &fe->dtv_property_cache;
struct tuner_priv *priv=NULL;
DWORD dwError = Error_NO_ERROR;
DWORD freq = params->frequency ;// 1000; // Hz -> kHz
- priv->bandwidth = (fe->ops.info.type == FE_OFDM) ? params->u.ofdm.bandwidth : 0;
+ priv->bandwidth = (fe->ops.info.type == FE_OFDM) ? params->bandwidth_hz : 0;
deb_data("%s - freq : %d , bandwidth : %dn",__FUNCTION__, (int) freq,priv->bandwidth);