All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Bard Liao <bardliao@realtek.com>
Cc: oder_chiou@realtek.com, jack.yu@realtek.com,
	alsa-devel@alsa-project.org, lars@metafoo.de,
	lgirdwood@gmail.com, broonie@kernel.org, shumingf@realtek.com,
	xiaoxiang@pinecone.net, zhongan@pinecone.net, flove@realtek.com
Subject: Applied "ASoC: rt5665: increase button detection accuracy" to the asoc tree
Date: Wed, 08 Mar 2017 14:23:00 +0100	[thread overview]
Message-ID: <E1clbYS-0000Hn-9r@finisterre> (raw)
In-Reply-To: <1488971136-19100-5-git-send-email-bardliao@realtek.com>

The patch

   ASoC: rt5665: increase button detection accuracy

has been applied to the asoc tree at

   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 246126b0a4f24f8e88f148c9d0d6d72e6fafe6cc Mon Sep 17 00:00:00 2001
From: Bard Liao <bardliao@realtek.com>
Date: Wed, 8 Mar 2017 19:05:33 +0800
Subject: [PATCH] ASoC: rt5665: increase button detection accuracy

Use sar adc for button detection to increase accuracy.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/rt5665.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt5665.c b/sound/soc/codecs/rt5665.c
index 61137160c116..de2c104bbaf3 100644
--- 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,
-- 
2.11.0

  reply	other threads:[~2017-03-08 13:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-08 11:05 [PATCH 1/8] ASoC: rt5665: increase LDO level Bard Liao
2017-03-08 11:05 ` [PATCH 2/8] ASoC: rt5665: enhance jack type detection function Bard Liao
2017-03-08 13:22   ` Applied "ASoC: rt5665: enhance jack type detection function" to the asoc tree Mark Brown
2017-03-08 11:05 ` [PATCH 3/8] ASoC: rt5665: Vref3 is necessary for Mono Amp Bard Liao
2017-03-08 13:23   ` Applied "ASoC: rt5665: Vref3 is necessary for Mono Amp" to the asoc tree Mark Brown
2017-03-08 11:05 ` [PATCH 4/8] ASoC: rt5665: CLKDET is also a power of ASRC Bard Liao
2017-03-08 13:23   ` Applied "ASoC: rt5665: CLKDET is also a power of ASRC" to the asoc tree Mark Brown
2017-03-08 11:05 ` [PATCH 5/8] ASoC: rt5665: increase button detection accuracy Bard Liao
2017-03-08 13:23   ` Mark Brown [this message]
2017-03-08 11:05 ` [PATCH 6/8] ASoC: rt5665: move set_pll to codec level Bard Liao
     [not found]   ` <ABFD875FF5FB574BA706497D987D48D701C36CAA@RTITEXTEMP.realtek.com.tw>
2017-03-08 12:46     ` Mark Brown
2017-03-08 11:05 ` [PATCH 7/8] ASoC: rt5665: move set_sysclk " Bard Liao
2017-03-08 11:05 ` [PATCH 8/8] ASoC: rt5665: enable TDM if more than 2 channels Bard Liao
2017-03-08 13:22   ` Applied "ASoC: rt5665: enable TDM if more than 2 channels" to the asoc tree Mark Brown
2017-03-08 13:23 ` Applied "ASoC: rt5665: increase LDO level" " Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1clbYS-0000Hn-9r@finisterre \
    --to=broonie@kernel.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=bardliao@realtek.com \
    --cc=flove@realtek.com \
    --cc=jack.yu@realtek.com \
    --cc=lars@metafoo.de \
    --cc=lgirdwood@gmail.com \
    --cc=oder_chiou@realtek.com \
    --cc=shumingf@realtek.com \
    --cc=xiaoxiang@pinecone.net \
    --cc=zhongan@pinecone.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.