Skip to content

Commit e5bb265

Browse files
committed
ASoC: SOF: Intel: Disable SPIB in both direction
SPIB was enabled in hda_data_stream_prepare() if is_iccmax = false. We should disable it in hda_data_stream_cleanup(). Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent 39c812b commit e5bb265

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

sound/soc/sof/intel/hda-stream.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,11 +1329,11 @@ int hda_data_stream_cleanup(struct device *dev, struct snd_dma_buffer *dmab,
13291329
struct snd_sof_dev *sdev = dev_get_drvdata(dev);
13301330
struct hdac_stream *hstream = hdac_stream(hext_stream);
13311331
int sd_offset = SOF_STREAM_SD_OFFSET(hstream);
1332-
int ret = 0;
1332+
int ret;
13331333

1334-
if (hstream->direction == SNDRV_PCM_STREAM_PLAYBACK)
1335-
ret = hda_dsp_stream_spib_config(sdev, hext_stream, HDA_DSP_SPIB_DISABLE, 0);
1336-
else
1334+
ret = hda_dsp_stream_spib_config(sdev, hext_stream, HDA_DSP_SPIB_DISABLE, 0);
1335+
1336+
if (hstream->direction == SNDRV_PCM_STREAM_CAPTURE)
13371337
snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, sd_offset,
13381338
SOF_HDA_SD_CTL_DMA_START, 0);
13391339

0 commit comments

Comments
 (0)