summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViorel Suman <viorel.suman@nxp.com>2020-03-06 10:45:47 +0200
committerViorel Suman <viorel.suman@nxp.com>2020-03-10 11:08:35 +0200
commite40f7a6b1aed3f59a115cac6eb8b9768792cbece (patch)
tree2be1691375c58352848900db2ae4b06ae1d3c753
parent80aaafd873ba95ed2b5ff13a2d55ba289efe2b8a (diff)
MLK-23567-2: ASoC: fsl_xcvr: use same format for both RX and TX
The only supported XCVR format is IEC958_SUBFRAME_LE, so use it for both RX and TX. Signed-off-by: Viorel Suman <viorel.suman@nxp.com> Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
-rw-r--r--sound/soc/fsl/fsl_xcvr.c2
-rw-r--r--sound/soc/fsl/fsl_xcvr.h6
2 files changed, 2 insertions, 6 deletions
diff --git a/sound/soc/fsl/fsl_xcvr.c b/sound/soc/fsl/fsl_xcvr.c
index 50cdd80dcc0f..c20d6fe6db69 100644
--- a/sound/soc/fsl/fsl_xcvr.c
+++ b/sound/soc/fsl/fsl_xcvr.c
@@ -585,7 +585,7 @@ static const struct snd_soc_pcm_stream capture = {
.rate_min = 32000,
.rate_max = 1536000,
.rates = SNDRV_PCM_RATE_KNOT,
- .formats = FSL_XCVR_FORMATS_RX,
+ .formats = FSL_XCVR_FORMATS,
};
static struct snd_soc_dai_driver fsl_xcvr_dai = {
diff --git a/sound/soc/fsl/fsl_xcvr.h b/sound/soc/fsl/fsl_xcvr.h
index f70d751a9709..6751db093fe9 100644
--- a/sound/soc/fsl/fsl_xcvr.h
+++ b/sound/soc/fsl/fsl_xcvr.h
@@ -8,11 +8,7 @@
#ifndef __FSL_XCVR_H
#define __FSL_XCVR_H
-#define FSL_XCVR_FORMATS (SNDRV_PCM_FMTBIT_S16_LE |\
- SNDRV_PCM_FMTBIT_S24_LE |\
- SNDRV_PCM_FMTBIT_S32_LE)
-
-#define FSL_XCVR_FORMATS_RX (SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE)
+#define FSL_XCVR_FORMATS (SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE)
#define FSL_XCVR_AMODE_SPDIF (0x00 << 2)