asoc: tegra: WAR: Check AVP id before setting DMA
authorShashank Sharma <shashanks@nvidia.com>
Fri, 28 Sep 2012 10:59:24 +0000 (15:59 +0530)
committerMatthew Pedro <mapedro@nvidia.com>
Tue, 9 Oct 2012 18:49:06 +0000 (11:49 -0700)
commitb02a1cb7dbb6b0815ddd8e104ad8819e847947a0
treec28e1ac6585ff30aefac302ecbe3c99c566f0e9b
parent49eac6c2664809abd41c0b0b368ab093bcf5a783
asoc: tegra: WAR: Check AVP id before setting DMA

WAR to check souncard data's avp_id before trying to set
DMA address. An invalid avp_id can cause invlaid rtd, causing
panic in control ioctl calls.

Bug 1046249
Bug 1044761
Bug 1049940
Bug 1050152

Change-Id: Ib536220fdb92f8256c777d6fa14b66e47bc6b7be
Signed-off-by: Shashank Sharma <shashanks@nvidia.com>
Reviewed-on: http://git-master/r/134426
(cherry picked from commit 007fd7b1ae101c5be2a3d35ad11e7190862c04ca)
Reviewed-on: http://git-master/r/142493
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
sound/soc/tegra/tegra_asoc_utils.c