ASoC: SOF: Intel: hda-dai: set lowest N bits in ch_mask
authorBard Liao <yung-chuan.liao@linux.intel.com>
Tue, 2 Apr 2024 15:18:16 +0000 (10:18 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 2 Apr 2024 16:14:46 +0000 (17:14 +0100)
commit8fa10a243600ca8bd92fdc871100deb308fca5f1
treed3de4cd0a9f10958c86aca5351218e3cdb219c8c
parente9c6b118de1afc1d32a4eb3bc9f3d114d4fe0f1a
ASoC: SOF: Intel: hda-dai: set lowest N bits in ch_mask

We always use the lowest N channels of stream. So, set ch_mask to
GENMASK(params_channels(params) - 1, 0).

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://msgid.link/r/20240402151828.175002-6-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-dai.c