Applied "ASoC: rt5645: Check if codec is initialized in workqueue handler" to the asoc tree
Subsystems (3)
Mark Brown
maintainerThe patch
ASoC: rt5645: Check if codec is initialized in workqueue handler
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
Quoted 1 line
From
3c2234569cfff83718792f810a9bb855b78c2473Mon Sep 17 00:00:00 2001
From: Nicolas Boichat <[email protected]>
Date: Thu, 16 Jul 2015 11:30:58 +0800
Subject: [PATCH] ASoC: rt5645: Check if codec is initialized in workqueue
handler
rt5645_jack_detect_work needs rt5645->codec to be initialized to setup dapm pins. Also, reporting jack events is useless, as the jacks cannot be set before the codec is ready.
Since we manually call the interrupt handler in rt5645_set_jack_detect, the initial jack state will be reported correctly, and dapm pins will be setup at that time.
--- sound/soc/codecs/rt5645.c | 3 +++ 1 file changed, 3 insertions(+)
sound/soc/codecs/rt5645.c +3 -0
@@ -2943,6 +2943,9 @@ static int rt5645_irq_detection(struct rt5645_priv *rt5645) {int val, btn_type, gpio_state =0 , report =0 ; +if (!rt5645->codec) +return ; +switch (rt5645->pdata.jd_mode) {case 0 :/* Not using rt5645 JD */ if (rt5645->gpiod_hp_det) {
Signature · 1 line
2.1.4