diff options
author | Viorel Suman <viorel.suman@nxp.com> | 2018-06-27 10:31:02 +0300 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:54:00 +0800 |
commit | 4bc2390d9355dc1a127df2b03cd8241d92feba9b (patch) | |
tree | de4131ccedb1fc9657e4259099a1c82c38c292f6 /sound/soc/fsl/fsl_sai.h | |
parent | 06131f164d73f623ce745023bf9207f1690556c0 (diff) |
MLK-18682-1: ASoC: fsl: sai: use set_bclk_ratio to calculate BCLK freq (part 1)
ALSA API has a standard way to configure DAI BCLK by calling
"snd_soc_dai_set_bclk_ratio" function. So use it to set BCLK ratio
and calculate SAI BCLK frequency.
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
[ Aisheng: split machine imx-pdm changes ]
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_sai.h')
-rw-r--r-- | sound/soc/fsl/fsl_sai.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/fsl/fsl_sai.h b/sound/soc/fsl/fsl_sai.h index d5f8383b5824..cb575a2a2501 100644 --- a/sound/soc/fsl/fsl_sai.h +++ b/sound/soc/fsl/fsl_sai.h @@ -203,7 +203,6 @@ #define FSL_SAI_CLK_MAST3 3 #define FSL_SAI_MCLK_MAX 4 -#define FSL_SAI_CLK_BIT 5 /* SAI data transfer numbers per DMA request */ #define FSL_SAI_MAXBURST_TX 6 @@ -258,7 +257,7 @@ struct fsl_sai { unsigned int mclk_streams; unsigned int slots; unsigned int slot_width; - unsigned int bitclk_freq; + unsigned int bitclk_ratio; struct snd_dmaengine_dai_dma_data dma_params_rx; struct snd_dmaengine_dai_dma_data dma_params_tx; |