]> git.hungrycats.org Git - linux/commitdiff
ASoC: rt722-sdca-sdw: add debounce time for type detection
authorJack Yu <jack.yu@realtek.com>
Wed, 12 Jun 2024 09:01:07 +0000 (09:01 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2024 07:53:33 +0000 (09:53 +0200)
[ Upstream commit f3b198e4788fcc8d03ed0c8bd5e3856c6a5760c5 ]

Add debounce time in headset type detection for better performance.

Signed-off-by: Jack Yu <jack.yu@realtek.com>
Link: https://lore.kernel.org/r/7e502e9a9dd94122a1b60deb5ceb60fb@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/rt722-sdca-sdw.c

index 0a14198f8a42423aeb0ce8c3fab3b924b8041d3f..543a3fa1f5d3cafbc2652ddfd8cc4dfacd04bf89 100644 (file)
@@ -352,7 +352,7 @@ static int rt722_sdca_interrupt_callback(struct sdw_slave *slave,
 
        if (status->sdca_cascade && !rt722->disable_irq)
                mod_delayed_work(system_power_efficient_wq,
-                       &rt722->jack_detect_work, msecs_to_jiffies(30));
+                       &rt722->jack_detect_work, msecs_to_jiffies(280));
 
        mutex_unlock(&rt722->disable_irq_lock);