Merge tag 'locks-v3.16-2' of git://git.samba.org/jlayton/linux
[linux/fpc-iii.git] / sound / soc / fsl / fsl_utils.h
blobdf535db40313e61ae25d6e46ba68a149c5e62346
1 /**
2 * Freescale ALSA SoC Machine driver utility
4 * Author: Timur Tabi <timur@freescale.com>
6 * Copyright 2010 Freescale Semiconductor, Inc.
8 * This file is licensed under the terms of the GNU General Public License
9 * version 2. This program is licensed "as is" without any warranty of any
10 * kind, whether express or implied.
13 #ifndef _FSL_UTILS_H
14 #define _FSL_UTILS_H
16 #define DAI_NAME_SIZE 32
18 struct snd_soc_dai_link;
19 struct device_node;
21 int fsl_asoc_get_dma_channel(struct device_node *ssi_np, const char *name,
22 struct snd_soc_dai_link *dai,
23 unsigned int *dma_channel_id,
24 unsigned int *dma_id);
25 int fsl_asoc_xlate_tdm_slot_mask(unsigned int slots,
26 unsigned int *tx_mask,
27 unsigned int *rx_mask);
28 #endif /* _FSL_UTILS_H */