• Hans de Goede's avatar
    ASoC: rt5651: Add support for active-high jack detect · 8a68a509
    Hans de Goede authored
    Some boards use a jack-receptacle with a switch which reports the
    jack-inserted status as active-high, rather then the standard active-low
    reporting most jacks use.
    
    This commit adds support for it. This is activated by a boolean
    "realtek,jack-detect-not-inverted" device-property. The not-inverted
    in the device-property name, rather then active-high, was chosen to keep
    the device-property naming consistent with the rt5640 codec driver.
    Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    8a68a509
rt5651.h 72.2 KB