Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3978225pxb; Tue, 25 Jan 2022 00:30:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgyiUk1ZH/Hn5FnlqyX1KIQxrWQD3dK+Cw4Y9EoyxP/zlaik/pDwDCdLuKfGvhQaqwNtG2 X-Received: by 2002:a17:90b:4c0d:: with SMTP id na13mr2387066pjb.96.1643099403209; Tue, 25 Jan 2022 00:30:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643099403; cv=none; d=google.com; s=arc-20160816; b=pS5A3Q0dtlckjGnUV2U5A/eg6LZYxg5pJCbN1k8ziYBRsiTbT4pPdqQnjd22dz5eoe ck28aGVp3i5p05vGs6+WQOD80GzIj2q6Rk2xWeXcygLUYJ9lQT+tscpSOuNn2/9KbFrA /qmEBN3ye+uksJRHF0KAoPUOeRHlhCDd+Lb2bdk/UOeSEVaqZ5cHxSx85GYBim8+apbV ckMIhbi3VbRcEtzqhN2iDuIvm9/PkIBx2hAa3M5eKwR+d1ukslZjl7ZIn1XRMjIkS+9G vynD6bkePB6+p79YU83de/Nzwem1giIZz50KBL7JTOijXLMMzUT3ed4F+QAowjRZYQYS hDeA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nFNWSCbzBCUWDGTVE4Ui6wa3GQEb0+n0GCwbh9RCuWg=; b=TjoKh3AtwYCd7myRkBh/sCd0UtHX066BB0l2kUc3aA40eFnldZw5NLcAzp/V+U8ZH1 0YVJV2qY6sfzHv4KNRjY9Qs/0mEyLLr7BlY/qj8GWlw4U4yU6AUjGs3Ikx3zKSBnuoGw M2MoEpOApMbBvmQAL8WEjF2U+YRC05oR20yuJsU15hzp6gQL6tI4o1GP09d8f2lkgE78 CVvIqsxWysqz9vRUKUXtE1fqnxqJVvjFCqEhetsMW45yLXSf5c42Fdbtd409qLJXzO0G JBUwXx1cIhuaOJSMOBQnufP0FpKmFG1xrg/S/nZs7BlqtThvBB1CNKe6XWouDwPmBobE HYaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=moM19WuA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z5si13845501pfa.66.2022.01.25.00.29.51; Tue, 25 Jan 2022 00:30:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=moM19WuA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242545AbiAYChY (ORCPT + 99 others); Mon, 24 Jan 2022 21:37:24 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:34664 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385267AbiAXUb5 (ORCPT ); Mon, 24 Jan 2022 15:31:57 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 06AABB8123D; Mon, 24 Jan 2022 20:31:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2558FC340E5; Mon, 24 Jan 2022 20:31:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643056312; bh=wxcf2td4nock/WupOP7KOGXdCb7aoLTxQcRZqO5Uhzg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=moM19WuAU3dIJcASYrz+Hb6m+zpibfp2HJp/Jso0I5266/eeIg7SuoUaOdH9XhQ8H UHjNdjEsZxEqDtSHHdt9sLbPW0JogdFVWehBo1U9vjqL0JHFT8qtz+X+wZ890WapPD 38CIhMV8BYSKSJTu2N7DjGY8Zd1D/a0OiaFP5xM4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Christian A. Ehrhardt" , Takashi Iwai , Sasha Levin Subject: [PATCH 5.15 443/846] ALSA: hda/cs8409: Increase delay during jack detection Date: Mon, 24 Jan 2022 19:39:20 +0100 Message-Id: <20220124184116.263137916@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christian A. Ehrhardt [ Upstream commit 8cd07657177006b67cc1610e4466cc75ad781c05 ] Commit c8b4f0865e82 reduced delays related to cs42l42 jack detection. However, the change was too aggressive. As a result internal speakers on DELL Inspirion 3501 are not detected. Increase the delay in cs42l42_run_jack_detect() a bit. Fixes: c8b4f0865e82 ("ALSA: hda/cs8409: Remove unnecessary delays") Signed-off-by: Christian A. Ehrhardt Link: https://lore.kernel.org/r/20211231131221.itwotyfk5qomn7n6@cae.in-ulm.de Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/pci/hda/patch_cs8409.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/hda/patch_cs8409.c b/sound/pci/hda/patch_cs8409.c index 039b9f2f8e947..bf5d7f0c6ba55 100644 --- a/sound/pci/hda/patch_cs8409.c +++ b/sound/pci/hda/patch_cs8409.c @@ -628,8 +628,8 @@ static void cs42l42_run_jack_detect(struct sub_codec *cs42l42) cs8409_i2c_write(cs42l42, 0x1b74, 0x07); cs8409_i2c_write(cs42l42, 0x131b, 0xFD); cs8409_i2c_write(cs42l42, 0x1120, 0x80); - /* Wait ~100us*/ - usleep_range(100, 200); + /* Wait ~20ms*/ + usleep_range(20000, 25000); cs8409_i2c_write(cs42l42, 0x111f, 0x77); cs8409_i2c_write(cs42l42, 0x1120, 0xc0); } -- 2.34.1