• Niklas Söderlund's avatar
    media: i2c: adv748x: Write initial DV timings to device · 8a7bc891
    Niklas Söderlund authored
    When initializing the HDMI block during probe an initial set of timings
    are selected. These timings are stored in the drivers private data, but
    not written to the device.
    
    This in itself is not bad, but in s_dv_timings() the timings stored in
    the drivers private data are compared to the new timings, if they match
    no action is taken. This creates the corner-case where the timing
    selected at initialization is the first timings a user want to use as
    the driver then never writes it to the device preventing proper
    operation.
    
    Fix this by writing the timings to the device at initialization in
    addition to storing them in the drivers private data.
    Signed-off-by: default avatarNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
    Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
    8a7bc891
adv748x-hdmi.c 20.1 KB