xref: /OK3568_Linux_fs/kernel/include/sound/wm9090.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * linux/sound/wm9090.h -- Platform data for WM9090
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Copyright 2009, 2010 Wolfson Microelectronics. PLC.
6*4882a593Smuzhiyun  */
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun #ifndef __LINUX_SND_WM9090_H
9*4882a593Smuzhiyun #define __LINUX_SND_WM9090_H
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun struct wm9090_platform_data {
12*4882a593Smuzhiyun 	/* Line inputs 1 & 2 can optionally be differential */
13*4882a593Smuzhiyun 	unsigned int lin1_diff:1;
14*4882a593Smuzhiyun 	unsigned int lin2_diff:1;
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun 	/* AGC configuration.  This is intended to protect the speaker
17*4882a593Smuzhiyun 	 * against overdriving and will therefore depend on the
18*4882a593Smuzhiyun 	 * hardware setup with incorrect runtime configuration
19*4882a593Smuzhiyun 	 * potentially causing hardware damage.
20*4882a593Smuzhiyun 	 */
21*4882a593Smuzhiyun 	unsigned int agc_ena:1;
22*4882a593Smuzhiyun 	u16 agc[3];
23*4882a593Smuzhiyun };
24*4882a593Smuzhiyun 
25*4882a593Smuzhiyun #endif
26