Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Platform data for MAX98088
0004  *
0005  * Copyright 2010 Maxim Integrated Products
0006  */
0007 
0008 #ifndef __SOUND_MAX98088_PDATA_H__
0009 #define __SOUND_MAX98088_PDATA_H__
0010 
0011 /* Equalizer filter response configuration */
0012 struct max98088_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 /* codec platform data */
0023 struct max98088_pdata {
0024 
0025        /* Equalizers for DAI1 and DAI2 */
0026        struct max98088_eq_cfg *eq_cfg;
0027        unsigned int eq_cfgcnt;
0028 
0029        /* Receiver output can be configured as power amplifier or LINE out */
0030        /* Set receiver_mode to:
0031         * 0 = amplifier output, or
0032         * 1 = LINE level output
0033         */
0034        unsigned int receiver_mode:1;
0035 
0036        /* Analog/digital microphone configuration:
0037         * 0 = analog microphone input (normal setting)
0038         * 1 = digital microphone input
0039         */
0040        unsigned int digmic_left_mode:1;
0041        unsigned int digmic_right_mode:1;
0042 
0043 };
0044 
0045 #endif