1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * DA9055 ALSA Soc codec driver
5 * Copyright (c) 2012 Dialog Semiconductor
7 * Tested on (Samsung SMDK6410 board + DA9055 EVB) using I2S and I2C
8 * Written by David Chen <david.chen@diasemi.com> and
9 * Ashish Chavan <ashish.chavan@kpitcummins.com>
12 #ifndef __SOUND_DA9055_H__
13 #define __SOUND_DA9055_H__
15 enum da9055_micbias_voltage
{
16 DA9055_MICBIAS_1_6V
= 0,
17 DA9055_MICBIAS_1_8V
= 1,
18 DA9055_MICBIAS_2_1V
= 2,
19 DA9055_MICBIAS_2_2V
= 3,
22 struct da9055_platform_data
{
23 /* Selects which of the two MicBias pins acts as the bias source */
25 /* Selects the micbias voltage */
26 enum da9055_micbias_voltage micbias
;