[ARM]: tegra: stingray: Use CPCAP CODEC in Network (PCM) mode
authorChris Fries <C.Fries@motorola.com>
Wed, 20 Oct 2010 18:08:29 +0000 (13:08 -0500)
committerIliyan Malchev <malchev@google.com>
Wed, 20 Oct 2010 18:20:04 +0000 (11:20 -0700)
Change the data format for I2S2 to be DSP mode, to support mono capture from
the microphone.

Signed-off-by: Iliyan Malchev <malchev@google.com>
arch/arm/mach-tegra/board-stingray.c

index 064efbe4929f801f8a4e0813254cfa5a735be3d4..acee60bc6eaaa6966690c359129e54d71e6c040d 100644 (file)
@@ -288,17 +288,11 @@ static struct tegra_audio_platform_data tegra_audio2_pdata = {
        .i2s_clk_rate   = 240000000,
        .dap_clk        = "clk_dev1",
        .audio_sync_clk = "audio_2x",
-       .mode           = I2S_BIT_FORMAT_I2S,
-       /* TODO: Figure out how to capture data without left/right swaps,
-        * or capture mono.
-        * nVidia reports packed 16 bit I2S capture isn't working right.
-        * Check for Bluetooth SCO impact before changing.
-        * Also change I2S bus width to match.
-        */
+       .mode           = I2S_BIT_FORMAT_DSP, /* Using COCEC in network mode */
        .fifo_fmt       = I2S_FIFO_16_LSB,
        .bit_size       = I2S_BIT_SIZE_16,
-       .i2s_bus_width = 16, /* Using 16 bit LSB format data, the dma is 16 bit. */
-       .dsp_bus_width = 16, /* When using DSP mode, this should be 16 bit. */
+       .i2s_bus_width = 16, /* Capturing a single timeslot, mono 16 bits */
+       .dsp_bus_width = 16,
 };
 
 static char *usb_functions_mtp[] = { "mtp" };