.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * at91-pcm.h - ALSA PCM interface for the Atmel AT91 SoC. |
---|
3 | 4 | * |
---|
.. | .. |
---|
15 | 16 | * Author: Nicolas Pitre |
---|
16 | 17 | * Created: Nov 30, 2004 |
---|
17 | 18 | * Copyright: (C) 2004 MontaVista Software, Inc. |
---|
18 | | - * |
---|
19 | | - * This program is free software; you can redistribute it and/or modify |
---|
20 | | - * it under the terms of the GNU General Public License as published by |
---|
21 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
22 | | - * (at your option) any later version. |
---|
23 | | - * |
---|
24 | | - * This program is distributed in the hope that it will be useful, |
---|
25 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
26 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
27 | | - * GNU General Public License for more details. |
---|
28 | | - * |
---|
29 | | - * You should have received a copy of the GNU General Public License |
---|
30 | | - * along with this program; if not, write to the Free Software |
---|
31 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
32 | 19 | */ |
---|
33 | 20 | |
---|
34 | 21 | #ifndef _ATMEL_PCM_H |
---|
.. | .. |
---|
85 | 72 | |
---|
86 | 73 | #if IS_ENABLED(CONFIG_SND_ATMEL_SOC_PDC) |
---|
87 | 74 | int atmel_pcm_pdc_platform_register(struct device *dev); |
---|
88 | | -void atmel_pcm_pdc_platform_unregister(struct device *dev); |
---|
89 | 75 | #else |
---|
90 | 76 | static inline int atmel_pcm_pdc_platform_register(struct device *dev) |
---|
91 | 77 | { |
---|
92 | 78 | return 0; |
---|
93 | 79 | } |
---|
94 | | -static inline void atmel_pcm_pdc_platform_unregister(struct device *dev) |
---|
95 | | -{ |
---|
96 | | -} |
---|
97 | 80 | #endif |
---|
98 | 81 | |
---|
99 | 82 | #if IS_ENABLED(CONFIG_SND_ATMEL_SOC_DMA) |
---|
100 | 83 | int atmel_pcm_dma_platform_register(struct device *dev); |
---|
101 | | -void atmel_pcm_dma_platform_unregister(struct device *dev); |
---|
102 | 84 | #else |
---|
103 | 85 | static inline int atmel_pcm_dma_platform_register(struct device *dev) |
---|
104 | 86 | { |
---|
105 | 87 | return 0; |
---|
106 | | -} |
---|
107 | | -static inline void atmel_pcm_dma_platform_unregister(struct device *dev) |
---|
108 | | -{ |
---|
109 | 88 | } |
---|
110 | 89 | #endif |
---|
111 | 90 | |
---|