1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Rockchip MULTI DAIS driver 4 * 5 * Copyright (C) 2018 Fuzhou Rockchip Electronics Co., Ltd 6 * 7 */ 8 9 #ifndef _ROCKCHIP_MULTI_DAIS_H 10 #define _ROCKCHIP_MULTI_DAIS_H 11 12 #define MAX_DAIS 4 13 14 struct rk_dai { 15 struct device *dev; 16 struct device_node *of_node; 17 struct snd_soc_dai *dai; 18 unsigned int fmt; 19 unsigned int fmt_msk; 20 }; 21 22 struct rk_mdais_dev { 23 struct device *dev; 24 struct rk_dai *dais; 25 unsigned int *playback_channel_maps; 26 unsigned int *capture_channel_maps; 27 int num_dais; 28 }; 29 30 int snd_dmaengine_mpcm_register(struct rk_mdais_dev *mdais); 31 void snd_dmaengine_mpcm_unregister(struct device *dev); 32 33 #endif 34