1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * edma-pcm.h - eDMA PCM driver using dmaengine for AM3xxx, AM4xxx 4 * 5 * Copyright (C) 2014 Texas Instruments, Inc. 6 * 7 * Author: Peter Ujfalusi <peter.ujfalusi@ti.com> 8 * 9 * Based on: sound/soc/tegra/tegra_pcm.h 10 */ 11 12 #ifndef __EDMA_PCM_H__ 13 #define __EDMA_PCM_H__ 14 15 #if IS_ENABLED(CONFIG_SND_SOC_TI_EDMA_PCM) 16 int edma_pcm_platform_register(struct device *dev); 17 #else 18 static inline int edma_pcm_platform_register(struct device *dev) 19 { 20 return 0; 21 } 22 #endif /* CONFIG_SND_SOC_TI_EDMA_PCM */ 23 24 #endif /* __EDMA_PCM_H__ */ 25