diff mbox series

[1/1,SRU,OEM-5.17,OEM-6.0] UBUNTU: SAUCE: ALSA: hda/cirrus: Add extra 10 ms delay to allow PLL settle and lock.

Message ID 20221207020148.81913-2-acelan.kao@canonical.com
State New
Headers show
Series Rear Audio port sometimes has no audio output after reboot(Cirrus Logic) | expand

Commit Message

AceLan Kao Dec. 7, 2022, 2:01 a.m. UTC
From: Vitaly Rodionov <vitalyr@opensource.cirrus.com>

BugLink: https://launchpad.net/bugs/1998905

New HW platforms with multiple CS42L42 parts, faster CPU and i2c
requre some extra delay to allow PLL to settle and lock. Adding
extra 10ms delay.

Signed-off-by: Vitaly Rodionov <vitalyr@opensource.cirrus.com>
(cherry picked from commit https://patchwork.kernel.org/project/alsa-devel/patch/20221205145713.23852-1-vitalyr@opensource.cirrus.com/)
Signed-off-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>
---
 sound/pci/hda/patch_cs8409.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/sound/pci/hda/patch_cs8409.c b/sound/pci/hda/patch_cs8409.c
index 465830fb3bf4..12fe16a35687 100644
--- a/sound/pci/hda/patch_cs8409.c
+++ b/sound/pci/hda/patch_cs8409.c
@@ -887,7 +887,7 @@  static void cs42l42_resume(struct sub_codec *cs42l42)
 
 	/* Initialize CS42L42 companion codec */
 	cs8409_i2c_bulk_write(cs42l42, cs42l42->init_seq, cs42l42->init_seq_num);
-	usleep_range(20000, 25000);
+	usleep_range(30000, 35000);
 
 	/* Clear interrupts, by reading interrupt status registers */
 	cs8409_i2c_bulk_read(cs42l42, irq_regs, ARRAY_SIZE(irq_regs));