blob: 5c9a3c23ef0382ea6296de7dbab011afb08a4dfb [file] [log] [blame]
Thomas Gleixner2874c5f2019-05-27 08:55:01 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Ashish Chavan9911f7f2012-09-21 20:16:17 +05302/*
3 * DA9055 ALSA Soc codec driver
4 *
5 * Copyright (c) 2012 Dialog Semiconductor
6 *
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>
Ashish Chavan9911f7f2012-09-21 20:16:17 +053010 */
11
12#ifndef __SOUND_DA9055_H__
13#define __SOUND_DA9055_H__
14
15enum 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,
20};
21
22struct da9055_platform_data {
23 /* Selects which of the two MicBias pins acts as the bias source */
24 bool micbias_source;
25 /* Selects the micbias voltage */
26 enum da9055_micbias_voltage micbias;
27};
28
29#endif