summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorLei Fan <leif@nvidia.com>2014-01-21 14:39:50 +0800
committerMartin Chi <mchi@nvidia.com>2014-01-25 20:53:45 -0800
commit89d633af9c41842c5a1451a9835dfb7faa121d01 (patch)
treebfb13ee20f392f078b5aa6be394fa0f02c906868 /arch
parent26956b82c558cf55338a7c91e0abd06e00ff17b3 (diff)
arm:tegra: Correct sample rate for voice call
Because the channel1 of DAM is used for DL, there is no SRC in DL. the codec need to be set the same rate with baseband. Otherwise the I2S Timing REG cannot get the suited value and left channel may be swapped with right channel. Bug 1441449 Change-Id: Ib71bb41a7e03d2a85d718be0c94a5a5f525c0ce3 Signed-off-by: Lei Fan <leif@nvidia.com> Reviewed-on: http://git-master/r/358078 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Vijay Mali <vmali@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Martin Chi <mchi@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/board-tegranote7c.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/board-tegranote7c.c b/arch/arm/mach-tegra/board-tegranote7c.c
index 6b43e2de4b64..236f33f4ea6d 100644
--- a/arch/arm/mach-tegra/board-tegranote7c.c
+++ b/arch/arm/mach-tegra/board-tegranote7c.c
@@ -351,6 +351,10 @@ static struct tegra_asoc_platform_data tegranote7c_audio_pdata = {
.audio_port_id = 1,
.is_i2s_master = 1,
.i2s_mode = TEGRA_DAIFMT_I2S,
+ .sample_size = 16,
+ .rate = 48000,
+ .channels = 2,
+ .bit_clk = 1536000,
},
.i2s_param[BASEBAND] = {
.audio_port_id = 0,
@@ -375,7 +379,7 @@ static struct tegra_asoc_platform_data tegranote7c_audio_pdata = {
.is_i2s_master = 1,
.i2s_mode = TEGRA_DAIFMT_I2S,
.sample_size = 16,
- .rate = 48000,
+ .rate = 16000,
.channels = 2,
.bit_clk = 1536000,
},