• Hans Verkuil's avatar
    [media] msp3400: fix mute audio regression · 0310871d
    Hans Verkuil authored
    The switch to the new control framework caused a regression where the audio was
    no longer unmuted after the carrier scan finished.
    
    The original code attempted to set the volume control to its current value in
    order to have the set-volume control code to be called that handles the volume
    and muting. However, the framework will not call that code unless the new volume
    value is different from the old.
    
    Instead we now call msp_s_ctrl directly.
    
    It is a bit of a hack: we really need a v4l2_ctrl_refresh_ctrl function for this
    (or something along those lines).
    
    Thanks to Andy Walls for bisecting this and to Shane Shrybman for reporting it!
    Reported-by: default avatarShane Shrybman <shrybman@teksavvy.com>
    Thanks-to: Andy Walls <awalls@md.metrocast.net>
    Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
    0310871d
msp3400-driver.c 25.6 KB