1*2874c5fdSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 29911f7f7SAshish Chavan /* 39911f7f7SAshish Chavan * DA9055 ALSA Soc codec driver 49911f7f7SAshish Chavan * 59911f7f7SAshish Chavan * Copyright (c) 2012 Dialog Semiconductor 69911f7f7SAshish Chavan * 79911f7f7SAshish Chavan * Tested on (Samsung SMDK6410 board + DA9055 EVB) using I2S and I2C 89911f7f7SAshish Chavan * Written by David Chen <david.chen@diasemi.com> and 99911f7f7SAshish Chavan * Ashish Chavan <ashish.chavan@kpitcummins.com> 109911f7f7SAshish Chavan */ 119911f7f7SAshish Chavan 129911f7f7SAshish Chavan #ifndef __SOUND_DA9055_H__ 139911f7f7SAshish Chavan #define __SOUND_DA9055_H__ 149911f7f7SAshish Chavan 159911f7f7SAshish Chavan enum da9055_micbias_voltage { 169911f7f7SAshish Chavan DA9055_MICBIAS_1_6V = 0, 179911f7f7SAshish Chavan DA9055_MICBIAS_1_8V = 1, 189911f7f7SAshish Chavan DA9055_MICBIAS_2_1V = 2, 199911f7f7SAshish Chavan DA9055_MICBIAS_2_2V = 3, 209911f7f7SAshish Chavan }; 219911f7f7SAshish Chavan 229911f7f7SAshish Chavan struct da9055_platform_data { 239911f7f7SAshish Chavan /* Selects which of the two MicBias pins acts as the bias source */ 249911f7f7SAshish Chavan bool micbias_source; 259911f7f7SAshish Chavan /* Selects the micbias voltage */ 269911f7f7SAshish Chavan enum da9055_micbias_voltage micbias; 279911f7f7SAshish Chavan }; 289911f7f7SAshish Chavan 299911f7f7SAshish Chavan #endif 30