From patchwork Wed Aug 30 15:22:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 111320 Delivered-To: patch@linaro.org Received: by 10.37.128.210 with SMTP id c18csp1067893ybm; Wed, 30 Aug 2017 08:23:07 -0700 (PDT) X-Google-Smtp-Source: ADKCNb6JlAv1xD8xKMdoZo8ssMmK5eEpaFvuPvcojA+lhdGirJ3EfTFRHRITQWVl9sIy/18RzPZ3 X-Received: by 10.28.178.144 with SMTP id b138mr1537715wmf.164.1504106587561; Wed, 30 Aug 2017 08:23:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504106587; cv=none; d=google.com; s=arc-20160816; b=rJxRw7IXrEl32I4UNoUVpe6GBw+EQlJFWL8vFjNapsY4s52MGPGmoMPsGlMQzJLSdG ghvEjxhOtRVvStaVU45ZzcBfpNnZD0YwqCRaCWJx2jZTAeEaK88hBnVZFHP9BDnE8uvk NdeZvUgfTq88cn1jd+NO/RGxLcwBP9iH5nn9ohsZXPlxpZ8GfIYAYb2Ijue0qUP58C4D qL0ahdXGLnwTq2DEKbdOH1gnPxGS9fx2eezIeRMbysyE3w50/9ACwFztTXK+0JhOYPrD P4fvUtDOYNCcS3ss4cpgbw5eS40PfdUChkI00oKF+JGwKaVmlPEKrPlSTIgQ2u0DWY6w nzyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=MGuVTh1k4lL0uTMobZ6SZcrWQlP/xJvnLvK/dpDFYDM=; b=B1e2wkMdvwz5e5QJRKaG+qo1b4ZllVxXYo8xsBT/MuzO2rZtQbWq4Eske9jsuz7S+q 1o4iXkcf1pzqKEEWevmpAw0X+qJwT7Eyisp4qSBt66ljQxLceGN1BlT7RgurMQPpmZ/u 4P/zzfQNIDuQWP2tSkdKCF95IpTo5pEwxxpnDaVW6yaIf13QCoSsYm5Jb7qL7d8RpyTV sWIn5dMTNOBF1J7j3x4KCOuyZJzvEkjuWQWtT8SdzrTU6HWKZT2E3O7aN7G6Z8PPOqJL +uKFmFG1Z9XwCD5lu1XuiqEShLIyuETME1Rr1owKgZWuj7QP694X+jTcFIicWquawhdr s8Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=sPqrgO8W; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id k15si4501173wre.277.2017.08.30.08.23.07; Wed, 30 Aug 2017 08:23:07 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=sPqrgO8W; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 40BB72671BD; Wed, 30 Aug 2017 17:22:54 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 95DB42671BE; Wed, 30 Aug 2017 17:22:53 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, RP_MATCHES_RCVD, SPF_PASS, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id 3340B2671BA for ; Wed, 30 Aug 2017 17:22:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=8c8g7JDTEY8ppsULyW3Jf5Rrtp5RiLUDZa24uRFmKTY=; b=sPqrgO8Wtq+6 u0jitZepTa3Ug7ETq9iBxPcagVSY6mHDGmbC+heuOfZrmBCOXdaj7NEPiLyiIuJfiyvWFkimhM94k DooLSc1WmxENdknP2rZUrvVPxw5I3VlV/12OV9skiZccppX2a/BAi15zEC3k2tnsBaAd1zvOTJaLA RsGLI=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1dn4pL-0006u3-Nw; Wed, 30 Aug 2017 15:22:47 +0000 Received: from broonie by debutante with local (Exim 4.89) (envelope-from ) id 1dn4pL-0003Th-7F; Wed, 30 Aug 2017 16:22:47 +0100 From: Mark Brown To: oder_chiou@realtek.com In-Reply-To: <1504069711-6549-1-git-send-email-oder_chiou@realtek.com> Message-Id: Date: Wed, 30 Aug 2017 16:22:47 +0100 Cc: Oder Chiou , jack.yu@realtek.com, alsa-devel@alsa-project.org, lgirdwood@gmail.com, broonie@kernel.org, shumingf@realtek.com, bardliao@realtek.com, Hsinyu Chao , flove@realtek.com Subject: [alsa-devel] Applied "ASoC: rt5663: Add delay for jack plug in" to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: rt5663: Add delay for jack plug in has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 9c324afe3b90e406b15938acafaa2636a7e85ff3 Mon Sep 17 00:00:00 2001 From: "oder_chiou@realtek.com" Date: Wed, 30 Aug 2017 13:08:31 +0800 Subject: [PATCH] ASoC: rt5663: Add delay for jack plug in Codec initialize takes some time when 3.5mm jack plugged in. Add a delay to report jack plugged event to user space to avoid pop noise. Signed-off-by: Hsinyu Chao Signed-off-by: Oder Chiou Signed-off-by: Mark Brown --- sound/soc/codecs/rt5663.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.14.1 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/codecs/rt5663.c b/sound/soc/codecs/rt5663.c index fdc2bbcb67c2..14716d25173b 100644 --- a/sound/soc/codecs/rt5663.c +++ b/sound/soc/codecs/rt5663.c @@ -1705,6 +1705,9 @@ static void rt5663_jack_detect_work(struct work_struct *work) default: dev_err(codec->dev, "Unknown CODEC Version\n"); } + + /* Delay the jack insert report to avoid pop noise */ + msleep(30); } else { /* jack is already in, report button event */ report = SND_JACK_HEADSET;