Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp967018yba; Thu, 4 Apr 2019 01:18:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbLpwmFQMbtZ9mVk4k6/nPmxqB4+42d7YwwPGo8RhETQ3Fn0w+tDfhdWlbiSpILgnNrawn X-Received: by 2002:a63:f24f:: with SMTP id d15mr4413279pgk.410.1554365904518; Thu, 04 Apr 2019 01:18:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554365904; cv=none; d=google.com; s=arc-20160816; b=OD3gDzgzVbIkyC952RjnmuZxNK+e48Phbz4HgEax3IEhJzqZMj+cts9JqqyszFgz+y E2ciOSHmDHoTCHrUlfFsvI+HykopidDAkIlUpHK774ERWkJ67EkSNXpVbjZFnrNIdpXR zUaTABQZ6n9XrnHi9O6IKVZonDIdOrd6gCyLcwvweP4K+GjFCth2sOQf8/V7ipuDsFJL q3/LNK50bWPrphOkBVXVPXHEXBj7wJ7VFk400RklbBNqyZ2CeMgYS5xOLfcpMMb9I7Wh Tpv8YyapSP1hDx8zpTHMsOek9a3hbeoEywVNqg+CB4+Oh76AqIAV71axX9L69qLZd5QQ xcsw== 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=fx5GSk7LFH3K5EJTEAcHEaqFvqeVb2j8QlXZdlbyR2o=; b=dt7waiOgg2h8NlZrrZPpjiqjAbp0EYXitzgyTMqMwjY39zbZ+GojcZ9pX1ylw9g48s tMrVhwCjcrOSOLQXf/rT4mYsSYQGNCWzCejbpuVlA773hJbshsXQmUnvrzh+QDw6lU1p z9x6sNbi+DwRfN/+JcDKdIkWCFnR6o/SdP8WiKETeYESaNVjq7jbacGGl2uXbVloRJhg Qfnat0nqIUT10cadvDsccrlPcRNXVeGJBPPPQgvjzDJRXqA26BUMSKyzxbPhxGYIUJtD d/Sk3QVvncv6x3g9lk+m5pq6vWZbNXCRHPdsJCg/ydIn2VTkAHTyoKNnIfGpJVMAgDrY xh8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Z2dWV+My; 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 c24si8450217plo.220.2019.04.04.01.18.09; Thu, 04 Apr 2019 01:18:24 -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=Z2dWV+My; 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 S1728777AbfDDIRL (ORCPT + 99 others); Thu, 4 Apr 2019 04:17:11 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:51080 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728744AbfDDIRI (ORCPT ); Thu, 4 Apr 2019 04:17:08 -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=fx5GSk7LFH3K5EJTEAcHEaqFvqeVb2j8QlXZdlbyR2o=; b=Z2dWV+MyIuvs sOCVotPXDRoMcai0qpy3il359zbe7R8j60kbJeb8tMOPw2Hzrmr+ztCBWki22dwF2jb0LSx1RfoAs He2W8QAMjT9Wgj65GfzlljNBJ7PnVPH0hUZp0nsrUrkFMQS1zZR+DoXaYVxOn1dnj1ox9qf6eXXvj Pk1cs=; 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 1hBxYO-00052W-HW; Thu, 04 Apr 2019 08:16:57 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id A4066441D3C; Thu, 4 Apr 2019 15:16:53 +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: add default regs" to the asoc tree In-Reply-To: <1554298856-59028-4-git-send-email-sugar.zhang@rock-chips.com> X-Patchwork-Hint: ignore Message-Id: <20190404081653.A4066441D3C@finisterre.ee.mobilebroadband> Date: Thu, 4 Apr 2019 15:16:53 +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: add default regs 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 a7980cd212cef9002fe9683f440d27609d1aae37 Mon Sep 17 00:00:00 2001 From: Sugar Zhang Date: Wed, 3 Apr 2019 21:40:47 +0800 Subject: [PATCH] ASoC: rockchip: pdm: add default regs This patch add default regs value for controller. Signed-off-by: Sugar Zhang Signed-off-by: Mark Brown --- sound/soc/rockchip/rockchip_pdm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sound/soc/rockchip/rockchip_pdm.c b/sound/soc/rockchip/rockchip_pdm.c index ba61a4b27d39..984d99889a65 100644 --- a/sound/soc/rockchip/rockchip_pdm.c +++ b/sound/soc/rockchip/rockchip_pdm.c @@ -361,11 +361,19 @@ static bool rockchip_pdm_volatile_reg(struct device *dev, unsigned int reg) } } +static const struct reg_default rockchip_pdm_reg_defaults[] = { + {0x04, 0x78000017}, + {0x08, 0x0bb8ea60}, + {0x18, 0x0000001f}, +}; + static const struct regmap_config rockchip_pdm_regmap_config = { .reg_bits = 32, .reg_stride = 4, .val_bits = 32, .max_register = PDM_VERSION, + .reg_defaults = rockchip_pdm_reg_defaults, + .num_reg_defaults = ARRAY_SIZE(rockchip_pdm_reg_defaults), .writeable_reg = rockchip_pdm_wr_reg, .readable_reg = rockchip_pdm_rd_reg, .volatile_reg = rockchip_pdm_volatile_reg, -- 2.20.1