arm: tegra: p1852: Make TDM1 as 16 channels
Nitin Pai [Thu, 28 Jun 2012 08:50:50 +0000 (13:50 +0530)]
Made TDM1 as 16 channels so that both devices
work in the same configuration.

Bug 1008391

Signed-off-by: Nitin Pai <npai@nvidia.com>
Reviewed-on: http://git-master/r/112090
(cherry picked from commit 4d042a0e613ba1c2d715d6ed47daddd61be14a28)
Change-Id: I622b046b3b36147b82d47f612febb7ae7ba0767c
Reviewed-on: http://git-master/r/116059
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

arch/arm/mach-tegra/board-p1852.c

index c195f0f..008b8ad 100644 (file)
@@ -209,11 +209,15 @@ static struct tegra_p1852_platform_data p1852_audio_tdm_pdata = {
                .name = "tegra-i2s-1",
                .pcm_driver = "tegra-tdm-pcm-audio",
                .i2s_format = format_tdm,
+               /* Defines whether the Codec Chip is Master or Slave */
                .master = 1,
-               .num_slots = 4,
+               /* Defines the number of TDM slots */
+               .num_slots = 8,
+               /* Defines the width of each slot */
                .slot_width = 32,
-               .tx_mask = 0x0f,
-               .rx_mask = 0x0f,
+               /* Defines which slots are enabled */
+               .tx_mask = 0xff,
+               .rx_mask = 0xff,
        },
        .codec_info[1] = {
                .codec_dai_name = "dit-hifi",