From patchwork Thu Jan 5 12:11:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AceLan Kao X-Patchwork-Id: 1721787 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=XapxnsMT; 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 4Nnlgl3ccdz23fj for ; Thu, 5 Jan 2023 23:11:30 +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 1pDP5Z-0003K2-Sl; Thu, 05 Jan 2023 12:11:17 +0000 Received: from mail-pj1-f52.google.com ([209.85.216.52]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1pDP5Y-0003IO-6c for kernel-team@lists.ubuntu.com; Thu, 05 Jan 2023 12:11:16 +0000 Received: by mail-pj1-f52.google.com with SMTP id j8-20020a17090a3e0800b00225fdd5007fso1834216pjc.2 for ; Thu, 05 Jan 2023 04:11:15 -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=kMLrOokgPacZG58GIvLKMpf30prPSJsTKHYcdnDUSiQ=; b=XapxnsMTAgWDO2EDWAJV/LxQCz5IFcy/NN4gGMM5W3wzfH/B6ZJqGaRM8tXyJak8oy AImTI4MwU0rNVGuwpwIYf1RTCxUwV4r3H8lhOFuUxsc7hT25TNebihxLNAO7nKhldFRv s4rEaUyElD9dJqBDj37Ahw/6AFWEflBpvhiWPSaYfrQU6sz9+jn0mTiHGQ+bjG/QMlZx d7W4kXl8KlLMIE29gQtS6axIaPP+h42hHqVqUfEeDsbs9jxNzhLwIT4GrnOkhzbOajUW k5P4rUmh/afS2SGkFzBMzZCsDsn3/nKR/XgayiIBxtCGHvetPVbtoYPM+/9gCwAViG/E KOvQ== 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=kMLrOokgPacZG58GIvLKMpf30prPSJsTKHYcdnDUSiQ=; b=aMZ+Nuj2YGC8zKvm0sE1nIVo0OWOSTyIDlFfk17ycn3dFBZ+zJhuPd2yGPXWSh4ECb G5w39ousxRejdUQv/YUZZzlQ9lSkBO2qkbIHcORHwHiP6DxTNt3J8Qhc4h38IqJkdIvD 2gFsdhEj1L7QFDhqQzI/cARrYeJYmW8AY2thcXtvqCXOsJiHPxDVtA/GqL0IVm5v0Ee1 DSu/u89X4JhK9AJ8ePWVfK9q1Vktl8emyBlRM7fiwAyy8flj3K3kSONVuTXak0f4kynv tTOzxOw6BwRn8O+mhggyjwR1URlXbQiMP//LQ40btK/KpmtzV/am6Z4MsdPwyko6TyyK zzPQ== X-Gm-Message-State: AFqh2ko6ox1oiT3kXX6lHbI1q1SYdSstjK7/kRAW/h9Bw/gPW3zz/x0W 0+jsNPr4vtT6Maf/ctQdhn8mHATyK9Y= X-Google-Smtp-Source: AMrXdXsB4m2frW59NIOi0A6zGP4hbD9tPL/7uxDpBTobKsa9WwXg4gguhrgmSOVPThfyqe5s88sv9w== X-Received: by 2002:a17:902:a70c:b0:189:dcc3:e4a1 with SMTP id w12-20020a170902a70c00b00189dcc3e4a1mr51737880plq.9.1672920674236; Thu, 05 Jan 2023 04:11:14 -0800 (PST) Received: from localhost (220-135-95-34.hinet-ip.hinet.net. [220.135.95.34]) by smtp.gmail.com with ESMTPSA id m4-20020a170902db0400b0018703bf42desm25950943plx.159.2023.01.05.04.11.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jan 2023 04:11:13 -0800 (PST) From: AceLan Kao To: kernel-team@lists.ubuntu.com Subject: [PATCH 1/1][SRU][J][K][L] ALSA: hda/cirrus: Add extra 10 ms delay to allow PLL settle and lock. Date: Thu, 5 Jan 2023 20:11:09 +0800 Message-Id: <20230105121109.829929-2-acelan.kao@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230105121109.829929-1-acelan.kao@canonical.com> References: <20230105121109.829929-1-acelan.kao@canonical.com> MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.216.52; envelope-from=acelan@gmail.com; helo=mail-pj1-f52.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 Link: https://lore.kernel.org/r/20221205145713.23852-1-vitalyr@opensource.cirrus.com Signed-off-by: Takashi Iwai (cherry picked from commit 9fb9fa18fb50d1a33a1bd947681fce96fc2c8db6) 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 e9b9273dbfd9a..8efc4ee49b7c9 100644 --- a/sound/pci/hda/patch_cs8409.c +++ b/sound/pci/hda/patch_cs8409.c @@ -888,7 +888,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));