Loading...
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * linux/sound/cs35l34.h -- Platform data for CS35l34
4 *
5 * Copyright (c) 2016 Cirrus Logic Inc.
6 */
7
8#ifndef __CS35L34_H
9#define __CS35L34_H
10
11struct cs35l34_platform_data {
12 /* Set AIF to half drive strength */
13 bool aif_half_drv;
14 /* Digital Soft Ramp Disable */
15 bool digsft_disable;
16 /* Amplifier Invert */
17 bool amp_inv;
18 /* Peak current (mA) */
19 unsigned int boost_peak;
20 /* Boost inductor value (nH) */
21 unsigned int boost_ind;
22 /* Boost Controller Voltage Setting (mV) */
23 unsigned int boost_vtge;
24 /* Gain Change Zero Cross */
25 bool gain_zc_disable;
26 /* SDIN Left/Right Selection */
27 unsigned int i2s_sdinloc;
28 /* TDM Rising Edge */
29 bool tdm_rising_edge;
30};
31
32#endif /* __CS35L34_H */
1/*
2 * linux/sound/cs35l34.h -- Platform data for CS35l34
3 *
4 * Copyright (c) 2016 Cirrus Logic Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
11#ifndef __CS35L34_H
12#define __CS35L34_H
13
14struct cs35l34_platform_data {
15 /* Set AIF to half drive strength */
16 bool aif_half_drv;
17 /* Digital Soft Ramp Disable */
18 bool digsft_disable;
19 /* Amplifier Invert */
20 bool amp_inv;
21 /* Peak current (mA) */
22 unsigned int boost_peak;
23 /* Boost inductor value (nH) */
24 unsigned int boost_ind;
25 /* Boost Controller Voltage Setting (mV) */
26 unsigned int boost_vtge;
27 /* Gain Change Zero Cross */
28 bool gain_zc_disable;
29 /* SDIN Left/Right Selection */
30 unsigned int i2s_sdinloc;
31 /* TDM Rising Edge */
32 bool tdm_rising_edge;
33};
34
35#endif /* __CS35L34_H */