ASoC: sun8i-codec: Fix setting DAI data format
authorSamuel Holland <samuel@sholland.org>
Mon, 17 Feb 2020 06:42:22 +0000 (00:42 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2020 15:38:44 +0000 (16:38 +0100)
commite95b050a519032f8aedb861f56e57df6452b5287
tree349dcace523cfbddee5fa7a35520f41b9cb0014d
parent276bfd97bd8c4269c2c9722f3a4f5af34777bd31
ASoC: sun8i-codec: Fix setting DAI data format

commit 96781fd941b39e1f78098009344ebcd7af861c67 upstream.

Use the correct mask for this two-bit field. This fixes setting the DAI
data format to RIGHT_J or DSP_A.

Fixes: 36c684936fae ("ASoC: Add sun8i digital audio codec")
Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Cc: stable@kernel.org
Link: https://lore.kernel.org/r/20200217064250.15516-7-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/sunxi/sun8i-codec.c