ASoC: rsnd: precedence error in rsnd_ssiu_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 6 Jan 2016 09:38:41 +0000 (12:38 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 6 Jan 2016 10:38:39 +0000 (10:38 +0000)
The bitwise OR has higher precedence than ?: so the val2 was always set
to 0x2.

Fixes: b4c83b171557 ('ASoC: rsnd: add Multi channel support')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/ssiu.c

index 3fe9e08e81a3eb482915ba7da7f64b01766c7a09..06d72828e5bcdc210ceb1234880abd4d7a50186b 100644 (file)
@@ -73,7 +73,7 @@ static int rsnd_ssiu_init(struct rsnd_mod *mod,
                switch (multi_ssi_slaves) {
                case 0x0206: /* SSI0/1/2/9 */
                        val2 = (1 << 4) | /* SSI0129 sync */
-                               rsnd_rdai_is_clk_master(rdai) ? 0x2 : 0x1;
+                               (rsnd_rdai_is_clk_master(rdai) ? 0x2 : 0x1);
                        /* fall through */
                case 0x0006: /* SSI0/1/2 */
                        val1 = rsnd_rdai_is_clk_master(rdai) ?