summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_utils.h
diff options
context:
space:
mode:
authorXiubo Li <Li.Xiubo@freescale.com>2014-03-21 10:17:13 +0400
committerMark Brown <broonie@linaro.org>2014-03-25 17:06:43 +0400
commit82535314a942c1235d54a0cdbe48d38f640d56ba (patch)
treed42ca8af5eb904eadc582c853f1fb8fbcf6c3c59 /sound/soc/fsl/fsl_utils.h
parente5c2151483facbe1a67b12ec881f45ae25b54c21 (diff)
downloadlinux-82535314a942c1235d54a0cdbe48d38f640d56ba.tar.xz
ASoC: fsl-utils: Add fsl_asoc_xlate_tdm_slot_mask() support.
This patch add fsl_asoc_xlate_tdm_slot_mask() support for utils. For the some spcified DAI driver, this will be used to generate the TDM slot TX/RX mask. And the TX/RX mask will use a 0 bit for an active slot as default, and the default active bits are at the LSB of the masks. Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/fsl/fsl_utils.h')
-rw-r--r--sound/soc/fsl/fsl_utils.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_utils.h b/sound/soc/fsl/fsl_utils.h
index b2951126527c..df535db40313 100644
--- a/sound/soc/fsl/fsl_utils.h
+++ b/sound/soc/fsl/fsl_utils.h
@@ -22,5 +22,7 @@ int fsl_asoc_get_dma_channel(struct device_node *ssi_np, const char *name,
struct snd_soc_dai_link *dai,
unsigned int *dma_channel_id,
unsigned int *dma_id);
-
+int fsl_asoc_xlate_tdm_slot_mask(unsigned int slots,
+ unsigned int *tx_mask,
+ unsigned int *rx_mask);
#endif /* _FSL_UTILS_H */