Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3642835pxb; Mon, 24 Jan 2022 14:14:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAQ4GtB1e61bzYZDst1TrxlBlcaTa0PJRBqYxQmr5s/1FOPZfxErpYLQ1CSyn1lOLciuLF X-Received: by 2002:a63:8343:: with SMTP id h64mr7921876pge.504.1643062454173; Mon, 24 Jan 2022 14:14:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643062454; cv=none; d=google.com; s=arc-20160816; b=sB92akG/CIfbu7/I8kOcXQT0wvEtWmIKFuGZmIPzkLTiXAn/b0HmXIbBxRewpkykxK aiFIfjA5MSagXekseNUaQYMj2JQvzYIPmmc09vAitmctMALKGLkjt+Qg+18MvUkiyhJ4 jTB2h7cmvqm1zwNoyFIgeB+uuq9yki0d0HV0Mm9kqMpd+ryLzvd1vHNCE4Ke7Fv+HoxW 4cXdxMR6642Owl35Ej7JbYrp0EVDL33m7kgJaJdTo8JEP/J6uZMxBspMfI+eUYIDqpnH 2OZhbJXkiRVZ7KwjNzLj5ZWy88fCEL8+/D6zvGqAgNQtLwblLafaHozlah8M0uM5MrHp JlRA== 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=zkn3n4l9ZUvs2BSa3YrBFEdxgz27aFwyjnXG0YSI4BdH4WXJVUJqlnst4moU9pVs+/ SRdGJnhUWTeLVdhIzD8MZwhaRPlG3oABf9fGIbJcg0VQABg91Ir2oxDjGqrexr7D3LtD XlmN+CdC7YsNZw48vhIOHCGsNotTrr4K6zJJYSQ6Aq3DUkQYtfZuXShBaeU9ekls5V4T Dim0X6jBWChHKCCCrDHIKc8qF59Eu9V3J5M95lqdVIAKPXFurgt8JcGtY0e8ZxoynASC 5cNw/9UvBvLUUjwMqy8bvtlWJ6kDQbmHPeIeOpQUUaR+J2gIUB9WGlfKg7xmSYtr2oUa kuuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1c5X7+Y+; 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 d184si14703600pgc.100.2022.01.24.14.14.02; Mon, 24 Jan 2022 14:14:14 -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=1c5X7+Y+; 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 S1578233AbiAXWCH (ORCPT + 99 others); Mon, 24 Jan 2022 17:02:07 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:43348 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1450533AbiAXVUy (ORCPT ); Mon, 24 Jan 2022 16:20:54 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 93DEB614B8; Mon, 24 Jan 2022 21:20:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78820C340E5; Mon, 24 Jan 2022 21:20:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059248; bh=wxcf2td4nock/WupOP7KOGXdCb7aoLTxQcRZqO5Uhzg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1c5X7+Y+FkGMCmVQd0bli0fyTN3QakZb0bVJ4kfraVW0gyT5n6J7hp+JgnUutS15K kjfdPFD/ThOnXl9G17qpXczNtirUcS4MRcqaKdgsZPtTM39F+tabTrpcvZdHMNs9HX omWgemzi/lPnZg4uo6vRUOBlNKqNGQakraMNTCeU= 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.16 0519/1039] ALSA: hda/cs8409: Increase delay during jack detection Date: Mon, 24 Jan 2022 19:38:28 +0100 Message-Id: <20220124184142.737904112@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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