| 1 |
|
| 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 | struct device;
|
| 12 | struct sdw_slave;
|
| 13 |
|
| 14 | struct sdca_entity;
|
| 15 | struct sdca_interrupt;
|
| 16 |
|
| 17 | #if IS_ENABLED(CONFIG_SND_SOC_SDCA_HID)
|
| 18 |
|
| 19 | int sdca_add_hid_device(struct sdca_interrupt *interrupt);
|
| 20 | void sdca_destroy_hid_device(struct sdca_interrupt *interrupt);
|
| 21 | int sdca_hid_process_report(struct sdca_interrupt *interrupt);
|
| 22 |
|
| 23 | #else
|
| 24 |
|
| 25 | static inline int sdca_add_hid_device(struct sdca_interrupt *interrupt)
|
| 26 | {
|
| 27 | return 0;
|
| 28 | }
|
| 29 |
|
| 30 | static inline void sdca_destroy_hid_device(struct sdca_interrupt *interrupt)
|
| 31 | {
|
| 32 | }
|
| 33 |
|
| 34 | static inline int sdca_hid_process_report(struct sdca_interrupt *interrupt)
|
| 35 | {
|
| 36 | return 0;
|
| 37 | }
|
| 38 |
|
| 39 | #endif
|
| 40 |
|
| 41 | #endif
|