Skip to content

Commit b69de26

Browse files
shumingfanbroonie
authored andcommitted
ASoC: rt711: fix for JD event handling in ClockStop Mode0
When the system suspends, peripheral Imp-defined interrupt is disabled. When system level resume is invoked, the peripheral Imp-defined interrupts should be enabled to handle JD events. Signed-off-by: Shuming Fan <shumingf@realtek.com> Reported-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Link: https://lore.kernel.org/r/20230721090654.128230-1-shumingf@realtek.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent a0b7c59 commit b69de26

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

sound/soc/codecs/rt711-sdw.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,15 @@ static int __maybe_unused rt711_dev_resume(struct device *dev)
538538
if (!rt711->first_hw_init)
539539
return 0;
540540

541-
if (!slave->unattach_request)
541+
if (!slave->unattach_request) {
542+
if (rt711->disable_irq == true) {
543+
mutex_lock(&rt711->disable_irq_lock);
544+
sdw_write_no_pm(slave, SDW_SCP_INTMASK1, SDW_SCP_INT1_IMPL_DEF);
545+
rt711->disable_irq = false;
546+
mutex_unlock(&rt711->disable_irq_lock);
547+
}
542548
goto regmap_sync;
549+
}
543550

544551
time = wait_for_completion_timeout(&slave->initialization_complete,
545552
msecs_to_jiffies(RT711_PROBE_TIMEOUT));

0 commit comments

Comments
 (0)