summaryrefslogtreecommitdiff
path: root/include/sound/adau1373.h
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2011-08-15 20:15:22 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-08-17 00:53:54 +0900
commitddd7a26094c93a950f4b2e6b4d5865c93976372e (patch)
treebbeb669c4084483a48c66423e85cbf98e4e6d648 /include/sound/adau1373.h
parentf0b182b003e22320efac5a33cacc460e0079c135 (diff)
ASoC: Add ADAU1373 codec support
This patch adds support for the Analog Devices ADAU1373 audio codec. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound/adau1373.h')
-rw-r--r--include/sound/adau1373.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/sound/adau1373.h b/include/sound/adau1373.h
new file mode 100644
index 000000000000..1b19c7666574
--- /dev/null
+++ b/include/sound/adau1373.h
@@ -0,0 +1,34 @@
+/*
+ * Analog Devices ADAU1373 Audio Codec drive
+ *
+ * Copyright 2011 Analog Devices Inc.
+ * Author: Lars-Peter Clausen <lars@metafoo.de>
+ *
+ * Licensed under the GPL-2 or later.
+ */
+
+#ifndef __SOUND_ADAU1373_H__
+#define __SOUND_ADAU1373_H__
+
+enum adau1373_micbias_voltage {
+ ADAU1373_MICBIAS_2_9V = 0,
+ ADAU1373_MICBIAS_2_2V = 1,
+ ADAU1373_MICBIAS_2_6V = 2,
+ ADAU1373_MICBIAS_1_8V = 3,
+};
+
+#define ADAU1373_DRC_SIZE 13
+
+struct adau1373_platform_data {
+ bool input_differential[4];
+ bool lineout_differential;
+ bool lineout_ground_sense;
+
+ unsigned int num_drc;
+ uint8_t drc_setting[3][ADAU1373_DRC_SIZE];
+
+ enum adau1373_micbias_voltage micbias1;
+ enum adau1373_micbias_voltage micbias2;
+};
+
+#endif