]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: Common: Update dsp register poll implementation
authorJeeja KP <jeeja.kp@intel.com>
Mon, 2 Jan 2017 04:20:02 +0000 (09:50 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 6 Jan 2017 18:14:45 +0000 (18:14 +0000)
commitedc16e01a7b3d0ddd668a84c00c88041714c0e35
tree7c95de171e383b36954737f39cb79a43c8962624
parent1436b2ecf58e23772d6a4354e7ad5def16f43abf
ASoC: Intel: Common: Update dsp register poll implementation

Poll implementation is not quite accurate, especially for smaller
values of timeout or timeout values close to the actual timeout needed

Use jiffies to set the timeout value and time_before() to get the
accurate time. So update the dsp register poll implementation to
provide accurate timeout using jiffies.

Signed-off-by: Jayachandran B <jayachandran.b@intel.com>
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/common/sst-dsp.c