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 16:22:13 +0000 (17:22 +0100)
commit9f83363875bee35c692f4de77f5b13ff1de2cf42
tree88204cba2a689052b633328f68c06100494d2c21
parent3de0bbe21312f0f7582f1051a8b0169272a04146
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