Files
linux-apfs/include/sound/wm8962.h
T

33 lines
803 B
C
Raw Normal View History

2010-08-05 13:20:59 +01:00
/*
* 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 {
2010-09-20 17:34:58 +01:00
int gpio_base;
2010-08-05 13:20:59 +01:00
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;
2010-09-28 16:01:20 -07:00
bool irq_active_low;
2010-08-05 13:20:59 +01:00
bool spk_mono; /* Speaker outputs tied together as mono */
};
#endif