ASoC: sun8i-codec: Fix setting DAI data format
authorSamuel Holland <samuel@sholland.org>
Mon, 17 Feb 2020 06:42:22 +0000 (00:42 -0600)
committerMark Brown <broonie@kernel.org>
Mon, 17 Feb 2020 21:58:41 +0000 (21:58 +0000)
commit96781fd941b39e1f78098009344ebcd7af861c67
treed1e46fb07a230a19b5b70aac30e5118c3a460057
parent3bc7b6c15fffdf3f818df31198c8c040ad8f7ea9
ASoC: sun8i-codec: Fix setting DAI data format

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>
sound/soc/sunxi/sun8i-codec.c