From 5477bfe1404b7b55e3f9aa41b7577ac77093b775 Mon Sep 17 00:00:00 2001 From: Iliyan Malchev Date: Fri, 30 Jul 2010 12:50:23 -0700 Subject: [PATCH] [ARM] tegra: add mach header to configure cpcap-audio Signed-off-by: Iliyan Malchev --- .../arm/mach-tegra/include/mach/cpcap_audio.h | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 arch/arm/mach-tegra/include/mach/cpcap_audio.h 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 index 000000000000..1f6804dbaba7 --- /dev/null +++ b/arch/arm/mach-tegra/include/mach/cpcap_audio.h @@ -0,0 +1,49 @@ +/* + * arch/arm/mach-tegra/include/mach/cpcap_audio.h + * + * Copyright (C) 2010 Google, Inc. + * + * Author: + * Iliyan Malchev + * + * 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 +#include +#include + +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_*/ -- 2.34.1