summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorPhilipp Zabel <philipp.zabel@gmail.com>2009-06-15 22:18:23 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-06-15 22:54:48 +0200
commit1abd91849990ed61d6468ffa8b7fc1ae61db4b1a (patch)
tree8922b2292765450fe3022c3ddbcea1cf848b9e2e /include/sound
parentASoC: Add suspend and resume callbacks to Wolfson CODEC drivers (diff)
downloadlinux-1abd91849990ed61d6468ffa8b7fc1ae61db4b1a.tar.xz
linux-1abd91849990ed61d6468ffa8b7fc1ae61db4b1a.zip
ASoC: UDA1380: refactor device registration
This patch mostly follows commit 5998102b9095fdb7c67755812038612afea315c5 "ASoC: Refactor WM8731 device registration" to make UDA1380 use standard device instantiation. Similarly, the I2C device registration temporarily moves into the magician machine driver before it will find its final resting place in the board file. At the same time, platform specific configuration is moved to platform data and common power/reset GPIO handling moves into the codec driver. Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/uda1380.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/sound/uda1380.h b/include/sound/uda1380.h
new file mode 100644
index 000000000000..381319c7000c
--- /dev/null
+++ b/include/sound/uda1380.h
@@ -0,0 +1,22 @@
+/*
+ * UDA1380 ALSA SoC Codec driver
+ *
+ * Copyright 2009 Philipp Zabel
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef __UDA1380_H
+#define __UDA1380_H
+
+struct uda1380_platform_data {
+ int gpio_power;
+ int gpio_reset;
+ int dac_clk;
+#define UDA1380_DAC_CLK_SYSCLK 0
+#define UDA1380_DAC_CLK_WSPLL 1
+};
+
+#endif /* __UDA1380_H */