mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-28 05:24:47 +08:00
82535314a9
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>
29 lines
782 B
C
29 lines
782 B
C
/**
|
|
* Freescale ALSA SoC Machine driver utility
|
|
*
|
|
* Author: Timur Tabi <timur@freescale.com>
|
|
*
|
|
* Copyright 2010 Freescale Semiconductor, Inc.
|
|
*
|
|
* This file is licensed under the terms of the GNU General Public License
|
|
* version 2. This program is licensed "as is" without any warranty of any
|
|
* kind, whether express or implied.
|
|
*/
|
|
|
|
#ifndef _FSL_UTILS_H
|
|
#define _FSL_UTILS_H
|
|
|
|
#define DAI_NAME_SIZE 32
|
|
|
|
struct snd_soc_dai_link;
|
|
struct device_node;
|
|
|
|
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 */
|