Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2201809imu; Sat, 22 Dec 2018 15:11:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN77MMxoWBC5rMaDt5MVVV2nykioALuYi0XJw6qRxzF5HFyc8tjsL/mwL+MOHjzPfPqKUd5b X-Received: by 2002:a63:e516:: with SMTP id r22mr7718333pgh.256.1545520265117; Sat, 22 Dec 2018 15:11:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545520265; cv=none; d=google.com; s=arc-20160816; b=yg7HKxNqyh/mnmumjc25uhjZIxOTcwxr9pH6Q2p2GAhoFY85lOMVO/1ByWPFaUObLh d1TWVPn+s0blUkaCcLFWizPYZraxqnyKIpLj9Rc0keF23ZuWfjo7LiMEPXdbcVSoMICS Fe8RbXaornNC4m9l49YGX+if/HthFXQO10uHD9bLSl4C0OfriUbsrGbljG6Nd+rm32FF kSWN1/Jh/sQdm2Ja0qE8Y1rWNpMpikqLffh4TXiVY8PeJytxPMlGZXfkVxTUnWROC1i1 fQtkP/thAywU5QfCx0urPl+oLzCKUEcpXrVn6I2EnuaJyZBXfZTDAL+C4x0lT0ESNZdx tAuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=nGj0bkijnCx3gJMubzNqFQYa/+Sd/+6on7euzubTFrc=; b=CZYRhXyTj4GyG+XMfm3DYyOZi2TOh43Y06UWViQVrDvRV1/6wY0Pdv3alOhGWrpsIv oD3cITeKvbfkjeQT0P5cRNRPK96UAtXtE8sX1WKdXwo07oQAiw7BsfUAFBCH2lUaq4io Ox6bhfBOo8duRPyChvz55JTjp03DKWHmn8GlSZU3j0T2jgxBaReL/8OQaya709nY1Zrp 9uUzhaZZPTkN+pC9p01QBc/uc2D1QZlUKAPghy6GavfhhZMK/F9m2NIOWBjwXccJSOm0 +pvM1RJrrKahFykSjW8ycNODNkBWwabYqSFReRC0PNG8xvlBLl4yyAQ1mz1DBP0iOpSx qNvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=TM2KODKV; 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=fail (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 e7si23578516pgi.263.2018.12.22.15.10.50; Sat, 22 Dec 2018 15:11:05 -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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=TM2KODKV; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404438AbeLUSPS (ORCPT + 99 others); Fri, 21 Dec 2018 13:15:18 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:36310 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731605AbeLUSPM (ORCPT ); Fri, 21 Dec 2018 13:15:12 -0500 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=nGj0bkijnCx3gJMubzNqFQYa/+Sd/+6on7euzubTFrc=; b=TM2KODKVb7ie ype7Gjq52Z+SS6K4mS4AHdMMbhCLLcAPzcs2TLmYrArAl3UVmllre1H4nxvCiOdrPPXk3C0HNhrj/ /KimsXzs18dub3aT2PGx/kjBM9ZlUrc+uBFpigh73MiG9W03GVIN8MrCKqz/5fnZZcHNb8WP6iQpR nStKQ=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1gaPK7-0003q7-A4; Fri, 21 Dec 2018 18:14:59 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id EB54D1121B93; Fri, 21 Dec 2018 18:14:58 +0000 (GMT) From: Mark Brown To: Katsuhiro Suzuki Cc: Mark Brown , Mark Brown , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, alsa-devel@alsa-project.org Subject: Applied "ASoC: rockchip: add workaround for silence of rk3288 ACODEC" to the asoc tree In-Reply-To: <20181220153636.5213-2-katsuhiro@katsuster.net> X-Patchwork-Hint: ignore Message-Id: <20181221181458.EB54D1121B93@debutante.sirena.org.uk> Date: Fri, 21 Dec 2018 18:14:58 +0000 (GMT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: rockchip: add workaround for silence of rk3288 ACODEC 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 25af20ae05b95b63cfe655ca248b9dcbf904104c Mon Sep 17 00:00:00 2001 From: Katsuhiro Suzuki Date: Fri, 21 Dec 2018 00:36:36 +0900 Subject: [PATCH] ASoC: rockchip: add workaround for silence of rk3288 ACODEC This patch adds reset and precharge in shutdown of PCM device. ACODEC goes to silence if we change Fs to 44.1kHz from 48kHz. This workaround seems to work but I don't know this workaround is correct sequence or not for ACODEC. Signed-off-by: Katsuhiro Suzuki Signed-off-by: Mark Brown --- sound/soc/codecs/rk3328_codec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/rk3328_codec.c b/sound/soc/codecs/rk3328_codec.c index 71f3fc2d970c..f3442a2283ea 100644 --- a/sound/soc/codecs/rk3328_codec.c +++ b/sound/soc/codecs/rk3328_codec.c @@ -261,9 +261,12 @@ static int rk3328_codec_close_playback(struct rk3328_codec_priv *rk3328) mdelay(1); } + /* Workaround for silence when changed Fs 48 -> 44.1kHz */ + rk3328_codec_reset(rk3328); + regmap_update_bits(rk3328->regmap, DAC_PRECHARGE_CTRL, DAC_CHARGE_CURRENT_ALL_MASK, - DAC_CHARGE_CURRENT_I); + DAC_CHARGE_CURRENT_ALL_ON); return 0; } -- 2.20.1