From patchwork Tue Sep 18 17:45:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 146934 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp164009ljw; Tue, 18 Sep 2018 10:45:23 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZD7y3FMOVK/caDEEwdkS3dwVLZQiyQm37RSKxDmg+9PrM87ig2bSFfYuUjeOORrKTwhWpl X-Received: by 2002:a1c:3bd4:: with SMTP id i203-v6mr16323431wma.73.1537292723569; Tue, 18 Sep 2018 10:45:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537292723; cv=none; d=google.com; s=arc-20160816; b=wLGNOGxgX2mL0E6b7MZT5V/MTdYxeHr00BR96KWyiZiDTg9sYkVRelIiPIPFFK2dV3 YWScKzmbcJmKq/pLQ3dfRFXgn6nBSUcIcpeyBuq30NX/NSRata5ykqknO8+921g53vfX KxrNN+n69qdPsPJWdvXkzXO8oKw1bMDugJAmOh9IJeJL3MN1R8bEDpExQc/XpAduPkk0 IolU8Hnv/y9n6XkhrkJawYHyIrhjV2U4IrANnl6Qt2xeb8o7ftcbjdJWSrF/XkIA9Ysw xwWmR9HAXUsBNNlU63cIEWvOIFahBRJIlDRsq8DODERl61HFciy6tIgUrVdGLeCZh2s4 n/4A== 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; bh=RrGfQtNYcUnrQQKSKba1j4V6dcWQPGi5m/0gWNOxujE=; b=abIZ2U60kL2Bvhwu5+7YeDzHeTDBgeH6G59MnOkexupe9Ynm70lc0b8jfhTq/Y0QPJ 2WJhUjKSjvyBAIQZCi/ixtOTGyysTnAuEgXOw6EdcTm06fPOM+uW8p1RkWasjbih2+M0 839SFZ7n2w3I9HAnSi+qmBLZEv8uKzEXEOzC0AoTsU2ucyUObYhvn1DTYYjN/s3gQcyI uuODOawZ0X3iVXprPo6z6CHlAO0YfsCOFRj+V0/LqvM7iZBV3Gm/Jpd80Yl/sT1MAcsR PIwaFSh0Bpv72Rskw//6F2LNf1HYT9bYzNjPff/zBFXeupDI0n68h3K8x8/vODlLI58H D56w== 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=B6vOd3CN; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id h3-v6si22014614wrb.80.2018.09.18.10.45.23; Tue, 18 Sep 2018 10:45:23 -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=B6vOd3CN; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 4241726789B; Tue, 18 Sep 2018 19:45:17 +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 BC97126789E; Tue, 18 Sep 2018 19:45:15 +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.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, SPF_PASS 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 9FB5C2678AA for ; Tue, 18 Sep 2018 19:45:13 +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=VPh6OnML7dUtPh64ihKcZW+SR0CV3TldSVe/9k9NU7E=; b=B6vOd3CNG6E6 Rzji3yf+mO8m/En3I/7g7ZuW5iry3gWUV9V9PVuDY0XbgRbnKcT6L4bGbiXZTwjOdzoShstSiaN2M eszcCSl5qQ+buEQ1ohaF1UkpL8K58UIqWCuS1n7KtHzIOZ5meZav6r6DRoL/jc3s+IMxOL9WjoHuz WukhQ=; Received: from [209.121.128.187] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1g2K3k-0003Wm-LC; Tue, 18 Sep 2018 17:45:13 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id C3CDD440078; Tue, 18 Sep 2018 18:45:10 +0100 (BST) From: Mark Brown To: Shuming Fan In-Reply-To: <1537271498-5688-1-git-send-email-shumingf@realtek.com> Message-Id: <20180918174510.C3CDD440078@finisterre.ee.mobilebroadband> Date: Tue, 18 Sep 2018 18:45:10 +0100 (BST) Cc: oder_chiou@realtek.com, jack.yu@realtek.com, alsa-devel@alsa-project.org, lars@metafoo.de, lgirdwood@gmail.com, albertchen@realtek.com, broonie@kernel.org, flove@realtek.com Subject: [alsa-devel] Applied "ASoC: rt5682: Fix the boost volume at the begining of playback" 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: rt5682: Fix the boost volume at the begining of playback has been applied to the asoc tree at https://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 28b20dde5e1c943ab899549a655ac4935cffccbb Mon Sep 17 00:00:00 2001 From: Shuming Fan Date: Tue, 18 Sep 2018 19:51:38 +0800 Subject: [PATCH] ASoC: rt5682: Fix the boost volume at the begining of playback This patch fixed the boost volume at the begining of playback while DAC volume set to lower level. Signed-off-by: Shuming Fan Signed-off-by: Mark Brown --- sound/soc/codecs/rt5682.c | 5 +++++ 1 file changed, 5 insertions(+) -- 2.19.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/codecs/rt5682.c b/sound/soc/codecs/rt5682.c index 2725eb72fb1b..18099668e960 100644 --- a/sound/soc/codecs/rt5682.c +++ b/sound/soc/codecs/rt5682.c @@ -68,6 +68,7 @@ struct rt5682_priv { static const struct reg_sequence patch_list[] = { {0x01c1, 0x1000}, + {RT5682_DAC_ADC_DIG_VOL1, 0xa020}, }; static const struct reg_default rt5682_reg[] = { @@ -1468,6 +1469,8 @@ static int rt5682_hp_event(struct snd_soc_dapm_widget *w, RT5682_HP_CTRL_2, 0x6000); snd_soc_component_update_bits(component, RT5682_DEPOP_1, 0x60, 0x60); + snd_soc_component_update_bits(component, + RT5682_DAC_ADC_DIG_VOL1, 0x00c0, 0x0080); break; case SND_SOC_DAPM_POST_PMD: @@ -1475,6 +1478,8 @@ static int rt5682_hp_event(struct snd_soc_dapm_widget *w, RT5682_DEPOP_1, 0x60, 0x0); snd_soc_component_write(component, RT5682_HP_CTRL_2, 0x0000); + snd_soc_component_update_bits(component, + RT5682_DAC_ADC_DIG_VOL1, 0x00c0, 0x0000); break; default: