summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/ssm2518.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-06-10 22:23:53 +0800
committerMark Brown <broonie@linaro.org>2013-06-12 16:20:44 +0100
commit1aad4e574bced05b4036e79981a7800dd275cf1c (patch)
tree1a675ec5d2185ce05852c0a35a36c563be8c8826 /sound/soc/codecs/ssm2518.c
parentb6b5e76bb8bb22ecff90a7840dc4845d63328289 (diff)
ASoC: ssm2518: Fix trivial typo in checking tx_mask and rx_mask values
Otherwise, ssm2518_set_tdm_slot() always returns error if slots != 0. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/ssm2518.c')
-rw-r--r--sound/soc/codecs/ssm2518.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/ssm2518.c b/sound/soc/codecs/ssm2518.c
index 3139a1bde29..95aed552139 100644
--- a/sound/soc/codecs/ssm2518.c
+++ b/sound/soc/codecs/ssm2518.c
@@ -539,7 +539,7 @@ static int ssm2518_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
SSM2518_REG_SAI_CTRL1, SSM2518_SAI_CTRL1_SAI_MASK,
SSM2518_SAI_CTRL1_SAI_I2S);
- if (tx_mask == 0 || tx_mask != 0)
+ if (tx_mask == 0 || rx_mask != 0)
return -EINVAL;
if (slots == 1) {