Commit 3b0d51af authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[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: default avatarAntti Palosaari <crope@iki.fi>
Acked-by: default avatarHans-Frieder Vogt <hfvogt@gmx.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 71b1e827
...@@ -460,6 +460,13 @@ struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe, ...@@ -460,6 +460,13 @@ struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe,
if (priv->cfg->loop_through) if (priv->cfg->loop_through)
fc0012_writereg(priv, 0x09, 0x6f); 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, memcpy(&fe->ops.tuner_ops, &fc0012_tuner_ops,
sizeof(struct dvb_tuner_ops)); sizeof(struct dvb_tuner_ops));
......
...@@ -41,6 +41,11 @@ struct fc0012_config { ...@@ -41,6 +41,11 @@ struct fc0012_config {
* RF loop-through * RF loop-through
*/ */
bool loop_through; bool loop_through;
/*
* clock output
*/
bool clock_out;
}; };
#if defined(CONFIG_MEDIA_TUNER_FC0012) || \ #if defined(CONFIG_MEDIA_TUNER_FC0012) || \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment