18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Freescale ALSA SoC Machine driver utility 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Author: Timur Tabi <timur@freescale.com> 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Copyright 2010 Freescale Semiconductor, Inc. 88c2ecf20Sopenharmony_ci */ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#ifndef _FSL_UTILS_H 118c2ecf20Sopenharmony_ci#define _FSL_UTILS_H 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#define DAI_NAME_SIZE 32 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_cistruct snd_soc_dai_link; 168c2ecf20Sopenharmony_cistruct device_node; 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciint fsl_asoc_get_dma_channel(struct device_node *ssi_np, const char *name, 198c2ecf20Sopenharmony_ci struct snd_soc_dai_link *dai, 208c2ecf20Sopenharmony_ci unsigned int *dma_channel_id, 218c2ecf20Sopenharmony_ci unsigned int *dma_id); 228c2ecf20Sopenharmony_ci#endif /* _FSL_UTILS_H */ 23