summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-12-23 22:35:34 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-31 11:37:40 +0100
commit3608dbb6dcf31e9cd25d43d999b79819837068c1 (patch)
tree770166740cd172a5dc3d7195ee34120f79874301 /drivers
parent[media] ix2505v: use DVBv5 parameters on set_params() (diff)
downloadlinux-3608dbb6dcf31e9cd25d43d999b79819837068c1.tar.xz
linux-3608dbb6dcf31e9cd25d43d999b79819837068c1.zip
[media] stb6000: 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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb/frontends/stb6000.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/stb6000.c b/drivers/media/dvb/frontends/stb6000.c
index ed699647050e..d4f4ebbfce3a 100644
--- a/drivers/media/dvb/frontends/stb6000.c
+++ b/drivers/media/dvb/frontends/stb6000.c
@@ -78,6 +78,7 @@ static int stb6000_sleep(struct dvb_frontend *fe)
static int stb6000_set_params(struct dvb_frontend *fe,
struct dvb_frontend_parameters *params)
{
+ struct dtv_frontend_properties *p = &fe->dtv_property_cache;
struct stb6000_priv *priv = fe->tuner_priv;
unsigned int n, m;
int ret;
@@ -93,8 +94,8 @@ static int stb6000_set_params(struct dvb_frontend *fe,
dprintk("%s:\n", __func__);
- freq_mhz = params->frequency / 1000;
- bandwidth = params->u.qpsk.symbol_rate / 1000000;
+ freq_mhz = p->frequency / 1000;
+ bandwidth = p->symbol_rate / 1000000;
if (bandwidth > 31)
bandwidth = 31;