[ARM] tegra: add mach header to configure cpcap-audio
authorIliyan Malchev <malchev@google.com>
Fri, 30 Jul 2010 19:50:23 +0000 (12:50 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:33:28 +0000 (16:33 -0700)
Signed-off-by: Iliyan Malchev <malchev@google.com>
arch/arm/mach-tegra/include/mach/cpcap_audio.h [new file with mode: 0644]

diff --git a/arch/arm/mach-tegra/include/mach/cpcap_audio.h b/arch/arm/mach-tegra/include/mach/cpcap_audio.h
new file mode 100644 (file)
index 0000000..1f6804d
--- /dev/null
@@ -0,0 +1,49 @@
+/*
+ * arch/arm/mach-tegra/include/mach/cpcap_audio.h
+ *
+ * Copyright (C) 2010 Google, Inc.
+ *
+ * Author:
+ *     Iliyan Malchev <malchev@google.com>
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#ifndef __ARCH_ARM_MACH_TEGRA_CPCAP_AUDIO_H_
+#define __ARCH_ARM_MACH_TEGRA_CPCAP_AUDIO_H_
+
+#include <linux/kernel.h>
+#include <linux/types.h>
+#include <linux/platform_device.h>
+
+struct cpcap_audio_config_table {
+       int reg;
+       int val;
+       int mask;
+       int slave_or;
+};
+
+struct cpcap_audio_path {
+       const char *name;
+       int gpio;
+       const struct cpcap_audio_config_table *table;
+       int table_len;
+};
+
+struct cpcap_audio_platform_data {
+       bool master;
+       const struct cpcap_audio_path *speaker;
+       const struct cpcap_audio_path *headset;
+       const struct cpcap_audio_path *mic1;
+       const struct cpcap_audio_path *mic2;
+};
+
+#endif/*__ARCH_ARM_MACH_TEGRA_CPCAP_AUDIO_H_*/