diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2014-06-23 16:53:43 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-12-21 14:26:11 +0100 |
commit | d343a14a7f361d0e75e0862e774242dfffd28563 (patch) | |
tree | f66174da80ff87444c8bbc8726dc5193188a9d60 /sound/soc | |
parent | dcb6827902a359e0eaff528c84beaa2fc34948a6 (diff) |
mxc_spdif.c: set the validity bit to 'valid'
Each spdif sample is qualified by the validity bit.
The bit shall be logic '0' if the audio sample is valid.
This commit configures the transmitter to always send '0' rather
than always send '1'.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit 0bef909d061cd800da3f553d24129fc48bf3af01)
(cherry picked from commit 6ff91330b3dee51b14cde4442f78a07e87d21d68)
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/fsl/fsl_spdif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c index b210deef3b6d..900108e9ff4c 100644 --- a/sound/soc/fsl/fsl_spdif.c +++ b/sound/soc/fsl/fsl_spdif.c @@ -487,10 +487,10 @@ static int fsl_spdif_startup(struct snd_pcm_substream *substream, if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { scr = SCR_TXFIFO_AUTOSYNC | SCR_TXFIFO_CTRL_NORMAL | SCR_TXSEL_NORMAL | SCR_USRC_SEL_CHIP | - SCR_TXFIFO_FSEL_IF8; + SCR_TXFIFO_FSEL_IF8 | SCR_VAL_CLEAR; mask = SCR_TXFIFO_AUTOSYNC_MASK | SCR_TXFIFO_CTRL_MASK | SCR_TXSEL_MASK | SCR_USRC_SEL_MASK | - SCR_TXFIFO_FSEL_MASK; + SCR_TXFIFO_FSEL_MASK | SCR_VAL_MASK; for (i = 0; i < SPDIF_TXRATE_MAX; i++) { ret = clk_prepare_enable(spdif_priv->txclk[i]); if (ret) |