Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6029412rwb; Mon, 5 Dec 2022 07:09:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf5qrBK3arKTnA2d4VlhJ7i6s+Kf+pBkSciI06oO10lYWoEwl4nnEDypLK/JiPvWVnpVFeAH X-Received: by 2002:a17:907:2c45:b0:7b8:bbbe:5ca with SMTP id hf5-20020a1709072c4500b007b8bbbe05camr52835917ejc.544.1670252991056; Mon, 05 Dec 2022 07:09:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670252991; cv=none; d=google.com; s=arc-20160816; b=pYVycErnruNnbIY36Jh93muCBXUEnvkmA7bGzd7/kNpIES9GEDtGcItwMOsS2+zjlQ TuSTuesnAcNwFBQE4ZqLf+v75D73CKPx+GgmGfRTOMohhqPX32qG1MwwZJlY4U4NXuh+ /rU6HIrjXCeQ3L1zkUAw9AlqUI2M/bQxFzuRAB8FuhcP34L5yeYOedqnCwA2OJB0EOyK c4d8nVqRWV8hcVvIIAYdiqadUJxxFwsGGB6Dhiw5CWwKQftXo1Bzmup+909iS6s0gQVS mSTI/j/Z5f94XISRa63tt6A7VJX2SakUj66wmrtjV2Z4A/I8jgxuVlkj+jwY3E/VpBHx uEGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=c7x/qQVbB5y+L+elrUKFfYzMACzD6HbBUpL317TwXgQ=; b=1FF78l1A+0xKQr47xjCbG27Og66R53jFhYbVP4I5+6kqPBPQxRILRxPh8KvGFRW8p/ 0DyKUPkPGzjJax4kwcqm6j3osdBIC0X8CyER5fDQsjLnKVBf3l1Ww2q1pQ1kgENcwhd7 05EPJffl3jjcl2aN+Lk45k7/vWCRpDcme1WtFQtV4ymhZZRhH3RZ6Ag3JMuAE7HzEK7l hHjeDILEe8tuWvUy7Ez7vWkatZKXM9r1/OCJtQShM33b2e3Z6hanxdtOCIEeB1BCNQbd yxUxzmVoMBgVCf2LuOU/12Zm25DcfKTpVNxKVyJvge4s3N50z3YzZcW7SYguzBf/h2YQ M7Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=MSnMzBqC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l3-20020a170907914300b007c0a7bc2857si7779173ejs.482.2022.12.05.07.09.31; Mon, 05 Dec 2022 07:09:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=MSnMzBqC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231951AbiLEO6M (ORCPT + 81 others); Mon, 5 Dec 2022 09:58:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231797AbiLEO6B (ORCPT ); Mon, 5 Dec 2022 09:58:01 -0500 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4665363D4 for ; Mon, 5 Dec 2022 06:57:59 -0800 (PST) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2B54uh1Z015435; Mon, 5 Dec 2022 08:57:15 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=c7x/qQVbB5y+L+elrUKFfYzMACzD6HbBUpL317TwXgQ=; b=MSnMzBqCbWx1sWMn05rAdoeNlhDXqpHquTzf3bLr+aPvqjwcSCH8Z5Pg4k4Ojve/wiiu tFNE8bLvP1wu5aXmvFxb0Y1fqBEaINtoDnyMdPip5/nM+ljvNKHRKfBnx4ODdqSO4kBg kAcCg8cgydPzhS8EOZ0ZP4pFPaAKD4hKUmuauB4aOL1DhZzHHA5HCEzveC4qASi7u/nD QbKVFsT7+AY6YpOJ+QOgWSbM0mH2footCrcuZuYhfEqXnmGRAq2fpp3tBYnlR0DtSq6l UV49Ns5Nv03kFeOLZ5vVDURnDsLHibl11mXuidBNu8hd+QaA+Sg75XChQCRZSzb3VQsP CA== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3m83rt9vr9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 05 Dec 2022 08:57:15 -0600 Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.20; Mon, 5 Dec 2022 08:57:14 -0600 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.20 via Frontend Transport; Mon, 5 Dec 2022 08:57:14 -0600 Received: from legion.ad.cirrus.com (londmb751293.ad.cirrus.com [198.90.238.109]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id CCF48B12; Mon, 5 Dec 2022 14:57:13 +0000 (UTC) From: Vitaly Rodionov To: Jaroslav Kysela , Takashi Iwai CC: , , Subject: [PATCH] ALSA: hda/cirrus: Add extra 10 ms delay to allow PLL settle and lock. Date: Mon, 5 Dec 2022 14:57:13 +0000 Message-ID: <20221205145713.23852-1-vitalyr@opensource.cirrus.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: fyBzRj7SDDWKls60G-AfQoMavE1CEUKO X-Proofpoint-GUID: fyBzRj7SDDWKls60G-AfQoMavE1CEUKO X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 754aa8ddd2e4..0ba1fbcbb21e 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)); -- 2.34.1