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 c100e7c commit 62916ebCopy full SHA for 62916eb
sound/soc/sof/intel/hda-pcm.c
@@ -254,6 +254,12 @@ int hda_dsp_pcm_open(struct snd_sof_dev *sdev,
254
snd_pcm_hw_constraint_integer(substream->runtime,
255
SNDRV_PCM_HW_PARAM_PERIODS);
256
257
+ /* Limit the maximum number of periods to not exceed the BDL entries count */
258
+ if (runtime->hw.periods_max > HDA_DSP_MAX_BDL_ENTRIES)
259
+ snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIODS,
260
+ runtime->hw.periods_min,
261
+ HDA_DSP_MAX_BDL_ENTRIES);
262
+
263
/* Only S16 and S32 supported by HDA hardware when used without DSP */
264
if (sdev->dspless_mode_selected)
265
snd_pcm_hw_constraint_mask64(substream->runtime, SNDRV_PCM_HW_PARAM_FORMAT,
0 commit comments