Skip to contentSkip to conversation

ASoC: tegra: update spdif tx_atn_lvl on hw_params()

PATCH In review Dmitry Osipenko 2 participants 2 messages Oct 30, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: tegra: update spdif tx_atn_lvl on hw_params()

This prevents playing sound with wrong speed.

---
I'm using deep sleep on my tablet and faced with this bug when played sound via hdmi after suspend. I know that there is no deep sleep support in upstream kernel, but will be nice to see that bug fixed.

 sound/soc/tegra/tegra20_spdif.c | 4 ++++
 1 file changed, 4 insertions(+)
sound/soc/tegra/tegra20_spdif.c +4 -0
index 3ebc867..24b46f1 100644
@@ -114,6 +114,10 @@ static int tegra20_spdif_hw_params(struct snd_pcm_substream *substream,
 		return ret;
 	}
 
+	regmap_update_bits(spdif->regmap, TEGRA20_SPDIF_DATA_FIFO_CSR,
+			   TEGRA20_SPDIF_DATA_FIFO_CSR_TX_ATN_LVL_MASK,
+			   TEGRA20_SPDIF_DATA_FIFO_CSR_TX_ATN_LVL_TU4_WORD_FULL);
+
 	return 0;
 }
 
Signature · 1 line
1.7.12
Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Dmitry Osipenko

This prevents playing sound with wrong speed.

I guess this is fine, although as you say it makes little practical difference in the mainline kernel; I'm sure there is much other work to be done in order to support suspend/resume.