aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/pt1
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-12-26 15:48:33 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-31 07:08:46 -0500
commit7e0722215a510921cbb73ab4c37477d4dcb91bf8 (patch)
tree0a5d1126bc488ccdeb54e8762aa89d5df48ae719 /drivers/media/dvb/pt1
parent5581e130ad288af745706c30de050bc2cf6e37b3 (diff)
[media] dvb-core: Don't pass DVBv3 parameters on tune() fops
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>
Diffstat (limited to 'drivers/media/dvb/pt1')
-rw-r--r--drivers/media/dvb/pt1/va1j5jf8007s.c4
-rw-r--r--drivers/media/dvb/pt1/va1j5jf8007t.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/dvb/pt1/va1j5jf8007s.c b/drivers/media/dvb/pt1/va1j5jf8007s.c
index 451641c0c1d2..78344e3a5c7a 100644
--- a/drivers/media/dvb/pt1/va1j5jf8007s.c
+++ b/drivers/media/dvb/pt1/va1j5jf8007s.c
@@ -385,7 +385,7 @@ va1j5jf8007s_check_ts_id(struct va1j5jf8007s_state *state, int *lock)
385 385
386static int 386static int
387va1j5jf8007s_tune(struct dvb_frontend *fe, 387va1j5jf8007s_tune(struct dvb_frontend *fe,
388 struct dvb_frontend_parameters *params, 388 bool re_tune,
389 unsigned int mode_flags, unsigned int *delay, 389 unsigned int mode_flags, unsigned int *delay,
390 fe_status_t *status) 390 fe_status_t *status)
391{ 391{
@@ -395,7 +395,7 @@ va1j5jf8007s_tune(struct dvb_frontend *fe,
395 395
396 state = fe->demodulator_priv; 396 state = fe->demodulator_priv;
397 397
398 if (params != NULL) 398 if (re_tune)
399 state->tune_state = VA1J5JF8007S_SET_FREQUENCY_1; 399 state->tune_state = VA1J5JF8007S_SET_FREQUENCY_1;
400 400
401 switch (state->tune_state) { 401 switch (state->tune_state) {
diff --git a/drivers/media/dvb/pt1/va1j5jf8007t.c b/drivers/media/dvb/pt1/va1j5jf8007t.c
index 0f085c3e571b..c64282002c5d 100644
--- a/drivers/media/dvb/pt1/va1j5jf8007t.c
+++ b/drivers/media/dvb/pt1/va1j5jf8007t.c
@@ -264,7 +264,7 @@ static int va1j5jf8007t_check_modulation(struct va1j5jf8007t_state *state,
264 264
265static int 265static int
266va1j5jf8007t_tune(struct dvb_frontend *fe, 266va1j5jf8007t_tune(struct dvb_frontend *fe,
267 struct dvb_frontend_parameters *params, 267 bool re_tune,
268 unsigned int mode_flags, unsigned int *delay, 268 unsigned int mode_flags, unsigned int *delay,
269 fe_status_t *status) 269 fe_status_t *status)
270{ 270{
@@ -274,7 +274,7 @@ va1j5jf8007t_tune(struct dvb_frontend *fe,
274 274
275 state = fe->demodulator_priv; 275 state = fe->demodulator_priv;
276 276
277 if (params != NULL) 277 if (re_tune)
278 state->tune_state = VA1J5JF8007T_SET_FREQUENCY; 278 state->tune_state = VA1J5JF8007T_SET_FREQUENCY;
279 279
280 switch (state->tune_state) { 280 switch (state->tune_state) {