12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #ifndef _LINUX_SWR_WCD_H
- #define _LINUX_SWR_WCD_H
- #include <linux/module.h>
- #include <linux/platform_device.h>
- #include <linux/device.h>
- #include <linux/bitops.h>
- enum {
- SWR_CH_MAP,
- SWR_DEVICE_DOWN,
- SWR_DEVICE_UP,
- SWR_SUBSYS_RESTART,
- SWR_SET_NUM_RX_CH,
- };
- struct swr_mstr_port {
- int num_port;
- u8 *port;
- };
- #if (IS_ENABLED(CONFIG_SOUNDWIRE_WCD_CTRL) || \
- IS_ENABLED(CONFIG_SOUNDWIRE_MSTR_CTRL))
- extern int swrm_wcd_notify(struct platform_device *pdev, u32 id, void *data);
- #else
- static inline int swrm_wcd_notify(struct platform_device *pdev, u32 id,
- void *data)
- {
- return 0;
- }
- #endif
- #endif
|