summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@nxp.com>2020-06-18 21:12:22 +0300
committerDaniel Baluta <daniel.baluta@nxp.com>2020-06-19 17:01:30 +0300
commitb3adec224c89003919743e6764b9dbb751983894 (patch)
treebbb0246ac967905aecfc610e4c13e15ebb911771
parent5691e22711a4ee70f473e909d7aae76a966d819d (diff)
MLK-24263-6 ASoC: fsl_dsp_audiomix: Remove hardcoded value
Use a meaningful named macro to represent RunStall bit from AudioDSP_REG2 register. This register is used to Run/Stall the DSP. Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com> Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
-rw-r--r--sound/soc/fsl/fsl_dsp_audiomix.c2
-rw-r--r--sound/soc/fsl/fsl_dsp_audiomix.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_dsp_audiomix.c b/sound/soc/fsl/fsl_dsp_audiomix.c
index 20a76d424500..ba7730b54cd2 100644
--- a/sound/soc/fsl/fsl_dsp_audiomix.c
+++ b/sound/soc/fsl/fsl_dsp_audiomix.c
@@ -21,7 +21,7 @@ void imx_audiomix_dsp_start(struct imx_audiomix_dsp_data *data)
u32 val;
val = readl(data->base + AudioDSP_REG2);
- val &= ~(1 << 5);
+ val &= ~AudioDSP_REG2_RUNSTALL;
writel(val, data->base + AudioDSP_REG2);
}
EXPORT_SYMBOL(imx_audiomix_dsp_start);
diff --git a/sound/soc/fsl/fsl_dsp_audiomix.h b/sound/soc/fsl/fsl_dsp_audiomix.h
index ff251021a6a4..810efbaafff0 100644
--- a/sound/soc/fsl/fsl_dsp_audiomix.h
+++ b/sound/soc/fsl/fsl_dsp_audiomix.h
@@ -13,6 +13,8 @@
#define AudioDSP_REG2 0x108
#define AudioDSP_REG3 0x10c
+#define AudioDSP_REG2_RUNSTALL BIT(5)
+
struct imx_audiomix_dsp_data;
void imx_audiomix_dsp_start(struct imx_audiomix_dsp_data *data);
void imx_audiomix_dsp_pid_set(struct imx_audiomix_dsp_data *data, u32 val);