ASoC: sof: hw-apl: disable SPIB for host gateway stream We don't update SPIB during ALSA buffer writing/reading, so the host DMA gateway can't use SPIB for flow control, here disable SPIB to fix the buffer doesn't wrap issue. Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
diff --git a/sound/soc/sof/hw-apl.c b/sound/soc/sof/hw-apl.c index 2c2990a..ef25b2d 100644 --- a/sound/soc/sof/hw-apl.c +++ b/sound/soc/sof/hw-apl.c
@@ -857,7 +857,8 @@ static int apl_stream_prepare(struct snd_sof_dev *sdev, } else stream->fifo_size = 0; - apl_spib_config(sdev, stream, APL_SPIB_ENABLE, size); + /* disable SPIB, to enable buffer wrap for stream */ + apl_spib_config(sdev, stream, APL_SPIB_DISABLE, 0); snd_sof_dsp_write(sdev, APL_HDA_BAR, stream->sd_offset + SOF_HDA_PPHC_BASE + SOF_HDA_PPHC_INTERVAL *