From patchwork Wed Dec 7 02:01:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AceLan Kao X-Patchwork-Id: 1712987 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=d5NDKDLr; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NRgX25lFSz23ns for ; Wed, 7 Dec 2022 13:02:09 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1p2jky-0007PS-Lx; Wed, 07 Dec 2022 02:01:56 +0000 Received: from mail-pg1-f177.google.com ([209.85.215.177]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1p2jkw-0007Os-J9 for kernel-team@lists.ubuntu.com; Wed, 07 Dec 2022 02:01:54 +0000 Received: by mail-pg1-f177.google.com with SMTP id 6so14984193pgm.6 for ; Tue, 06 Dec 2022 18:01:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=gppG0Ce54o+lPjm55XbKhqjTYTQjwEDeAS1isWAy4Oo=; b=d5NDKDLr+PF8pZjFXnpsmsAm2nCmUjgVfpirLLORlocoK1AcZf4rQOVCTeMlID6fH2 at0FkCocV302mz0ZbNR5EeOZiTeDTNkcxmSD7A2v8aQp1UJfmCS8eEOd84wCMyXaNgpD x0ea71N+ebLM94tLJE0D5ScPVHHJPhlVNbGVycAsSzTezSOwa94ww9WfXsqqHfXBU1wz Ofv57du8gWnVTOTcvX6/DrUcTGxhA9rZghAQvPV5M/TZ1EE32dpTeQLSFRDw4bSC9RBN CXvi6Z5W/UK3fFzVqUfhuMoC9skc9vSn1LdgwixOWa4+gtMh68FdKx/ORK7oxGIzvZQU DA7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:sender:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=gppG0Ce54o+lPjm55XbKhqjTYTQjwEDeAS1isWAy4Oo=; b=gzUgA5jjvM7Flm6swV4zSSDQrY9noWChFkj4N+JMN/mqlr3MS1Qg7fnHXlylo3hCHu CvdgBxnGRnwuy8zp3mXL4wE2GwhQyoNOhW/N8VMlTR45Rdr5nNvUXgQD+xVwqxteZlUL qEYKggbvBBZhFpXDK6l40ekJlaJ1XWyIdDQ0WLJrFoMNFlA9CwcuoCtR2qbG3KuyVZWI ByNLefXuQSrVloCF+Ef32lnBFc7mQ0cOD6AAnjpL6wmeeRneRcrPTry+7O93aTy656ky BHA8x+6O8L+HuzFMJgUfhaM0IjBvnyFX1jQg5VnTecMSyiCjhIs1EFGFxJj7Hhps5i2i S28A== X-Gm-Message-State: ANoB5pnUT7TRYh8CLq56d23OvZ9HUHpMaoInpPMcrxRJHO/mYZwMRPbR D6cmy6lryOk+mQX7fcU6jEQ+J2EtQYM= X-Google-Smtp-Source: AA0mqf4B863XC437Y/kuw3LJQQLMM9rP2KI9dfvQcfhAV7qifA+2aavdNIg+j7fjk3Q/21M4yx7wOA== X-Received: by 2002:a05:6a00:e8e:b0:576:22e9:2024 with SMTP id bo14-20020a056a000e8e00b0057622e92024mr27573149pfb.65.1670378512408; Tue, 06 Dec 2022 18:01:52 -0800 (PST) Received: from localhost (220-135-95-34.hinet-ip.hinet.net. [220.135.95.34]) by smtp.gmail.com with ESMTPSA id y3-20020aa793c3000000b0056b6a22d6c9sm12337307pff.212.2022.12.06.18.01.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 18:01:52 -0800 (PST) From: AceLan Kao To: kernel-team@lists.ubuntu.com Subject: [PATCH 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. Date: Wed, 7 Dec 2022 10:01:48 +0800 Message-Id: <20221207020148.81913-2-acelan.kao@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221207020148.81913-1-acelan.kao@canonical.com> References: <20221207020148.81913-1-acelan.kao@canonical.com> MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.215.177; envelope-from=acelan@gmail.com; helo=mail-pg1-f177.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Vitaly Rodionov 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 (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) --- sound/pci/hda/patch_cs8409.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));