ASoC: SOF: hda-stream: only enable DPIB if needed
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 7 Dec 2021 19:39:44 +0000 (13:39 -0600)
committerMark Brown <broonie@kernel.org>
Mon, 13 Dec 2021 19:32:48 +0000 (19:32 +0000)
commitae81d8fd57ff7d2b421c80f0f9426d9e775023b5
tree7deaaca6b79977684dc23b70863a153762447ab3
parent12ce213821b77242b2217d08850ff972e1fb50bb
ASoC: SOF: hda-stream: only enable DPIB if needed

The existing code is inconsistent, we should only enable DPIB if the
'use_posbuf' field is true.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20211207193947.71080-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-stream.c