Skip to content

Commit

Permalink
ASoC: SOF: Intel: hda-pcm: Follow the pause_supported flag to drop PA…
Browse files Browse the repository at this point in the history
…USE support

If the stream's pause_supported is false and the DMI_L1 is not forced via
a module parameter then disable the pause push/release support for the
PCM.

Signed-off-by: Peter Ujfalusi <[email protected]>
  • Loading branch information
ujfalusi committed Jun 5, 2024
1 parent 3cbb316 commit 91a1557
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sound/soc/sof/intel/hda-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,13 @@ int hda_dsp_pcm_open(struct snd_sof_dev *sdev,
if (hda_always_enable_dmi_l1 && direction == SNDRV_PCM_STREAM_CAPTURE)
runtime->hw.info &= ~SNDRV_PCM_INFO_PAUSE;

/*
* Follow the hint and disable the pause push/release support if the
* DMI_L1 is not forced by a module parameter
*/
if (!spcm->stream[substream->stream].pause_supported && !hda_always_enable_dmi_l1)
runtime->hw.info &= ~SNDRV_PCM_INFO_PAUSE;

if (hda_always_enable_dmi_l1 ||
direction == SNDRV_PCM_STREAM_PLAYBACK ||
spcm->stream[substream->stream].d0i3_compatible)
Expand Down

0 comments on commit 91a1557

Please sign in to comment.