Skip to contentSkip to conversation

ASoC: dt-bindings: rt5682: add button delay device property

PATCH In review [email protected] 2 participants 3 messages Oct 30, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/3 ASoC: dt-bindings: rt5682: add button delay device property

From: Shuming Fan <[email protected]>

The btndet-delay device property could control the HW debounce time. It is easy to adjust the sensitivity of push button.

---
 Documentation/devicetree/bindings/sound/rt5682.txt | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/sound/rt5682.txt +6 -0
index 312e9a129530..30e927a28369 100644
@@ -27,6 +27,11 @@ Optional properties:
 
 - realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin.
 
+- realtek,btndet-delay
+  The debounce delay for push button.
+  The delay time is realtek,btndet-delay value multiple of 8.192 ms.
+  If absent, the default is 16.
+
 Pins on the device (for linking into audio routes) for RT5682:
 
   * DMIC L1
@@ -47,4 +52,5 @@ rt5682 {
 	realtek,dmic1-data-pin = <1>;
 	realtek,dmic1-clk-pin = <1>;
 	realtek,jd-src = <1>;
+	realtek,btndet-delay = <16>;
 };
Signature · 6 lines
2.23.0

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
maintainer
#1 lore raw
Quoted 4 lines · On Wed, Oct 30, 2019 at 04:55:56PM +0800, [email protected] wrote:

From: Shuming Fan <[email protected]>

The btndet-delay device property could control the HW debounce time. It is easy to adjust the sensitivity of push button.

Oh, sorry - it does. Usually the binding update comes before the code change but I should've checked, my bad.

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

maintainer
#2 lore raw

[alsa-devel] Applied "ASoC: dt-bindings: rt5682: add button delay device property" to the asoc tree

In reply to [email protected]

The patch

ASoC: dt-bindings: rt5682: add button delay device property

has been applied to the asoc tree at

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.5

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 059c67f11c897a10e447d9802ace1a2069ae1b83 Mon Sep 17 00:00:00 2001
From: Shuming Fan <[email protected]>
Date: Wed, 30 Oct 2019 16:55:56 +0800
Subject: [PATCH] ASoC: dt-bindings: rt5682: add button delay device property

The btndet-delay device property could control the HW debounce time. It is easy to adjust the sensitivity of push button.

---
 Documentation/devicetree/bindings/sound/rt5682.txt | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/sound/rt5682.txt +6 -0
index 312e9a129530..30e927a28369 100644
@@ -27,6 +27,11 @@ Optional properties:
 
 - realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin.
 
+- realtek,btndet-delay
+  The debounce delay for push button.
+  The delay time is realtek,btndet-delay value multiple of 8.192 ms.
+  If absent, the default is 16.
+
 Pins on the device (for linking into audio routes) for RT5682:
 
   * DMIC L1
@@ -47,4 +52,5 @@ rt5682 {
 	realtek,dmic1-data-pin = <1>;
 	realtek,dmic1-clk-pin = <1>;
 	realtek,jd-src = <1>;
+	realtek,btndet-delay = <16>;
 };
Signature · 6 lines
2.20.1

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel