1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Analog Devices ADAU1373 Audio Codec drive
5 * Copyright 2011 Analog Devices Inc.
6 * Author: Lars-Peter Clausen <lars@metafoo.de>
9 #ifndef __SOUND_ADAU1373_H__
10 #define __SOUND_ADAU1373_H__
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,
19 #define ADAU1373_DRC_SIZE 13
21 struct adau1373_platform_data {
22 bool input_differential[4];
23 bool lineout_differential;
24 bool lineout_ground_sense;
27 uint8_t drc_setting[3][ADAU1373_DRC_SIZE];
29 enum adau1373_micbias_voltage micbias1;
30 enum adau1373_micbias_voltage micbias2;