asoc: tegra: p1852: Use pcm-driver from platform
Nitin Pai [Wed, 30 May 2012 13:01:46 +0000 (18:01 +0530)]
Use the pcm-driver specified from platform/board
specified file.

Bug 991926

Change-Id: I9e4c9a3f76bacb22de817273a2281ac9b8959c43
Signed-off-by: Nitin Pai <npai@nvidia.com>
Reviewed-on: http://git-master/r/105415
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bob Johnston <bjohnston@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

sound/soc/tegra/tegra_p1852.c

index 85b4cee..199bb80 100644 (file)
@@ -227,6 +227,9 @@ static __devinit int tegra_p1852_driver_probe(struct platform_device *pdev)
                                pdata->codec_info[i].codec_dai_name;
                tegra_p1852_dai_link[i].name =
                                pdata->codec_info[i].name;
+               if (pdata->codec_info[i].pcm_driver)
+                       tegra_p1852_dai_link[i].platform_name =
+                               pdata->codec_info[i].pcm_driver;
        }
 
        ret = tegra_asoc_utils_init(&machine->util_data, &pdev->dev, card);