Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * linux/sound/cs35l36.h -- Platform data for CS35L36
0004  *
0005  * Copyright 2018 Cirrus Logic, Inc.
0006  *
0007  * Author: James Schulman <james.schulman@cirrus.com>
0008  *
0009  */
0010 
0011 #ifndef __CS35L36_H
0012 #define __CS35L36_H
0013 
0014 struct cs35l36_vpbr_cfg {
0015     bool is_present;
0016     bool vpbr_en;
0017     int vpbr_thld;
0018     int vpbr_atk_rate;
0019     int vpbr_atk_vol;
0020     int vpbr_max_attn;
0021     int vpbr_wait;
0022     int vpbr_rel_rate;
0023     int vpbr_mute_en;
0024 };
0025 
0026 struct cs35l36_platform_data {
0027     bool multi_amp_mode;
0028     bool dcm_mode;
0029     bool amp_pcm_inv;
0030     bool imon_pol_inv;
0031     bool vmon_pol_inv;
0032     int boost_ind;
0033     int bst_vctl;
0034     int bst_vctl_sel;
0035     int bst_ipk;
0036     bool extern_boost;
0037     int temp_warn_thld;
0038     int irq_drv_sel;
0039     int irq_gpio_sel;
0040     struct cs35l36_vpbr_cfg vpbr_config;
0041 };
0042 
0043 #endif /* __CS35L36_H */