Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Platform data for MAX98095
0004  *
0005  * Copyright 2011 Maxim Integrated Products
0006  */
0007 
0008 #ifndef __SOUND_MAX98095_PDATA_H__
0009 #define __SOUND_MAX98095_PDATA_H__
0010 
0011 /* Equalizer filter response configuration */
0012 struct max98095_eq_cfg {
0013     const char *name;
0014     unsigned int rate;
0015     u16 band1[5];
0016     u16 band2[5];
0017     u16 band3[5];
0018     u16 band4[5];
0019     u16 band5[5];
0020 };
0021 
0022 /* Biquad filter response configuration */
0023 struct max98095_biquad_cfg {
0024     const char *name;
0025     unsigned int rate;
0026     u16 band1[5];
0027     u16 band2[5];
0028 };
0029 
0030 /* codec platform data */
0031 struct max98095_pdata {
0032 
0033     /* Equalizers for DAI1 and DAI2 */
0034     struct max98095_eq_cfg *eq_cfg;
0035     unsigned int eq_cfgcnt;
0036 
0037     /* Biquad filter for DAI1 and DAI2 */
0038     struct max98095_biquad_cfg *bq_cfg;
0039     unsigned int bq_cfgcnt;
0040 
0041     /* Analog/digital microphone configuration:
0042      * 0 = analog microphone input (normal setting)
0043      * 1 = digital microphone input
0044      */
0045     unsigned int digmic_left_mode:1;
0046     unsigned int digmic_right_mode:1;
0047 
0048     /* Pin5 is the mechanical method of sensing jack insertion
0049      * but it is something that might not be supported.
0050      * 0 = PIN5 not supported
0051      * 1 = PIN5 supported
0052      */
0053     unsigned int jack_detect_pin5en:1;
0054 
0055     /* Slew amount for jack detection. Calculated as 4 * (delay + 1).
0056      * Default delay is 24 to get a time of 100ms.
0057      */
0058     unsigned int jack_detect_delay;
0059 };
0060 
0061 #endif