ASoC: sun4i-i2s: Fix sun8i tx channel offset mask
authorMarcus Cooper <codekipper@gmail.com>
Mon, 3 Jun 2019 17:47:27 +0000 (19:47 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 4 Jun 2019 14:33:48 +0000 (15:33 +0100)
Although not causing any noticeable issues, the mask for the
channel offset is covering too many bits.

Signed-off-by: Marcus Cooper <codekipper@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun4i-i2s.c

index d5ec1a20499df096854c4ccec0362eb68c8f3f90..8162e107e50bf7ac8d554cb84bf2ace2302dcbe3 100644 (file)
 
 #define SUN8I_I2S_TX_CHAN_MAP_REG      0x44
 #define SUN8I_I2S_TX_CHAN_SEL_REG      0x34
-#define SUN8I_I2S_TX_CHAN_OFFSET_MASK          GENMASK(13, 11)
+#define SUN8I_I2S_TX_CHAN_OFFSET_MASK          GENMASK(13, 12)
 #define SUN8I_I2S_TX_CHAN_OFFSET(offset)       (offset << 12)
 #define SUN8I_I2S_TX_CHAN_EN_MASK              GENMASK(11, 4)
 #define SUN8I_I2S_TX_CHAN_EN(num_chan)         (((1 << num_chan) - 1) << 4)