Commit fb20de60 authored by Sugar Zhang's avatar Sugar Zhang Committed by Mark Brown

ASoC: rockchip: pdm: using left justified store mode

This patch set left justified store mode default.
Signed-off-by: default avatarSugar Zhang <sugar.zhang@rock-chips.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 8a1d95c3
...@@ -135,6 +135,7 @@ static int rockchip_pdm_hw_params(struct snd_pcm_substream *substream, ...@@ -135,6 +135,7 @@ static int rockchip_pdm_hw_params(struct snd_pcm_substream *substream,
regmap_update_bits(pdm->regmap, PDM_HPF_CTRL, regmap_update_bits(pdm->regmap, PDM_HPF_CTRL,
PDM_HPF_LE | PDM_HPF_RE, PDM_HPF_LE | PDM_HPF_RE); 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_CLK_CTRL, PDM_CLK_EN, PDM_CLK_EN);
regmap_update_bits(pdm->regmap, PDM_CTRL0, PDM_MODE_MSK, PDM_MODE_LJ);
val = 0; val = 0;
switch (params_format(params)) { switch (params_format(params)) {
......
...@@ -42,6 +42,9 @@ ...@@ -42,6 +42,9 @@
/* PDM CTRL0 */ /* PDM CTRL0 */
#define PDM_PATH_MSK (0xf << 27) #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_PATH3_EN BIT(30)
#define PDM_PATH2_EN BIT(29) #define PDM_PATH2_EN BIT(29)
#define PDM_PATH1_EN BIT(28) #define PDM_PATH1_EN BIT(28)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment