mirror of
https://github.com/torvalds/linux
synced 2024-09-06 18:01:05 +00:00
![Mark Brown](/assets/img/avatar_default.png)
Add the widget for MICBIAS power control and allow configuration of the microphone bias setup via the platform data for the WM8962. When microphone status signals are brought out to GPIO this should be sufficient to enable microphone detection. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
32 lines
787 B
C
32 lines
787 B
C
/*
|
|
* wm8962.h -- WM8962 Soc Audio driver platform data
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef _WM8962_PDATA_H
|
|
#define _WM8962_PDATA_H
|
|
|
|
#define WM8962_MAX_GPIO 6
|
|
|
|
/* Use to set GPIO default values to zero */
|
|
#define WM8962_GPIO_SET 0x10000
|
|
|
|
struct wm8962_pdata {
|
|
u32 gpio_init[WM8962_MAX_GPIO];
|
|
|
|
/* Setup for microphone detection, raw value to be written to
|
|
* R48(0x30) - only microphone related bits will be updated.
|
|
* Detection may be enabled here for use with signals brought
|
|
* out on the GPIOs. */
|
|
u32 mic_cfg;
|
|
|
|
bool irq_active_low;
|
|
|
|
bool spk_mono; /* Speaker outputs tied together as mono */
|
|
};
|
|
|
|
#endif
|