summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/rt5645.c
diff options
context:
space:
mode:
authorBard Liao <bardliao@realtek.com>2015-04-30 18:18:46 +0800
committerMark Brown <broonie@kernel.org>2015-05-01 17:33:47 +0100
commite0b5d90669139cd3e7c2592ac2eff47c57318e94 (patch)
tree94c6ee1f4b629cbf4e7f012825ac8d6c12d27598 /sound/soc/codecs/rt5645.c
parentd5660422cac455346e35631654c99187cf53f088 (diff)
downloadlwn-e0b5d90669139cd3e7c2592ac2eff47c57318e94.tar.gz
lwn-e0b5d90669139cd3e7c2592ac2eff47c57318e94.zip
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 <bardliao@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5645.c')
-rw-r--r--sound/soc/codecs/rt5645.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
index 346ac45bfb68..b7b095994a75 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;
}