]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: SOF: Intel: enable DMI L1 for playback streams
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Thu, 10 Mar 2022 17:16:47 +0000 (11:16 -0600)
committerMark Brown <broonie@kernel.org>
Fri, 11 Mar 2022 13:40:53 +0000 (13:40 +0000)
Add back logic to mark all playback streams as L1 compatible.

Fixes: bc51ba67e1c6 ("ASoC: SOF: Intel: make DMI L1 selection more robust")
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220310171651.249385-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-pcm.c

index eec83ca557a1e627b75e15eaa14263bfda65dd34..3e77a2352b989d47eff407d5e389bce4c92809c6 100644 (file)
@@ -315,6 +315,7 @@ int hda_dsp_pcm_open(struct snd_sof_dev *sdev,
                runtime->hw.info &= ~SNDRV_PCM_INFO_PAUSE;
 
        if (hda_always_enable_dmi_l1 ||
+           direction == SNDRV_PCM_STREAM_PLAYBACK ||
            spcm->stream[substream->stream].d0i3_compatible)
                flags |= SOF_HDA_STREAM_DMI_L1_COMPATIBLE;