blob: b0957744851cef44ce3bc46166c473447a22992f [file] [log] [blame]
Peter Ujfalusi58726f52014-03-14 16:42:45 +02001/*
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 Ujfalusie8fface2014-07-16 15:12:03 +030023#if IS_ENABLED(CONFIG_SND_EDMA_SOC)
Peter Ujfalusi58726f52014-03-14 16:42:45 +020024int edma_pcm_platform_register(struct device *dev);
Peter Ujfalusie8fface2014-07-16 15:12:03 +030025#else
26static inline int edma_pcm_platform_register(struct device *dev)
27{
28 return 0;
29}
30#endif /* CONFIG_SND_EDMA_SOC */
Peter Ujfalusi58726f52014-03-14 16:42:45 +020031
32#endif /* __EDMA_PCM_H__ */