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