• Bard Liao's avatar
    ASoC: rt286: fix capture doesn't work at some cases · 6d514c72
    Bard Liao authored
    RT286_CBJ_CTRL1(0x4f) bit 10 is needed for headset capture. It
    will be turned off when "VREF" widget is on and be turned on when
    bias level is ON. It is odd. And if "VREF" is turned on in bias
    level is ON, RT286_CBJ_CTRL1(0x4f) bit 10 will be turned off.
    This patch move the bit control from rt286_set_bias_level and
    rt298_vref_event to rt286_jack_detect. So it will be turned on
    once a jack is plugged in.
    Signed-off-by: default avatarBard Liao <bardliao@realtek.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    6d514c72
rt286.c 30.8 KB