xref: /linux/include/sound/sdca_hid.h (revision 177bf8620cf4ed290ee170a6c5966adc0924b336)
1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
2 /*
3  * The MIPI SDCA specification is available for public downloads at
4  * https://www.mipi.org/mipi-sdca-v1-0-download
5  *
6  */
7 
8 #ifndef __SDCA_HID_H__
9 #define __SDCA_HID_H__
10 
11 #include <linux/types.h>
12 #include <linux/hid.h>
13 
14 #if IS_ENABLED(CONFIG_SND_SOC_SDCA_HID)
15 int sdca_add_hid_device(struct device *dev, struct sdca_entity *entity);
16 
17 #else
sdca_add_hid_device(struct device * dev,struct sdca_entity * entity)18 static inline int sdca_add_hid_device(struct device *dev, struct sdca_entity *entity)
19 {
20 	return 0;
21 }
22 
23 #endif
24 
25 #endif /* __SDCA_HID_H__ */
26