Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * linux/sound/wm8993.h -- Platform data for WM8993
0004  *
0005  * Copyright 2009 Wolfson Microelectronics. PLC.
0006  */
0007 
0008 #ifndef __LINUX_SND_WM8993_H
0009 #define __LINUX_SND_WM8993_H
0010 
0011 /* Note that EQ1 only contains the enable/disable bit so will be
0012    ignored but is included for simplicity.
0013  */
0014 struct wm8993_retune_mobile_setting {
0015     const char *name;
0016     unsigned int rate;
0017     u16 config[24];
0018 };
0019 
0020 struct wm8993_platform_data {
0021     struct wm8993_retune_mobile_setting *retune_configs;
0022     int num_retune_configs;
0023 
0024     /* LINEOUT can be differential or single ended */
0025     unsigned int lineout1_diff:1;
0026     unsigned int lineout2_diff:1;
0027 
0028     /* Common mode feedback */
0029     unsigned int lineout1fb:1;
0030     unsigned int lineout2fb:1;
0031 
0032     /* Delay to add for microphones to stabalise after power up */
0033     int micbias1_delay;
0034     int micbias2_delay;
0035 
0036     /* Microphone biases: 0=0.9*AVDD1 1=0.65*AVVD1 */
0037     unsigned int micbias1_lvl:1;
0038     unsigned int micbias2_lvl:1;
0039 
0040     /* Jack detect threshold levels, see datasheet for values */
0041     unsigned int jd_scthr:2;
0042     unsigned int jd_thr:2;
0043 };
0044 
0045 #endif