]> git.hungrycats.org Git - linux/commit
ASoC: SOF: Intel: hda-pcm: Limit the maximum number of periods by MAX_BDL_ENTRIES
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 4 Jul 2024 09:01:06 +0000 (11:01 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 4 Jul 2024 11:09:11 +0000 (12:09 +0100)
commit82bb8db96610b558920b8c57cd250ec90567d79b
treee0692e79c4152b1b348d9c45a855ab4dcb6cf967
parent7441e7f3e682436a30afe50b858eac94295047b7
ASoC: SOF: Intel: hda-pcm: Limit the maximum number of periods by MAX_BDL_ENTRIES

The HDaudio specification Section 3.6.2 limits the number of BDL entries to 256.

Make sure we don't allow more periods than this normative value.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://patch.msgid.link/20240704090106.371497-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-pcm.c