We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7441e7f commit 82bb8dbCopy full SHA for 82bb8db
sound/soc/sof/intel/hda-pcm.c
@@ -258,6 +258,12 @@ int hda_dsp_pcm_open(struct snd_sof_dev *sdev,
258
snd_pcm_hw_constraint_integer(substream->runtime,
259
SNDRV_PCM_HW_PARAM_PERIODS);
260
261
+ /* Limit the maximum number of periods to not exceed the BDL entries count */
262
+ if (runtime->hw.periods_max > HDA_DSP_MAX_BDL_ENTRIES)
263
+ snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIODS,
264
+ runtime->hw.periods_min,
265
+ HDA_DSP_MAX_BDL_ENTRIES);
266
+
267
/* Only S16 and S32 supported by HDA hardware when used without DSP */
268
if (sdev->dspless_mode_selected)
269
snd_pcm_hw_constraint_mask64(substream->runtime, SNDRV_PCM_HW_PARAM_FORMAT,
0 commit comments