ASoC: SOF: Intel: hda: Clear RIRB status before reading WP
authorBrent Lu <brent.lu@intel.com>
Fri, 12 Jun 2020 10:50:48 +0000 (18:50 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 15 Jun 2020 14:18:34 +0000 (15:18 +0100)
commit40e2c465894e5b79b49f55d9574dbcda4ac0f08f
treeae08aff4e63622d507c0ba89a73b6f2c7e136ad4
parente74a1e7eaed95f2c6422e7cf9ed70154f17a6db3
ASoC: SOF: Intel: hda: Clear RIRB status before reading WP

Port commit 6d011d5057ff ("ALSA: hda: Clear RIRB status before reading
WP") from legacy HDA driver to fix the get response timeout issue.
Current SOF driver does not suffer from this issue because sync write
is enabled in hda_init. The issue will come back if the sync write is
disabled for some reason.

Signed-off-by: Brent Lu <brent.lu@intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/1591959048-15813-1-git-send-email-brent.lu@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-stream.c