Commit e0b5d906 authored by Bard Liao's avatar Bard Liao Committed by Mark Brown

ASoC: rt5645: fix wrong mask for button report

rt5645->btn_jack is for jack button report. So the mask should be
SND_JACK_BTN_0 | SND_JACK_BTN_1 | SND_JACK_BTN_2 | SND_JACK_BTN_3.
Signed-off-by: default avatarBard Liao <bardliao@realtek.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d5660422
...@@ -2693,7 +2693,8 @@ static int rt5645_irq_detection(struct rt5645_priv *rt5645) ...@@ -2693,7 +2693,8 @@ static int rt5645_irq_detection(struct rt5645_priv *rt5645)
snd_soc_jack_report(rt5645->mic_jack, report, SND_JACK_MICROPHONE); snd_soc_jack_report(rt5645->mic_jack, report, SND_JACK_MICROPHONE);
if (rt5645->en_button_func) if (rt5645->en_button_func)
snd_soc_jack_report(rt5645->btn_jack, snd_soc_jack_report(rt5645->btn_jack,
report, SND_JACK_MICROPHONE); report, SND_JACK_BTN_0 | SND_JACK_BTN_1 |
SND_JACK_BTN_2 | SND_JACK_BTN_3);
return report; return report;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment