Peter Ujfalusi | 58726f5 | 2014-03-14 16:42:45 +0200 | [diff] [blame] | 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 | |
Peter Ujfalusi | e8fface | 2014-07-16 15:12:03 +0300 | [diff] [blame] | 23 | #if IS_ENABLED(CONFIG_SND_EDMA_SOC) |
Peter Ujfalusi | 58726f5 | 2014-03-14 16:42:45 +0200 | [diff] [blame] | 24 | int edma_pcm_platform_register(struct device *dev); |
Peter Ujfalusi | e8fface | 2014-07-16 15:12:03 +0300 | [diff] [blame] | 25 | #else |
| 26 | static inline int edma_pcm_platform_register(struct device *dev) |
| 27 | { |
| 28 | return 0; |
| 29 | } |
| 30 | #endif /* CONFIG_SND_EDMA_SOC */ |
Peter Ujfalusi | 58726f5 | 2014-03-14 16:42:45 +0200 | [diff] [blame] | 31 | |
| 32 | #endif /* __EDMA_PCM_H__ */ |