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)
commit9cc8f9fe0f9e84771f2872f8939d37414ef9d58d
tree7c95de171e383b36954737f39cb79a43c8962624
parenteee0e16f8c3cf31fbbae4a88e51d25abebbaf147
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