ASoC: mchp-spdiftx: Do not set Validity bit(s)
authorCodrin Ciubotariu <codrin.ciubotariu@microchip.com>
Wed, 4 Nov 2020 15:57:38 +0000 (17:57 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 4 Nov 2020 17:50:22 +0000 (17:50 +0000)
The Validity bits (bit 28) must not be set in order to have the samples
valid. Some controllers look for this bit and ignore the samples if it
is set.

Fixes: 06ca24e98e6b ("ASoC: mchp-spdiftx: add driver for S/PDIF TX Controller")
Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Link: https://lore.kernel.org/r/20201104155738.68403-1-codrin.ciubotariu@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/atmel/mchp-spdiftx.c

index 82c1eecd2528500eeaa69d8101277600a7001197..3bd350afb74348010d54f9e59b1a1961d7b9fcc8 100644 (file)
@@ -487,7 +487,6 @@ static int mchp_spdiftx_hw_params(struct snd_pcm_substream *substream,
        }
        mchp_spdiftx_channel_status_write(dev);
        spin_unlock_irqrestore(&ctrl->lock, flags);
-       mr |= SPDIFTX_MR_VALID1 | SPDIFTX_MR_VALID2;
 
        if (dev->gclk_enabled) {
                clk_disable_unprepare(dev->gclk);