summaryrefslogtreecommitdiffstats
path: root/sound/soc/rockchip/rockchip_pdm.h
diff options
context:
space:
mode:
authorSugar Zhang <sugar.zhang@rock-chips.com>2019-04-03 21:40:46 +0800
committerMark Brown <broonie@kernel.org>2019-04-04 15:03:33 +0700
commitfb20de606316a446efdfb0f775a892f782165783 (patch)
treef4ac3a80e410ea51a7d33363d56a4a524246ee32 /sound/soc/rockchip/rockchip_pdm.h
parent8a1d95c393d971e624fc28f11516b0bc3a7fa706 (diff)
downloadlinux-fb20de606316a446efdfb0f775a892f782165783.tar.gz
linux-fb20de606316a446efdfb0f775a892f782165783.tar.bz2
linux-fb20de606316a446efdfb0f775a892f782165783.zip
ASoC: rockchip: pdm: using left justified store mode
This patch set left justified store mode default. Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/rockchip/rockchip_pdm.h')
-rw-r--r--sound/soc/rockchip/rockchip_pdm.h3
1 files changed, 3 insertions, 0 deletions
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)