Commit 5f9e6ff6 authored by Xiubo Li's avatar Xiubo Li Committed by Mark Brown

ASoC: imx-ssi: Add .xlate_tdm_slot_mask() support.

This patch add .xlate_tdm_slot_mask support for IMX SSI, 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 a603c8ee
...@@ -121,6 +121,7 @@ if SND_IMX_SOC ...@@ -121,6 +121,7 @@ if SND_IMX_SOC
config SND_SOC_IMX_SSI config SND_SOC_IMX_SSI
tristate tristate
select SND_SOC_FSL_UTILS
config SND_SOC_IMX_PCM_FIQ config SND_SOC_IMX_PCM_FIQ
tristate tristate
......
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
#include <linux/platform_data/asoc-imx-ssi.h> #include <linux/platform_data/asoc-imx-ssi.h>
#include "imx-ssi.h" #include "imx-ssi.h"
#include "fsl_utils.h"
#define SSI_SACNT_DEFAULT (SSI_SACNT_AC97EN | SSI_SACNT_FV) #define SSI_SACNT_DEFAULT (SSI_SACNT_AC97EN | SSI_SACNT_FV)
...@@ -339,6 +340,7 @@ static const struct snd_soc_dai_ops imx_ssi_pcm_dai_ops = { ...@@ -339,6 +340,7 @@ static const struct snd_soc_dai_ops imx_ssi_pcm_dai_ops = {
.set_fmt = imx_ssi_set_dai_fmt, .set_fmt = imx_ssi_set_dai_fmt,
.set_clkdiv = imx_ssi_set_dai_clkdiv, .set_clkdiv = imx_ssi_set_dai_clkdiv,
.set_sysclk = imx_ssi_set_dai_sysclk, .set_sysclk = imx_ssi_set_dai_sysclk,
.xlate_tdm_slot_mask = fsl_asoc_xlate_tdm_slot_mask,
.set_tdm_slot = imx_ssi_set_dai_tdm_slot, .set_tdm_slot = imx_ssi_set_dai_tdm_slot,
.trigger = imx_ssi_trigger, .trigger = imx_ssi_trigger,
}; };
......
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