]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: zte: spdif: correct ZX_SPDIF_CLK_RAT define
authorShawn Guo <shawn.guo@linaro.org>
Thu, 8 Dec 2016 08:44:15 +0000 (16:44 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 8 Dec 2016 16:09:44 +0000 (16:09 +0000)
The macro ZX_SPDIF_CLK_RAT should be 2 instead of 4.  With this
fix, we can get correct audio output on HDMI through SPDIF interface.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Jun Nie <jun.nie@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/zte/zx-spdif.c

index 26265ce4caca17da4b6315a4627130ac63851063..9fa6463ce5d75a58f471bfbfd0a64b948755641f 100644 (file)
@@ -71,7 +71,7 @@
 #define ZX_VALID_RIGHT_TRACK           (2 << 0)
 #define ZX_VALID_TRACK_MASK            (3 << 0)
 
-#define ZX_SPDIF_CLK_RAT               (4 * 32)
+#define ZX_SPDIF_CLK_RAT               (2 * 32)
 
 struct zx_spdif_info {
        struct snd_dmaengine_dai_dma_data       dma_data;