• Devin Heitmueller's avatar
    [media] au0828: prevent i2c gate from being kept open while in analog mode · 4a03dafc
    Devin Heitmueller authored
    The original implementation of the analog support would use an
    i2c_gate_ctrl function when using the digital side of the au8522, but on
    the analog side we would always just force the gate open and leave it
    open all the time.
    
    This can have adverse effects on the xc5000 given the tuner is receiving
    all the spurious i2c traffic (a problem which can be exaggerated due to
    bugs in the au0828 i2c hardware implementation).
    
    Rework the existing hack to only open/close the gate when actually
    talking to the tuner.
    
    This logic might need to be reworked a bit if anybody ever tries to add
    support for a board that has the au0828/au8522 but doesn't have digital
    support implemented (because the i2c_gate_ctrl callback is being set in
    the DVB attach).  However given how few different models are in
    circulation, this can be deferred until such a situation arises (if
    ever).
    Signed-off-by: default avatarDevin Heitmueller <dheitmueller@kernellabs.com>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
    4a03dafc
au8522_common.c 7.39 KB