ASoC: fsl: create fsl_utils to accommodate the common functions
[deliverable/linux.git] / sound / soc / fsl / fsl_utils.h
CommitLineData
60aae8da
SG
1/**
2 * Freescale ALSA SoC Machine driver utility
3 *
4 * Author: Timur Tabi <timur@freescale.com>
5 *
6 * Copyright 2010 Freescale Semiconductor, Inc.
7 *
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.
11 */
12
13#ifndef _FSL_UTILS_H
14#define _FSL_UTILS_H
15
16#define DAI_NAME_SIZE 32
17
18struct snd_soc_dai_link;
19struct device_node;
20
21int fsl_asoc_get_codec_dev_name(struct device_node *np, char *buf, size_t len);
22int fsl_asoc_get_dma_channel(struct device_node *ssi_np, const char *name,
23 struct snd_soc_dai_link *dai,
24 unsigned int *dma_channel_id,
25 unsigned int *dma_id);
26
27#endif /* _FSL_UTILS_H */
This page took 0.026759 seconds and 5 git commands to generate.