ASoC: cs42l42: Fix channel width support
authorLucas Tanure <tanureal@opensource.cirrus.com>
Fri, 5 Mar 2021 17:34:29 +0000 (17:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Apr 2021 13:00:04 +0000 (15:00 +0200)
commit20b39eb99598f9b6ee9b0465a53c3b1da8421b1c
tree1b60a3753c6c8f6ffcba9df9c3aed7feb72975a1
parent0d3753babfa783765926bf9202697c44479a2e7a
ASoC: cs42l42: Fix channel width support

[ Upstream commit 2bdc4f5c6838f7c3feb4fe68e4edbeea158ec0a2 ]

Remove the hard coded 32 bits width and replace with the correct width
calculated by params_width.

Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210305173442.195740-3-tanureal@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/cs42l42.c
sound/soc/codecs/cs42l42.h