1*942c435bSMark Brown /* 2*942c435bSMark Brown * linux/sound/wm8993.h -- Platform data for WM8993 3*942c435bSMark Brown * 4*942c435bSMark Brown * Copyright 2009 Wolfson Microelectronics. PLC. 5*942c435bSMark Brown * 6*942c435bSMark Brown * This program is free software; you can redistribute it and/or modify 7*942c435bSMark Brown * it under the terms of the GNU General Public License version 2 as 8*942c435bSMark Brown * published by the Free Software Foundation. 9*942c435bSMark Brown */ 10*942c435bSMark Brown 11*942c435bSMark Brown #ifndef __LINUX_SND_WM8993_H 12*942c435bSMark Brown #define __LINUX_SND_WM8993_H 13*942c435bSMark Brown 14*942c435bSMark Brown /* Note that EQ1 only contains the enable/disable bit so will be 15*942c435bSMark Brown ignored but is included for simplicity. 16*942c435bSMark Brown */ 17*942c435bSMark Brown struct wm8993_retune_mobile_setting { 18*942c435bSMark Brown const char *name; 19*942c435bSMark Brown unsigned int rate; 20*942c435bSMark Brown u16 config[24]; 21*942c435bSMark Brown }; 22*942c435bSMark Brown 23*942c435bSMark Brown struct wm8993_platform_data { 24*942c435bSMark Brown struct wm8993_retune_mobile_setting *retune_configs; 25*942c435bSMark Brown int num_retune_configs; 26*942c435bSMark Brown 27*942c435bSMark Brown /* LINEOUT can be differential or single ended */ 28*942c435bSMark Brown unsigned int lineout1_diff:1; 29*942c435bSMark Brown unsigned int lineout2_diff:1; 30*942c435bSMark Brown 31*942c435bSMark Brown /* Common mode feedback */ 32*942c435bSMark Brown unsigned int lineout1fb:1; 33*942c435bSMark Brown unsigned int lineout2fb:1; 34*942c435bSMark Brown 35*942c435bSMark Brown /* Microphone biases: 0=0.9*AVDD1 1=0.65*AVVD1 */ 36*942c435bSMark Brown unsigned int micbias1_lvl:1; 37*942c435bSMark Brown unsigned int micbias2_lvl:1; 38*942c435bSMark Brown 39*942c435bSMark Brown /* Jack detect threashold levels, see datasheet for values */ 40*942c435bSMark Brown unsigned int jd_scthr:2; 41*942c435bSMark Brown unsigned int jd_thr:2; 42*942c435bSMark Brown }; 43*942c435bSMark Brown 44*942c435bSMark Brown #endif 45