Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp968034yba; Thu, 4 Apr 2019 01:19:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTLRrVb/AOe4X1nt4ikgMUHfpuuPjvLUAKu6pNSQt6EbM34aXObcaxXnYSPVuhLwvUZrSI X-Received: by 2002:a62:e412:: with SMTP id r18mr4386626pfh.207.1554365999165; Thu, 04 Apr 2019 01:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554365999; cv=none; d=google.com; s=arc-20160816; b=FBLGiYlKQfC5HUkFt8cM2wd6n8fecpeJpc0CP9x+Zi8Jib4yYLAUpqdMyJ7j6y4rgN 6gqbnl7FbyR7kYG30XCH1APbt8d77MWPRNAj9b9iDFpwLj+GeqVJz2qeNBQ93v6nx7/e mFZgHLZcZgZLZIlqU7N8O/yDXNZp93oqo+jlmgnfbbyhpcFr1witFeQhGC8/jUN4l8Uu e3kkuHsvtVEwBDl5emXjGxOmo6L8j933XqyH2oNxJgg8jv7fZnc92mliavlhiSSTwnSR Ym+GeaxGMKY/UaekKbM+Je+Q4BdeDOytnUfc/a7tTXHjhgnswVPN1WW2BPKZ7AWS3/Ad X+TA== 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=9Opq+FCqCyg0dTkNdVF+BTsBvAM2AywxPneyzlrJbHI=; b=CxNCnD+f1twEjpBke0j5VgH0eCR3HooeL+OCSi/KF2TpfN0r26H68RRd6IVtYuHlQe qy4KCMSn54WTUfsw+c4NFyOcHk9Wq9OyIocvNdhuDiz4hF2Np2CjLGb+T9d4l8NHZqqm NUxDxd8M/0iuQ+/CBQnD1coo26oqQvV2137GrqteCc+Tghuss+W5m4EVLKNaf9PJviph zUEBmVCiVeEpX3m5Y054NP9tHP8vhOC8HhsuMM+ItEzC8kC3vTec/a/gatrhHzkLURM/ k0kfvwXdCT+E+t0On0zpWtrCPdwhyNrIOo7BR9Bl08SuObYfJwH2LlxEnPZkSXbUMskU B6JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=oi0Xc9Eu; 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 v5si15029594pgr.121.2019.04.04.01.19.44; Thu, 04 Apr 2019 01:19:59 -0700 (PDT) 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=oi0Xc9Eu; 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 S1728831AbfDDIRd (ORCPT + 99 others); Thu, 4 Apr 2019 04:17:33 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:51044 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728737AbfDDIRH (ORCPT ); Thu, 4 Apr 2019 04:17:07 -0400 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=9Opq+FCqCyg0dTkNdVF+BTsBvAM2AywxPneyzlrJbHI=; b=oi0Xc9EuEvbk yaWL74BOJTQYO3Lap2XhuJZp6MzejMvP6ZQUQe2+suqq9LzcgKZ+R/2FqVhMwMc46UAtD/PVQDxtj Nc3BTu9rtITSh4+QqlcvfozSYvGQ6ZQP00xX9e5KpaTx3moFyvdnosciSBuMy7D0EVgx8IYwDxpQS RDgIk=; Received: from [147.50.13.10] (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 1hBxYR-00052i-N0; Thu, 04 Apr 2019 08:17:00 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id B1131441D3D; Thu, 4 Apr 2019 15:16:56 +0700 (+07) From: Mark Brown To: Sugar Zhang Cc: Mark Brown , heiko@sntech.de, broonie@kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Takashi Iwai , Liam Girdwood , linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, alsa-devel@alsa-project.org Subject: Applied "ASoC: rockchip: pdm: using left justified store mode" to the asoc tree In-Reply-To: <1554298856-59028-3-git-send-email-sugar.zhang@rock-chips.com> X-Patchwork-Hint: ignore Message-Id: <20190404081656.B1131441D3D@finisterre.ee.mobilebroadband> Date: Thu, 4 Apr 2019 15:16:56 +0700 (+07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: rockchip: pdm: using left justified store mode 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 fb20de606316a446efdfb0f775a892f782165783 Mon Sep 17 00:00:00 2001 From: Sugar Zhang Date: Wed, 3 Apr 2019 21:40:46 +0800 Subject: [PATCH] ASoC: rockchip: pdm: using left justified store mode This patch set left justified store mode default. Signed-off-by: Sugar Zhang Signed-off-by: Mark Brown --- sound/soc/rockchip/rockchip_pdm.c | 1 + sound/soc/rockchip/rockchip_pdm.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/sound/soc/rockchip/rockchip_pdm.c b/sound/soc/rockchip/rockchip_pdm.c index 400e29edb1c9..ba61a4b27d39 100644 --- a/sound/soc/rockchip/rockchip_pdm.c +++ b/sound/soc/rockchip/rockchip_pdm.c @@ -135,6 +135,7 @@ static int rockchip_pdm_hw_params(struct snd_pcm_substream *substream, regmap_update_bits(pdm->regmap, PDM_HPF_CTRL, PDM_HPF_LE | PDM_HPF_RE, PDM_HPF_LE | PDM_HPF_RE); regmap_update_bits(pdm->regmap, PDM_CLK_CTRL, PDM_CLK_EN, PDM_CLK_EN); + regmap_update_bits(pdm->regmap, PDM_CTRL0, PDM_MODE_MSK, PDM_MODE_LJ); val = 0; switch (params_format(params)) { diff --git a/sound/soc/rockchip/rockchip_pdm.h b/sound/soc/rockchip/rockchip_pdm.h index 886b48d128fd..00a8fa187d22 100644 --- a/sound/soc/rockchip/rockchip_pdm.h +++ b/sound/soc/rockchip/rockchip_pdm.h @@ -42,6 +42,9 @@ /* PDM CTRL0 */ #define PDM_PATH_MSK (0xf << 27) +#define PDM_MODE_MSK BIT(31) +#define PDM_MODE_RJ 0 +#define PDM_MODE_LJ BIT(31) #define PDM_PATH3_EN BIT(30) #define PDM_PATH2_EN BIT(29) #define PDM_PATH1_EN BIT(28) -- 2.20.1