-
Notifications
You must be signed in to change notification settings - Fork 53.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ASoC: codecs: Add DA9055 codec driver
This patch adds support for Dialog semiconductor's DA9055 audio codec. This has been tested on DA9055 EVB with Samsung SMDK6410 board. Signed-off-by: Ashish Chavan <ashish.chavan@kpitcummins.com> Signed-off-by: David Dajun Chen <david.chen@diasemi.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
- Loading branch information
Showing
4 changed files
with
1,549 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* DA9055 ALSA Soc codec driver | ||
* | ||
* Copyright (c) 2012 Dialog Semiconductor | ||
* | ||
* Tested on (Samsung SMDK6410 board + DA9055 EVB) using I2S and I2C | ||
* Written by David Chen <david.chen@diasemi.com> and | ||
* Ashish Chavan <ashish.chavan@kpitcummins.com> | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the | ||
* Free Software Foundation; either version 2 of the License, or (at your | ||
* option) any later version. | ||
*/ | ||
|
||
#ifndef __SOUND_DA9055_H__ | ||
#define __SOUND_DA9055_H__ | ||
|
||
enum da9055_micbias_voltage { | ||
DA9055_MICBIAS_1_6V = 0, | ||
DA9055_MICBIAS_1_8V = 1, | ||
DA9055_MICBIAS_2_1V = 2, | ||
DA9055_MICBIAS_2_2V = 3, | ||
}; | ||
|
||
struct da9055_platform_data { | ||
/* Selects which of the two MicBias pins acts as the bias source */ | ||
bool micbias_source; | ||
/* Selects the micbias voltage */ | ||
enum da9055_micbias_voltage micbias; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.