• Hans de Goede's avatar
    [media] gspca_konica: Fix init sequence · e163609e
    Hans de Goede authored
    The konica needs a freaking large time (circa 6.5 seconds) to "boot", and
    does not want to be bothered while doing so, so sleep for 6 seconds, and
    then query its status register at 100ms intervals until it becomes ready.
    
    This removes the "reg_w err: -32" messages shown in dmesg whenever a
    konica cam gets initialized, and also fixes the camera not working when
    an app tries to use it directly after it has been plugged in and after
    a suspend/resume cycle.
    Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
    e163609e
konica.c 12.4 KB