ASoC: imx-ssi: Add .xlate_tdm_slot_mask() support.
authorXiubo Li <Li.Xiubo@freescale.com>
Fri, 21 Mar 2014 06:17:15 +0000 (14:17 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 25 Mar 2014 13:06:43 +0000 (13:06 +0000)
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: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/Kconfig
sound/soc/fsl/imx-ssi.c

index 789bc4dd5f4f140069eadd367045430981572a5f..338a91642471846fd424a99aa6760406a39532d6 100644 (file)
@@ -121,6 +121,7 @@ if SND_IMX_SOC
 
 config SND_SOC_IMX_SSI
        tristate
+       select SND_SOC_FSL_UTILS
 
 config SND_SOC_IMX_PCM_FIQ
        tristate
index df552fa1aa65f13faee928c63d2a8b8bf6c9eae4..ab2fdd76b693a28aacbcef5aa0edf8aded9727e5 100644 (file)
@@ -50,6 +50,7 @@
 #include <linux/platform_data/asoc-imx-ssi.h>
 
 #include "imx-ssi.h"
+#include "fsl_utils.h"
 
 #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 = {
        .set_fmt        = imx_ssi_set_dai_fmt,
        .set_clkdiv     = imx_ssi_set_dai_clkdiv,
        .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,
        .trigger        = imx_ssi_trigger,
 };