projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09b50c3
)
ASoC: rt5665: increase button detection accuracy
author
Bard Liao
<
[email protected]
>
Wed, 8 Mar 2017 11:05:33 +0000
(19:05 +0800)
committer
Mark Brown
<
[email protected]
>
Wed, 8 Mar 2017 12:47:52 +0000
(13:47 +0100)
Use sar adc for button detection to increase accuracy.
Signed-off-by: Bard Liao <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/rt5665.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/rt5665.c
b/sound/soc/codecs/rt5665.c
index 61137160c116143f289fded3c7c7470e578ee9e0..de2c104bbaf381fd57276f457ff0757e2ca7cf8d 100644
(file)
--- a/
sound/soc/codecs/rt5665.c
+++ b/
sound/soc/codecs/rt5665.c
@@
-1139,7
+1139,8
@@
static void rt5665_enable_push_button_irq(struct snd_soc_codec *codec,
bool enable)
{
if (enable) {
- snd_soc_write(codec, RT5665_4BTN_IL_CMD_1, 0x000b);
+ snd_soc_write(codec, RT5665_4BTN_IL_CMD_1, 0x0003);
+ snd_soc_update_bits(codec, RT5665_SAR_IL_CMD_9, 0x1, 0x1);
snd_soc_write(codec, RT5665_IL_CMD_1, 0x0048);
snd_soc_update_bits(codec, RT5665_4BTN_IL_CMD_2,
RT5665_4BTN_IL_MASK | RT5665_4BTN_IL_RST_MASK,