ASoC supports keeping the audio subsysetm active over suspend in order to support use cases such as audio passthrough from a cellular modem with the main CPU suspended. Ensure that we don't power down the CODEC when this is happening by checking to see if VMID is up and skipping suspend and resume when it is. If the CODEC has suspended then it'll turn VMID off before the core suspend() gets called.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -71,6 +71,7 @@ struct wm8994 { · 70 unmodified lines | ||
| 71 | 71 | u16 irq_masks_cache[WM8994_NUM_IRQ_REGS]; |
| 72 | 72 | |
| 73 | 73 | /* Used over suspend/resume */ |
| 74 | + bool suspended; | |
| 74 | 75 | u16 ldo_regs[WM8994_NUM_LDO_REGS]; |
| 75 | 76 | u16 gpio_regs[WM8994_NUM_GPIO_REGS]; |
| 76 | 77 | |