ASoC: Add support for WM8962 GPIO outputs
Subsystems (3)
PATCH 1/1 ASoC: Add support for WM8962 GPIO outputs
The WM8962 features five GPIOs, add support for controlling their output state via gpiolib.
Signed-off-by Mark Brown <[email protected]>
--- include/sound/wm8962.h | 1 + sound/soc/codecs/wm8962.c | 119 +++++++++++++++++++++++++++++++++++++++++++++ sound/soc/codecs/wm8962.h | 1 + 3 files changed, 121 insertions(+), 0 deletions(-)
include/sound/wm8962.h +1 -0
@@ -15,6 +15,7 @@#define WM8962_GPIO_SET 0x10000struct wm8962_pdata { +int gpio_base;u32 gpio_init[WM8962_MAX_GPIO ];/* Setup for microphone detection, raw value to be written to
sound/soc/codecs/wm8962.c +119 -0
149 lines not on this page · raw message
sound/soc/codecs/wm8962.h +1 -0
@@ -181,6 +181,7 @@#define WM8962_EQ39 0x175#define WM8962_EQ40 0x176#define WM8962_EQ41 0x177 +#define WM8962_GPIO_BASE 0x200#define WM8962_GPIO_2 0x201#define WM8962_GPIO_3 0x202#define WM8962_GPIO_5 0x204
Signature · 1 line
1.7.1
Quoted 4 lines · Mark Brown
The WM8962 features five GPIOs, add support for controlling their output state via gpiolib.
Signed-off-by Mark Brown <[email protected]>
Acked-by Liam Girdwood <[email protected]>
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk