Currently sof doesn't support acpi leds with mute switches. So implement acpi leds following quite shamelessly existing HDA implementation by Takashi Iwai. Mute leds can be enabled in topology by adding led and direction token in switch control private data.
Showing the changes to include/uapi/sound/sof (1 of 4 files). Show all
Unified · Split
| @@ -113,4 +113,8 @@ · 112 unmodified lines | ||
| 113 | 113 | /* ESAI */ |
| 114 | 114 | #define SOF_TKN_IMX_ESAI_MCLK_ID 1100 |
| 115 | 115 | |
| 116 | +/* Led control for mute switches */ | |
| 117 | +#define SOF_TKN_MUTE_LED_USE 1300 | |
| 118 | +#define SOF_TKN_MUTE_LED_DIRECTION 1301 | |
| 119 | + | |
| 116 | 120 | #endif |