]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[media] fc0012: enable clock output on attach()
authorAntti Palosaari <crope@iki.fi>
Sun, 9 Dec 2012 14:46:40 +0000 (11:46 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 6 Jan 2013 11:06:31 +0000 (09:06 -0200)
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>
drivers/media/tuners/fc0012.c
drivers/media/tuners/fc0012.h

index 636f951219db3f952081e5be1c647c5e3b2186e6..1a52b766360fae689d9de38f6a99574158c6a99d 100644 (file)
@@ -460,6 +460,13 @@ struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe,
        if (priv->cfg->loop_through)
                fc0012_writereg(priv, 0x09, 0x6f);
 
+       /*
+        * TODO: Clock out en or div?
+        * For dual tuner configuration clearing bit [0] is required.
+        */
+       if (priv->cfg->clock_out)
+               fc0012_writereg(priv, 0x0b, 0x82);
+
        memcpy(&fe->ops.tuner_ops, &fc0012_tuner_ops,
                sizeof(struct dvb_tuner_ops));
 
index 891d66d5af3bfabe51a741c5dd5586ea49342647..83a98e73250203a05033be91e94be8768e21047c 100644 (file)
@@ -41,6 +41,11 @@ struct fc0012_config {
         * RF loop-through
         */
        bool loop_through;
+
+       /*
+        * clock output
+        */
+       bool clock_out;
 };
 
 #if defined(CONFIG_MEDIA_TUNER_FC0012) || \