V4L/DVB (12294): b2c2: Use dvb-pll for Cablestar2
authorTrent Piepho <xyzzy@speakeasy.org>
Thu, 11 Jun 2009 22:31:22 +0000 (19:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 12 Sep 2009 15:17:52 +0000 (12:17 -0300)
commit7a6fbd83378dd0a6127b5d59a51d35688bcd6d9d
tree56f394027da52b1fc6219a2402898381bf87f79b
parent016e53de0a5929c7b2ce2661e3af240e7f85fd55
V4L/DVB (12294): b2c2: Use dvb-pll for Cablestar2

The dvb-pll code should do the same thing that
alps_tdee4_stv0297_tuner_set_params() was doing.  Except the dvb-pll code
will check for tuner presence when attaching, while the old code didn't.

This tuner appears to not be behind the stv0297's I2C gate but is instead
on a different I2C adapter provided by the flexcop chip.  The old code
would turn the I2C gate off each time the tuner was used.  I've changed it
to turn the gate off when the tuner is attached and then disable the gate
control function.  This should result in the gate staying off, which should
be even better.

[hverkuil@xs4all.nl: fix compile error]

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/b2c2/flexcop-fe-tuner.c