From: Axel Lin Date: Mon, 10 Jun 2013 14:23:53 +0000 (+0800) Subject: ASoC: ssm2518: Fix trivial typo in checking tx_mask and rx_mask values X-Git-Tag: upstream/snapshot3+hdmi~4491^2~16^2~1^2~9^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1aad4e574bced05b4036e79981a7800dd275cf1c;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Acked-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/ssm2518.c b/sound/soc/codecs/ssm2518.c index 3139a1b..95aed55 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) {