asoc: aic326x machine: add aic326x for enterprise
Nikesh Oswal [Wed, 14 Mar 2012 10:14:02 +0000 (15:14 +0530)]
Change-Id: I1b41c408b65b79f12b20a5efb7c0d2e3245bad6a
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/90057
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

sound/soc/tegra/tegra_aic326x.c

index 1267830..26c5f18 100644 (file)
@@ -841,7 +841,7 @@ static __devinit int tegra_aic326x_driver_probe(struct platform_device *pdev)
        struct snd_soc_card *card = &snd_soc_tegra_aic326x;
        struct tegra_aic326x *machine;
        struct tegra_aic326x_platform_data *pdata;
-       int ret, i;
+       int ret;
 
        pdata = pdev->dev.platform_data;
        if (!pdata) {
@@ -875,6 +875,11 @@ static __devinit int tegra_aic326x_driver_probe(struct platform_device *pdev)
        }
 #endif
 
+       if(machine_is_tegra_enterprise()) {
+               tegra_aic326x_dai[DAI_LINK_HIFI].codec_name = "aic3262-codec.0-0018";
+               tegra_aic326x_dai[DAI_LINK_VOICE_CALL].codec_name = "aic3262-codec.0-0018";
+       }
+
        ret = snd_soc_register_card(card);
        if (ret) {
                dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n",