diff options
author | Viorel Suman <viorel.suman@nxp.com> | 2020-04-23 17:30:07 +0300 |
---|---|---|
committer | Viorel Suman <viorel.suman@nxp.com> | 2020-04-24 13:23:15 +0300 |
commit | 5e51d7390164586788885d3da8f584847bebb4f0 (patch) | |
tree | 490b0c3e0c617413ee5acef7c50ffd96d99c1b81 /sound/soc/fsl/fsl_xcvr.h | |
parent | 0c545276cffae4f44749dd8d20a9f0f11ce45c9a (diff) |
MLK-23840-1 ASoC: fsl_xcvr: remove fsl,xcvr-mode from DTS
XCVR driver working mode is set by "fsl,xcvr-mode" DTS
property. Being static - it does not allow changing
XCVR driver mode at runtime. Rework the driver by replacing
static DTS property with amixer control.
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_xcvr.h')
-rw-r--r-- | sound/soc/fsl/fsl_xcvr.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sound/soc/fsl/fsl_xcvr.h b/sound/soc/fsl/fsl_xcvr.h index ed7dd87c234a..162dc26bec9d 100644 --- a/sound/soc/fsl/fsl_xcvr.h +++ b/sound/soc/fsl/fsl_xcvr.h @@ -8,15 +8,9 @@ #ifndef __FSL_XCVR_H #define __FSL_XCVR_H -#define FSL_XCVR_AMODE_SPDIF (0x00 << 2) -#define FSL_XCVR_AMODE_ARC (0x01 << 2) -#define FSL_XCVR_AMODE_EARC (0x02 << 2) -#define FSL_XCVR_AMODE_RESERVED (0x03 << 2) -#define FSL_XCVR_AMODE_MASK GENMASK(3, 2) - -#define FSL_XCVR_DMODE_TX BIT(0) -#define FSL_XCVR_DMODE_RX BIT(1) -#define FSL_XCVR_DMODE_MASK GENMASK(1, 0) +#define FSL_XCVR_MODE_SPDIF 0 +#define FSL_XCVR_MODE_ARC 1 +#define FSL_XCVR_MODE_EARC 2 /* XCVR Registers */ #define FSL_XCVR_REG_OFFSET 0x800 /* regs offset */ |