xref: /openbmc/linux/include/sound/wm9090.h (revision 39b8eab7e7fe429d8d57f18c0ebdb7c25df55f5c)
1*39b8eab7SMark Brown /*
2*39b8eab7SMark Brown  * linux/sound/wm9090.h -- Platform data for WM9090
3*39b8eab7SMark Brown  *
4*39b8eab7SMark Brown  * Copyright 2009, 2010 Wolfson Microelectronics. PLC.
5*39b8eab7SMark Brown  *
6*39b8eab7SMark Brown  * This program is free software; you can redistribute it and/or modify
7*39b8eab7SMark Brown  * it under the terms of the GNU General Public License version 2 as
8*39b8eab7SMark Brown  * published by the Free Software Foundation.
9*39b8eab7SMark Brown  */
10*39b8eab7SMark Brown 
11*39b8eab7SMark Brown #ifndef __LINUX_SND_WM9090_H
12*39b8eab7SMark Brown #define __LINUX_SND_WM9090_H
13*39b8eab7SMark Brown 
14*39b8eab7SMark Brown struct wm9090_platform_data {
15*39b8eab7SMark Brown 	/* Line inputs 1 & 2 can optionally be differential */
16*39b8eab7SMark Brown 	unsigned int lin1_diff:1;
17*39b8eab7SMark Brown 	unsigned int lin2_diff:1;
18*39b8eab7SMark Brown 
19*39b8eab7SMark Brown 	/* AGC configuration.  This is intended to protect the speaker
20*39b8eab7SMark Brown 	 * against overdriving and will therefore depend on the
21*39b8eab7SMark Brown 	 * hardware setup with incorrect runtime configuration
22*39b8eab7SMark Brown 	 * potentially causing hardware damage.
23*39b8eab7SMark Brown 	 */
24*39b8eab7SMark Brown 	unsigned int agc_ena:1;
25*39b8eab7SMark Brown 	u16 agc[3];
26*39b8eab7SMark Brown };
27*39b8eab7SMark Brown 
28*39b8eab7SMark Brown #endif
29