• Trent Piepho's avatar
    V4L/DVB (12294): b2c2: Use dvb-pll for Cablestar2 · 7a6fbd83
    Trent Piepho authored
    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: default avatarTrent Piepho <xyzzy@speakeasy.org>
    Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
    7a6fbd83
flexcop-fe-tuner.c 15.8 KB