asoc: codec: es755: Add delay between SPI commands
authorSrinivas Anne <sanne@nvidia.com>
Fri, 15 May 2015 19:32:55 +0000 (12:32 -0700)
committerSumit Bhattacharya <sumitb@nvidia.com>
Tue, 9 Jun 2015 07:07:01 +0000 (00:07 -0700)
commit729fb799fbec6aa2da152c54ec5de8abf4fe5fae
tree11ede253f403e6d491b3f9da81338cc219ac64cd
parent4ed373eb820300ab9d6ea6c8cf84699415cb10cf
asoc: codec: es755: Add delay between SPI commands

Summary:
1) Added 1ms delay between SPI commands that does not require response
from codec. Commands sent after the route is up and running.

2) 5ms delay for any commands that require a read response from codec.

This should minimize the frequency of SPI interrupts that starved
Audience FW and resulted in Audio corruption.

bug 1622994

Change-Id: I85d8f26245406326c350ebf4723eca31d297b53f
Signed-off-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-on: http://git-master/r/743385
Reviewed-on: http://git-master/r/747494
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
sound/soc/codecs/audience/es-d300.c
sound/soc/codecs/audience/es755.c
sound/soc/codecs/audience/escore-spi.c