diff options
author | Chris Fries <C.Fries@motorola.com> | 2010-11-03 12:45:26 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:36:36 -0800 |
commit | 86be8a22180c4b8c4b180433a786e05054dd5e85 (patch) | |
tree | aa5ade4334a4c3f1b6364b92ab1a15b695051189 /arch/arm/mach-tegra/include/mach/audio.h | |
parent | 3379c931e62e8a7ed33670d9787c1798600cebfb (diff) |
[ARM] tegra_i2s_audio: add support for master/slave switching
- Remove duplicate code between probe() and resume(), make new function
i2s_configure()
- When master, pass the sample rate from the board info
- Clean up some checkpatch.pl complaints.
Change-Id: I0169d9a70c02eaf2173b1f1941a545792c01bc6b
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/audio.h')
-rw-r--r-- | arch/arm/mach-tegra/include/mach/audio.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/include/mach/audio.h b/arch/arm/mach-tegra/include/mach/audio.h index 80f8b2c2d8cd..5950ececae00 100644 --- a/arch/arm/mach-tegra/include/mach/audio.h +++ b/arch/arm/mach-tegra/include/mach/audio.h @@ -35,7 +35,10 @@ #define TEGRA_AUDIO_ENABLE_RX 2 struct tegra_audio_platform_data { - bool master; + bool i2s_master; + bool dsp_master; + int i2s_master_clk; /* When I2S mode and master, the framesync rate. */ + int dsp_master_clk; /* When DSP mode and master, the framesync rate. */ bool dma_on; unsigned long i2s_clk_rate; const char *dap_clk; |