ARM: tegra: cardhu: add port id's for BT and HIFI
Nikesh Oswal [Wed, 14 Mar 2012 16:16:03 +0000 (21:16 +0530)]
add port id's for BT and HIFI and also disable(-1) the port id
for Baseband as Cardhu does not have a Baseband

Change-Id: I16914ce95c2153cd36691b1ef462d387e39d3fa5
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/90121
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

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

index c1527a5..1d2bef6 100644 (file)
@@ -694,6 +694,16 @@ static struct tegra_asoc_platform_data cardhu_audio_aic326x_pdata = {
        .gpio_hp_mute           = -1,
        .gpio_int_mic_en        = -1,
        .gpio_ext_mic_en        = -1,
+       /*defaults for Verbier-Cardhu board with TI AIC326X codec*/
+       .audio_port_id          = {
+               [HIFI_CODEC] = 0,
+               [BASEBAND] = -1,
+               [BT_SCO] = 3,
+       },
+       .baseband_param         = {
+               .rate = -1,
+               .channels = -1,
+       },
 };
 
 static struct platform_device cardhu_audio_aic326x_device = {