From f641723b08ba660834a69f6adffe41c9f038f51d Mon Sep 17 00:00:00 2001 From: Vinod G Date: Tue, 11 Oct 2011 14:32:59 -0700 Subject: arm: tegra: Add ti codec support to board file. Adding i2c info needed for ti codec. Setting dap1 to use with voice call till ti codec driver add secondary interface support. bug 816608 Change-Id: I391c3eb58052f8852e25c5aafe92d294316f440d Reviewed-on: http://git-master/r/57397 Reviewed-by: Vinod Gopalakrishnakurup Tested-by: Vinod Gopalakrishnakurup Reviewed-by: Scott Peterson --- arch/arm/mach-tegra/board-whistler.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/mach-tegra/board-whistler.c b/arch/arm/mach-tegra/board-whistler.c index 7ceaf477ad91..2867e4bc2f75 100644 --- a/arch/arm/mach-tegra/board-whistler.c +++ b/arch/arm/mach-tegra/board-whistler.c @@ -470,6 +470,7 @@ static struct tegra_das_platform_data tegra_das_pdata = { [3] = {tegra_das_port_dap1, tegra_das_port_i2s1, false}, }, }, +#ifdef CONFIG_SND_SOC_WM8753 [2] = { .con_id = tegra_das_port_con_id_voicecall_no_bt, .num_entries = 4, @@ -480,6 +481,16 @@ static struct tegra_das_platform_data tegra_das_pdata = { [3] = {tegra_das_port_dap1, tegra_das_port_i2s1, false}, }, }, +#else + [2] = { + .con_id = tegra_das_port_con_id_voicecall_no_bt, + .num_entries = 2, + .con_line = { + [0] = {tegra_das_port_dap1, tegra_das_port_dap3, true}, + [1] = {tegra_das_port_dap3, tegra_das_port_dap1, false}, + }, + }, +#endif } }; @@ -725,11 +736,19 @@ static void __init whistler_power_off_init(void) pm_power_off = whistler_power_off; } +#ifdef CONFIG_SND_SOC_WM8753 static const struct i2c_board_info whistler_codec_info[] = { { I2C_BOARD_INFO("wm8753", 0x1a), }, }; +#else +static const struct i2c_board_info whistler_codec_info[] = { + { + I2C_BOARD_INFO("tlv320aic3262", 0x18), + }, +}; +#endif static void whistler_codec_init(void) { -- cgit v1.2.3