Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  *  Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com
0004  *  Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
0005  */
0006 
0007 #ifndef __SDMA_PCM_H__
0008 #define __SDMA_PCM_H__
0009 
0010 #if IS_ENABLED(CONFIG_SND_SOC_TI_SDMA_PCM)
0011 int sdma_pcm_platform_register(struct device *dev,
0012                    char *txdmachan, char *rxdmachan);
0013 #else
0014 static inline int sdma_pcm_platform_register(struct device *dev,
0015                          char *txdmachan, char *rxdmachan)
0016 {
0017     return -ENODEV;
0018 }
0019 #endif /* CONFIG_SND_SOC_TI_SDMA_PCM */
0020 
0021 #endif /* __SDMA_PCM_H__ */