1 /* SPDX-License-Identifier: GPL-2.0-or-later * << 2 /* 1 /* 3 * Analog Devices ADAU1373 Audio Codec drive 2 * Analog Devices ADAU1373 Audio Codec drive 4 * 3 * 5 * Copyright 2011 Analog Devices Inc. 4 * Copyright 2011 Analog Devices Inc. 6 * Author: Lars-Peter Clausen <lars@metafoo.de 5 * Author: Lars-Peter Clausen <lars@metafoo.de> >> 6 * >> 7 * Licensed under the GPL-2 or later. 7 */ 8 */ 8 9 9 #ifndef __SOUND_ADAU1373_H__ 10 #ifndef __SOUND_ADAU1373_H__ 10 #define __SOUND_ADAU1373_H__ 11 #define __SOUND_ADAU1373_H__ 11 12 12 enum adau1373_micbias_voltage { 13 enum adau1373_micbias_voltage { 13 ADAU1373_MICBIAS_2_9V = 0, 14 ADAU1373_MICBIAS_2_9V = 0, 14 ADAU1373_MICBIAS_2_2V = 1, 15 ADAU1373_MICBIAS_2_2V = 1, 15 ADAU1373_MICBIAS_2_6V = 2, 16 ADAU1373_MICBIAS_2_6V = 2, 16 ADAU1373_MICBIAS_1_8V = 3, 17 ADAU1373_MICBIAS_1_8V = 3, 17 }; 18 }; 18 19 19 #define ADAU1373_DRC_SIZE 13 20 #define ADAU1373_DRC_SIZE 13 20 21 21 struct adau1373_platform_data { 22 struct adau1373_platform_data { 22 bool input_differential[4]; 23 bool input_differential[4]; 23 bool lineout_differential; 24 bool lineout_differential; 24 bool lineout_ground_sense; 25 bool lineout_ground_sense; 25 26 26 unsigned int num_drc; 27 unsigned int num_drc; 27 uint8_t drc_setting[3][ADAU1373_DRC_SI 28 uint8_t drc_setting[3][ADAU1373_DRC_SIZE]; 28 29 29 enum adau1373_micbias_voltage micbias1 30 enum adau1373_micbias_voltage micbias1; 30 enum adau1373_micbias_voltage micbias2 31 enum adau1373_micbias_voltage micbias2; 31 }; 32 }; 32 33 33 #endif 34 #endif 34 35
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.