]> 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)
commit4d62bfec89220f895030ae444eaeef076159167b
tree7c95de171e383b36954737f39cb79a43c8962624
parentbe8c96cff656b27ff1565913d31db789b4544da1
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