Commit | Line | Data |
---|---|---|
58726f58 PU |
1 | /* |
2 | * edma-pcm.h - eDMA PCM driver using dmaengine for AM3xxx, AM4xxx | |
3 | * | |
4 | * Copyright (C) 2014 Texas Instruments, Inc. | |
5 | * | |
6 | * Author: Peter Ujfalusi <peter.ujfalusi@ti.com> | |
7 | * | |
8 | * Based on: sound/soc/tegra/tegra_pcm.h | |
9 | * | |
10 | * This program is free software; you can redistribute it and/or | |
11 | * modify it under the terms of the GNU General Public License | |
12 | * version 2 as published by the Free Software Foundation. | |
13 | * | |
14 | * This program is distributed in the hope that it will be useful, but | |
15 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
17 | * General Public License for more details. | |
18 | */ | |
19 | ||
20 | #ifndef __EDMA_PCM_H__ | |
21 | #define __EDMA_PCM_H__ | |
22 | ||
e8ffacee | 23 | #if IS_ENABLED(CONFIG_SND_EDMA_SOC) |
58726f58 | 24 | int edma_pcm_platform_register(struct device *dev); |
e8ffacee PU |
25 | #else |
26 | static inline int edma_pcm_platform_register(struct device *dev) | |
27 | { | |
28 | return 0; | |
29 | } | |
30 | #endif /* CONFIG_SND_EDMA_SOC */ | |
58726f58 PU |
31 | |
32 | #endif /* __EDMA_PCM_H__ */ |