aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/include/mach/hdmi-audio.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/hdmi-audio.h')
-rw-r--r--arch/arm/mach-tegra/include/mach/hdmi-audio.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/hdmi-audio.h b/arch/arm/mach-tegra/include/mach/hdmi-audio.h
new file mode 100644
index 00000000000..7d760690081
--- /dev/null
+++ b/arch/arm/mach-tegra/include/mach/hdmi-audio.h
@@ -0,0 +1,46 @@
1/*
2 * arch/arm/mach-tegra/include/mach/hdmi-audio.h
3 *
4 * Copyright (c) 2008-2011, NVIDIA Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20
21#ifndef __MACH_TEGRA_HDMI_AUDIO_H
22#define __MACH_TEGRA_HDMI_AUDIO_H
23
24#include <linux/kernel.h>
25#include <linux/types.h>
26
27enum {
28 AUDIO_FREQ_32K = 32000,
29 AUDIO_FREQ_44_1K = 44100,
30 AUDIO_FREQ_48K = 48000,
31 AUDIO_FREQ_88_2K = 88200,
32 AUDIO_FREQ_96K = 96000,
33 AUDIO_FREQ_176_4K = 176400,
34 AUDIO_FREQ_192K = 192000,
35};
36
37enum {
38 AUTO = 0,
39 SPDIF,
40 HDA,
41};
42
43int tegra_hdmi_setup_audio_freq_source(unsigned audio_freq, unsigned audio_source);
44int tegra_hdmi_setup_hda_presence(void);
45
46#endif /* __MACH_TEGRA_HDMI_AUDIO_H */