ASoC: Tegra: Make dma_req count easily configurable
authorSumit Bhattacharya <sumitb@nvidia.com>
Fri, 20 Apr 2012 11:56:35 +0000 (16:56 +0530)
committerSimone Willett <swillett@nvidia.com>
Thu, 26 Apr 2012 21:53:34 +0000 (14:53 -0700)
commitf61271a07333c0177346716e9a85da2dfea3f73e
treebd86e5832175aeb5768ae9f0e829bed0af609b07
parent167ad9e2cb758aedaf778e6ba2c631878ff2dd68
ASoC: Tegra: Make dma_req count easily configurable

Instead of always using 2 dma_req count pass max dma_req_count
through a macro. Ensure dma_req_count does not cross
period_count.

Bug 968814

Change-Id: Iddfbd77017992ccb8c90441213e191133dadb347
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/97915
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
sound/soc/tegra/tegra_pcm.c
sound/soc/tegra/tegra_pcm.h