[PATCH 2/2] ASoC: tegra: enable ignore_zero_sysclk for Tegra

Sheetal posted 2 patches 2 weeks, 6 days ago
[PATCH 2/2] ASoC: tegra: enable ignore_zero_sysclk for Tegra
Posted by Sheetal 2 weeks, 6 days ago
Tegra AUD_MCLK has a minimum allowed clock frequency of 1.5MHz, but
0Hz requests cause the system to set a lower rate than this minimum,
resulting in the following errors from the Tegra Boot and Power
Management Processor (BPMP) that configures the clocks:

 verify_rate_range: FMON_AUD_MCLK: rate 383999 below min 1500000
 fmon_update_config: FMON_AUD_MCLK: detected fault 0x80

Enable the ignore_zero_sysclk flag for Tegra audio graph card to
ignore these 0Hz sysclk requests during stream shutdown.

Signed-off-by: Sheetal <sheetal@nvidia.com>
---
 sound/soc/tegra/tegra_audio_graph_card.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/tegra/tegra_audio_graph_card.c b/sound/soc/tegra/tegra_audio_graph_card.c
index ea10e6e8a9fe..3c88c43e1273 100644
--- a/sound/soc/tegra/tegra_audio_graph_card.c
+++ b/sound/soc/tegra/tegra_audio_graph_card.c
@@ -209,6 +209,7 @@ static int tegra_audio_graph_probe(struct platform_device *pdev)
 	card->component_chaining = 1;
 	priv->simple.ops = &tegra_audio_graph_ops;
 	priv->simple.force_dpcm = 1;
+	priv->simple.ignore_zero_sysclk = 1;
 
 	return audio_graph_parse_of(&priv->simple, dev);
 }
-- 
2.17.1