xref: /OK3568_Linux_fs/kernel/sound/soc/rockchip/rockchip_dlp.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Rockchip DLP (Digital Loopback) driver
4  *
5  * Copyright (C) 2022 Rockchip Electronics Co., Ltd
6  * Author: Sugar Zhang <sugar.zhang@rock-chips.com>
7  *
8  */
9 
10 #ifndef _ROCKCHIP_DLP_H
11 #define _ROCKCHIP_DLP_H
12 
13 struct snd_dlp_config {
14 	int (*get_fifo_count)(struct device *dev, int stream);
15 };
16 
17 #if IS_REACHABLE(CONFIG_SND_SOC_ROCKCHIP_DLP)
18 int devm_snd_dmaengine_dlp_register(struct device *dev,
19 	const struct snd_dlp_config *config);
20 #else
devm_snd_dmaengine_dlp_register(struct device * dev,const struct snd_dlp_config * config)21 static inline int devm_snd_dmaengine_dlp_register(struct device *dev,
22 	const struct snd_dlp_config *config)
23 {
24 	return -ENOSYS;
25 }
26 #endif
27 
28 #endif
29