xref: /openbmc/linux/include/sound/adau1373.h (revision 2cf1c348)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Analog Devices ADAU1373 Audio Codec drive
4  *
5  * Copyright 2011 Analog Devices Inc.
6  * Author: Lars-Peter Clausen <lars@metafoo.de>
7  */
8 
9 #ifndef __SOUND_ADAU1373_H__
10 #define __SOUND_ADAU1373_H__
11 
12 enum adau1373_micbias_voltage {
13 	ADAU1373_MICBIAS_2_9V = 0,
14 	ADAU1373_MICBIAS_2_2V = 1,
15 	ADAU1373_MICBIAS_2_6V = 2,
16 	ADAU1373_MICBIAS_1_8V = 3,
17 };
18 
19 #define ADAU1373_DRC_SIZE 13
20 
21 struct adau1373_platform_data {
22 	bool input_differential[4];
23 	bool lineout_differential;
24 	bool lineout_ground_sense;
25 
26 	unsigned int num_drc;
27 	uint8_t drc_setting[3][ADAU1373_DRC_SIZE];
28 
29 	enum adau1373_micbias_voltage micbias1;
30 	enum adau1373_micbias_voltage micbias2;
31 };
32 
33 #endif
34