]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl_sai: Fix Bit Clock Polarity configurations
authorNicolin Chen <Guangyu.Chen@freescale.com>
Fri, 4 Apr 2014 07:09:47 +0000 (15:09 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 8 Apr 2014 11:49:55 +0000 (12:49 +0100)
commitaededdb1a50755b09f17570bfe69e14f36c86d30
tree4ff0dc41289efc0ebd06aa984555f1b20624bae8
parent4cd9859d66b6c33b5de51d2f556c0bb9d7dab627
ASoC: fsl_sai: Fix Bit Clock Polarity configurations

The BCP bit in TCR4/RCR4 register rules as followings:
  0 Bit clock is active high with drive outputs on rising edge
    and sample inputs on falling edge.
  1 Bit clock is active low with drive outputs on falling edge
    and sample inputs on rising edge.

For all formats currently supported in the fsl_sai driver, they're exactly
sending data on the falling edge and sampling on the rising edge.

However, the driver clears this BCP bit for all of them which results click
noise when working with SGTL5000 and big noise with WM8962.

Thus this patch corrects the BCP settings for all the formats here to fix
the nosie issue.

Signed-off-by: Nicolin Chen <Guangyu.Chen@freescale.com>
Acked-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/fsl_sai.c