ASoC: SOF: Intel: hda: Add definition for SDxFIFOS.FIFOS mask
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Fri, 15 Sep 2023 11:40:16 +0000 (14:40 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 15 Sep 2023 12:15:32 +0000 (13:15 +0100)
commit369ea9f82c279e88a52217b56dc1f973de57ac56
treed055194325559117fdc77d43f342776775367a2e
parentc2d8f17ed0c70816737cbf8f530d2178ee6affbb
ASoC: SOF: Intel: hda: Add definition for SDxFIFOS.FIFOS mask

The FIFOS (FIFO Size) field is in bit 0-15 of the register.
Use the defined mask instead of a magic number for the FIFOS value
masking in hda_dsp_stream_hw_params().

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Chao Song <chao.song@linux.intel.com>
Link: https://lore.kernel.org/r/20230915114018.1701-3-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-stream.c
sound/soc/sof/intel/hda.h