From: Bard Liao Date: Thu, 30 Apr 2015 10:18:46 +0000 (+0800) Subject: ASoC: rt5645: fix wrong mask for button report X-Git-Tag: v4.14-rc1~4700^2~80^2~11^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e0b5d90669139cd3e7c2592ac2eff47c57318e94;p=platform%2Fkernel%2Flinux-rpi.git 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: Bard Liao Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c index 346ac45..b7b0959 100644 --- a/sound/soc/codecs/rt5645.c +++ b/sound/soc/codecs/rt5645.c @@ -2693,7 +2693,8 @@ static int rt5645_irq_detection(struct rt5645_priv *rt5645) snd_soc_jack_report(rt5645->mic_jack, report, SND_JACK_MICROPHONE); if (rt5645->en_button_func) 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; }