]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: kirkwood-i2s: fix RECCTL masking
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 26 Jun 2014 14:23:00 +0000 (15:23 +0100)
committerMark Brown <broonie@linaro.org>
Sat, 28 Jun 2014 12:18:22 +0000 (13:18 +0100)
Since we wish to disable capture inputs for some formats, we need to
ensure that we clear the enable bits in our cached record control
register.  This seems to have been missed, resulting in the register
only accumulating enable bits.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/kirkwood/kirkwood-i2s.c

index 55af6c8e4603deaff126ee0e1e08487a701dc8c4..ef1a164d870387ba9fa0c4f7458ed0e99357a3f3 100644 (file)
@@ -212,7 +212,8 @@ static int kirkwood_i2s_hw_params(struct snd_pcm_substream *substream,
                                    KIRKWOOD_PLAYCTL_SIZE_MASK);
                priv->ctl_play |= ctl_play;
        } else {
-               priv->ctl_rec &= ~KIRKWOOD_RECCTL_SIZE_MASK;
+               priv->ctl_rec &= ~(KIRKWOOD_RECCTL_ENABLE_MASK |
+                                  KIRKWOOD_RECCTL_SIZE_MASK);
                priv->ctl_rec |= ctl_rec;
        }