Commit a603c8ee authored by Xiubo Li's avatar Xiubo Li Committed by Mark Brown

ASoC: fsl-esai: Add .xlate_tdm_slot_mask() support.

This patch add .xlate_tdm_slot_mask support for ESAI, and this will
generate the TDM slot TX and RX masks.
Signed-off-by: default avatarXiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 82535314
...@@ -13,6 +13,7 @@ config SND_SOC_FSL_SPDIF ...@@ -13,6 +13,7 @@ config SND_SOC_FSL_SPDIF
config SND_SOC_FSL_ESAI config SND_SOC_FSL_ESAI
tristate tristate
select REGMAP_MMIO select REGMAP_MMIO
select SND_SOC_FSL_UTILS
config SND_SOC_FSL_UTILS config SND_SOC_FSL_UTILS
tristate tristate
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include "fsl_esai.h" #include "fsl_esai.h"
#include "imx-pcm.h" #include "imx-pcm.h"
#include "fsl_utils.h"
#define FSL_ESAI_RATES SNDRV_PCM_RATE_8000_192000 #define FSL_ESAI_RATES SNDRV_PCM_RATE_8000_192000
#define FSL_ESAI_FORMATS (SNDRV_PCM_FMTBIT_S8 | \ #define FSL_ESAI_FORMATS (SNDRV_PCM_FMTBIT_S8 | \
...@@ -581,6 +582,7 @@ static struct snd_soc_dai_ops fsl_esai_dai_ops = { ...@@ -581,6 +582,7 @@ static struct snd_soc_dai_ops fsl_esai_dai_ops = {
.hw_params = fsl_esai_hw_params, .hw_params = fsl_esai_hw_params,
.set_sysclk = fsl_esai_set_dai_sysclk, .set_sysclk = fsl_esai_set_dai_sysclk,
.set_fmt = fsl_esai_set_dai_fmt, .set_fmt = fsl_esai_set_dai_fmt,
.xlate_tdm_slot_mask = fsl_asoc_xlate_tdm_slot_mask,
.set_tdm_slot = fsl_esai_set_dai_tdm_slot, .set_tdm_slot = fsl_esai_set_dai_tdm_slot,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment