diff options
Diffstat (limited to 'arch/arm/mach-tegra/board-whistler.c')
-rw-r--r-- | arch/arm/mach-tegra/board-whistler.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/board-whistler.c b/arch/arm/mach-tegra/board-whistler.c index e05811168569..bacc939c5057 100644 --- a/arch/arm/mach-tegra/board-whistler.c +++ b/arch/arm/mach-tegra/board-whistler.c @@ -291,26 +291,39 @@ static void whistler_i2c_init(void) platform_device_register(&tegra_i2c_device1); } + static struct tegra_audio_platform_data tegra_audio_pdata[] = { /* For I2S1 */ [0] = { + .i2s_master = true, + .dsp_master = false, .dma_on = true, /* use dma by default */ + .i2s_master_clk = 44100, + .dsp_master_clk = 8000, .i2s_clk_rate = 240000000, .dap_clk = "clk_dev1", .audio_sync_clk = "audio_2x", .mode = I2S_BIT_FORMAT_I2S, - .fifo_fmt = I2S_FIFO_16_LSB, + .fifo_fmt = I2S_FIFO_PACKED, .bit_size = I2S_BIT_SIZE_16, + .i2s_bus_width = 32, + .dsp_bus_width = 16, }, /* For I2S2 */ [1] = { + .i2s_master = false, + .dsp_master = true, .dma_on = true, /* use dma by default */ + .i2s_master_clk = 44100, + .dsp_master_clk = 8000, .i2s_clk_rate = 240000000, .dap_clk = "clk_dev1", .audio_sync_clk = "audio_2x", - .mode = I2S_BIT_FORMAT_I2S, + .mode = I2S_BIT_FORMAT_DSP, .fifo_fmt = I2S_FIFO_16_LSB, .bit_size = I2S_BIT_SIZE_16, + .i2s_bus_width = 32, + .dsp_bus_width = 16, } }; |