soundwire: cadence: clear FIFO to avoid pop noise issue on playback start
authorranderwang <rander.wang@linux.intel.com>
Tue, 17 Mar 2020 16:33:29 +0000 (11:33 -0500)
committerVinod Koul <vkoul@kernel.org>
Thu, 19 Mar 2020 07:13:05 +0000 (12:43 +0530)
commitb468a785bd3e0a0591c84cbde5787f58be38c3e4
treedee2becb3fa3233101a79004175d76f0d4162963
parent2c800e3ba7f6b43db5782c8b57bc47647a834215
soundwire: cadence: clear FIFO to avoid pop noise issue on playback start

Driver should clear FIFO in PDI, or the previously stored sample data
in FIFO will generate pop noise when stream is started. The soft reset
bit will clear all the FIFO to zero and is self-cleared after that.

Signed-off-by: randerwang <rander.wang@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200317163329.25501-18-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/cadence_master.c