diff options
author | Antti Palosaari <crope@iki.fi> | 2012-12-09 09:46:40 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-01-06 06:06:31 -0500 |
commit | 3b0d51afa026b87784d81e6a88522271a69ca7b9 (patch) | |
tree | dde3c9a7fc58cc22b29da42da7eb7e0b7732c969 /drivers/media/tuners/fc0012.c | |
parent | 71b1e82794bbae7b23409e013f7249dd2f382160 (diff) |
[media] fc0012: enable clock output on attach()
We need feed clock to slave demodulator at the very beginning
in case of dual tuner configuration.
I am not sure if that configuration changes clock output divider
or enable clock output itself...
Signed-off-by: Antti Palosaari <crope@iki.fi>
Acked-by: Hans-Frieder Vogt <hfvogt@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/tuners/fc0012.c')
-rw-r--r-- | drivers/media/tuners/fc0012.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/tuners/fc0012.c b/drivers/media/tuners/fc0012.c index 636f951219db..1a52b766360f 100644 --- a/drivers/media/tuners/fc0012.c +++ b/drivers/media/tuners/fc0012.c | |||
@@ -460,6 +460,13 @@ struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe, | |||
460 | if (priv->cfg->loop_through) | 460 | if (priv->cfg->loop_through) |
461 | fc0012_writereg(priv, 0x09, 0x6f); | 461 | fc0012_writereg(priv, 0x09, 0x6f); |
462 | 462 | ||
463 | /* | ||
464 | * TODO: Clock out en or div? | ||
465 | * For dual tuner configuration clearing bit [0] is required. | ||
466 | */ | ||
467 | if (priv->cfg->clock_out) | ||
468 | fc0012_writereg(priv, 0x0b, 0x82); | ||
469 | |||
463 | memcpy(&fe->ops.tuner_ops, &fc0012_tuner_ops, | 470 | memcpy(&fe->ops.tuner_ops, &fc0012_tuner_ops, |
464 | sizeof(struct dvb_tuner_ops)); | 471 | sizeof(struct dvb_tuner_ops)); |
465 | 472 | ||