[ARM] tegra: stingray: configure tx/rx for i2s.0 and i2s.1
authorIliyan Malchev <malchev@google.com>
Wed, 20 Oct 2010 22:18:12 +0000 (15:18 -0700)
committerIliyan Malchev <malchev@google.com>
Wed, 20 Oct 2010 22:19:10 +0000 (15:19 -0700)
-- configure i2s.0 only for playback
-- configure i2s.1 for both playback and recording

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

index ccb321f4b575c86eb396133ec9371cddc2aee943..58cbaca8a203dfe43274a2f3c5724c80477c9221 100644 (file)
@@ -282,6 +282,7 @@ static struct tegra_audio_platform_data tegra_audio_pdata = {
        .bit_size       = I2S_BIT_SIZE_16,
        .i2s_bus_width = 32, /* Using Packed 16 bit data, the dma is 32 bit. */
        .dsp_bus_width = 16, /* When using DSP mode (unused), this should be 16 bit. */
+       .mask           = TEGRA_AUDIO_ENABLE_TX,
 };
 
 /* Connected to CPCAP CODEC - Switchable to Bluetooth Audio. */
@@ -296,6 +297,7 @@ static struct tegra_audio_platform_data tegra_audio2_pdata = {
        .bit_size       = I2S_BIT_SIZE_16,
        .i2s_bus_width = 16, /* Capturing a single timeslot, mono 16 bits */
        .dsp_bus_width = 16,
+       .mask           = TEGRA_AUDIO_ENABLE_TX | TEGRA_AUDIO_ENABLE_RX,
 };
 
 static char *usb_functions_mtp[] = { "mtp" };