Skip to content

Commit 1aeb585

Browse files
committed
Revert "ASoC: SOF: Intel: Disable SPIB in both direction"
This reverts commit fcdd87e. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent 83ea091 commit 1aeb585

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
@@ -1336,11 +1336,11 @@ int hda_data_stream_cleanup(struct device *dev, struct snd_dma_buffer *dmab,
13361336
struct snd_sof_dev *sdev = dev_get_drvdata(dev);
13371337
struct hdac_stream *hstream = hdac_stream(hext_stream);
13381338
int sd_offset = SOF_STREAM_SD_OFFSET(hstream);
1339-
int ret;
1340-
1341-
ret = hda_dsp_stream_spib_config(sdev, hext_stream, HDA_DSP_SPIB_DISABLE, 0);
1339+
int ret = 0;
13421340

1343-
if (hstream->direction == SNDRV_PCM_STREAM_CAPTURE)
1341+
if (hstream->direction == SNDRV_PCM_STREAM_PLAYBACK)
1342+
ret = hda_dsp_stream_spib_config(sdev, hext_stream, HDA_DSP_SPIB_DISABLE, 0);
1343+
else
13441344
snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, sd_offset,
13451345
SOF_HDA_SD_CTL_DMA_START, 0);
13461346

0 commit comments

Comments
 (0)