30 lines · c
1/* SPDX-License-Identifier: GPL-2.0-or-later */2/*3 * DA9055 ALSA Soc codec driver4 *5 * Copyright (c) 2012 Dialog Semiconductor6 *7 * Tested on (Samsung SMDK6410 board + DA9055 EVB) using I2S and I2C8 * Written by David Chen <david.chen@diasemi.com> and9 * Ashish Chavan <ashish.chavan@kpitcummins.com>10 */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#endif30