Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp198184imj; Thu, 14 Feb 2019 18:30:07 -0800 (PST) X-Google-Smtp-Source: AHgI3IZSbII12hGJe1HhMWU0CK30eyo+vK+1K2+uZf8vZs/z6W0wRqTgMq7FkrOvUJrrPj993nvD X-Received: by 2002:a62:20d1:: with SMTP id m78mr7307290pfj.250.1550197807592; Thu, 14 Feb 2019 18:30:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550197807; cv=none; d=google.com; s=arc-20160816; b=y5ooWOFR6bbh9w1qIkZtBT7dTc7dAb+9Gq1xKCutboyq4V+dQ6gHYid2971KsCJG7a 3lS7kIV/RLrr0rTrYEk0uV7FWlBmVOxR5lHm9IceXK8wombYdBG72JRvgoQq5U0ikT+3 WyosIjSt8aoAW6NuUEvzl8zzuBnLxy+wiC7dZIbpPd7tLOBTMLWAgnjvwsX7U3H4o3E6 9DjiWnrXTRciaOTjt0SYgnzfYlu/Fxmpma4ktd3BXaXh3xVErAv1zwK4F51eJy/GEvTs 4YBIA10XDXl47a/NeYnwFBYvAMX62e7u5E+dPgslpxTp5LRQ+HXROw/xBWpiDUP7YFov wUJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=c+R6tqFa+rZfLFB6nds1P2DCzl/iyFqnni0bXN3AEFQ=; b=n9z6Pja9kM9BRVY3YYiFTOSQEaSYBz5rKoHFKoPfQR1qKFGV7OYYnW2ko3QGHSWMoC m6CcVbmf7UipNy/ihGqVpWUl93bW5KwTNenSXP+MXuCE3fgy31ufLdA2sxYPYLrN6WfB wLCGhR7xrmcXyoD7m+BOM0gIgnlmXAgT1zv+JlYuSZi8ASTMKvLUNZM7QocdM+dmdhco t8Bfo71NrUwQYLME69x3zEmHHF2QVHSmkhOnDofaQ3NHAF1x9M+ZqrSodUx81eDZ2zWt psJdGgImkVV7Y5+u8S+s9JGHLPiw3M/md3HlK6tzHHpBwhpK/PGjlAAZYhbGvTYl17Ju Oy2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=arJFkIrI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cs11si4488425plb.181.2019.02.14.18.29.51; Thu, 14 Feb 2019 18:30:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=arJFkIrI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731489AbfBOCJG (ORCPT + 99 others); Thu, 14 Feb 2019 21:09:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:49248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731437AbfBOCJE (ORCPT ); Thu, 14 Feb 2019 21:09:04 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 09591222D7; Fri, 15 Feb 2019 02:09:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550196543; bh=KqEry358mul7LGC+jj2E+46hRdlq5jCRIfC3/q1jCgg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=arJFkIrI6IM1tBRCtwfxrWRK51MJcuXw0HUZotoIpm7Du3Pi9vGAdUIFUGUvRiX1Y k4ANOi3jJQ2hgVStd1xgVWu06cPiUKLdlR/Vc1XbxuSlSMN/vjrAD0mlSZqVxGnBNf YFGX0aFY5M2ZyjB7Rzb5PG5QaVEIOSNzhoEQQbNQ= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Shuming Fan , Mark Brown , Sasha Levin Subject: [PATCH AUTOSEL 4.20 04/77] ASoC: rt5682: Fix recording no sound issue Date: Thu, 14 Feb 2019 21:07:42 -0500 Message-Id: <20190215020855.176727-4-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190215020855.176727-1-sashal@kernel.org> References: <20190215020855.176727-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shuming Fan [ Upstream commit 22c7d5e7bad1fb2d8b9c611acb55a389f5d848d8 ] The ADC mixer setting needs to restore to default value after calibration. Signed-off-by: Shuming Fan Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/rt5682.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/rt5682.c b/sound/soc/codecs/rt5682.c index 34cfaf8f6f34..89c43b26c379 100644 --- a/sound/soc/codecs/rt5682.c +++ b/sound/soc/codecs/rt5682.c @@ -2512,6 +2512,7 @@ static void rt5682_calibrate(struct rt5682_priv *rt5682) regmap_write(rt5682->regmap, RT5682_PWR_DIG_1, 0x0000); regmap_write(rt5682->regmap, RT5682_CHOP_DAC, 0x2000); regmap_write(rt5682->regmap, RT5682_CALIB_ADC_CTRL, 0x2005); + regmap_write(rt5682->regmap, RT5682_STO1_ADC_MIXER, 0xc0c4); mutex_unlock(&rt5682->calibrate_mutex); -- 2.19.1