From: Iliyan Malchev Date: Fri, 30 Jul 2010 19:50:23 +0000 (-0700) Subject: [ARM] tegra: add mach header to configure cpcap-audio X-Git-Tag: firefly_0821_release~9834^2~735 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5477bfe1404b7b55e3f9aa41b7577ac77093b775;p=firefly-linux-kernel-4.4.55.git [ARM] tegra: add mach header to configure cpcap-audio Signed-off-by: Iliyan Malchev --- 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_*/