From 4bc2390d9355dc1a127df2b03cd8241d92feba9b Mon Sep 17 00:00:00 2001 From: Viorel Suman Date: Wed, 27 Jun 2018 10:31:02 +0300 Subject: 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 [ Aisheng: split machine imx-pdm changes ] Signed-off-by: Dong Aisheng --- sound/soc/fsl/fsl_sai.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sound/soc/fsl/fsl_sai.h') 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; -- cgit v1.2.3