asoc: tegra: Fix Kernel panic during recording
authorVijay Mali <vmali@nvidia.com>
Tue, 16 Apr 2013 06:56:01 +0000 (11:56 +0530)
committerMrutyunjay Sawant <msawant@nvidia.com>
Fri, 19 Apr 2013 08:42:33 +0000 (01:42 -0700)
commit4b1e7a3b7e861049a53207ac16e11d36f3d15f06
treec50d5eae3a411ee6280de54de618a8938d8bbb0d
parenteaf4da5d9d1c1cb165a6e563bacee25e19f9af84
asoc: tegra: Fix Kernel panic during recording

Add boundary check for DAM ifc and channel id
if all functions where these are used.
During camcoder recording DAM functions are called with
negative ifc, causing kernel panic.

Change-Id: Idd4df5eae579f9a89222361d594a79ddcdfc1fe5
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/219692
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>
sound/soc/tegra/tegra30_dam.c