mach: enterprise: Add codec bit clock
ScottPeterson [Tue, 18 Sep 2012 21:30:18 +0000 (14:30 -0700)]
Add parameter to specify the I2S bitclock
to use as part of audio codec pdata structure.

Modified audio and dam clocks to be an even
divide down of the 26Mhz clock used on enterprise.

Change-Id: I7656032e4006df9954f0c3ec608ec8518c0bb415
Signed-off-by: ScottPeterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/133661
(cherry picked from commit 79f8a8ae0060265d97ba5ed5c9272477af789e07)
Reviewed-on: http://git-master/r/146607
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

arch/arm/mach-tegra/board-enterprise.c
arch/arm/mach-tegra/include/mach/tegra_asoc_pdata.h

index 5a27cb7..f966e0a 100644 (file)
@@ -199,10 +199,10 @@ static __initdata struct tegra_clk_init_table enterprise_clk_init_table[] = {
        { "i2s1",       "pll_a_out0",   0,              false},
        { "i2s3",       "pll_a_out0",   0,              false},
        { "spdif_out",  "pll_a_out0",   0,              false},
-       { "d_audio",    "clk_m",        12000000,       false},
-       { "dam0",       "clk_m",        12000000,       false},
-       { "dam1",       "clk_m",        12000000,       false},
-       { "dam2",       "clk_m",        12000000,       false},
+       { "d_audio",    "clk_m",        13000000,       false},
+       { "dam0",       "clk_m",        13000000,       false},
+       { "dam1",       "clk_m",        13000000,       false},
+       { "dam2",       "clk_m",        13000000,       false},
        { "audio0",     "i2s0_sync",    0,              false},
        { "audio1",     "i2s1_sync",    0,              false},
        { "audio2",     "i2s2_sync",    0,              false},
@@ -565,6 +565,7 @@ static struct tegra_asoc_platform_data enterprise_audio_pdata = {
                .is_i2s_master  = 0,
                .i2s_mode       = TEGRA_DAIFMT_I2S,
                .sample_size    = 16,
+               .channels           = 2,
        },
        .i2s_param[BASEBAND]    = {
                .audio_port_id  = 2,
@@ -573,6 +574,7 @@ static struct tegra_asoc_platform_data enterprise_audio_pdata = {
                .sample_size    = 16,
                .rate           = 8000,
                .channels       = 1,
+               .bit_clk    = 2048000,
        },
        .i2s_param[BT_SCO]      = {
                .audio_port_id  = 3,
index 3de36db..658629e 100644 (file)
@@ -33,6 +33,7 @@ struct i2s_config {
        int sample_size;
        int rate;
        int channels;
+       int bit_clk;
 };
 
 struct tegra_asoc_platform_data {