Skip to content

Commit 1fb5004

Browse files
Sheetalbroonie
authored andcommitted
ASoC: tegra: Update PLL rate for Tegra264
The PLLs should be set with a VCO frequency in the 900MHz – 1GHz range to minimize jitter and ppm error for Tegra264. Add the PLLA rate accordingly. Therefore, use 983040000 frequency is for multiple of 8K frequencies and 993484800 frequency is for multiple of 11.025K frequencies. Signed-off-by: Sheetal <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent fa83757 commit 1fb5004

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

sound/soc/tegra/tegra_audio_graph_card.c

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0-only
2+
// SPDX-FileCopyrightText: Copyright (c) 2020-2025 NVIDIA CORPORATION. All rights reserved.
23
//
34
// tegra_audio_graph_card.c - Audio Graph based Tegra Machine Driver
4-
//
5-
// Copyright (c) 2020-2021 NVIDIA CORPORATION. All rights reserved.
65

76
#include <linux/math64.h>
87
#include <linux/module.h>
@@ -232,11 +231,22 @@ static const struct tegra_audio_cdata tegra186_data = {
232231
.plla_out0_rates[x11_RATE] = 45158400,
233232
};
234233

234+
static const struct tegra_audio_cdata tegra264_data = {
235+
/* PLLA1 */
236+
.plla_rates[x8_RATE] = 983040000,
237+
.plla_rates[x11_RATE] = 993484800,
238+
/* PLLA1_OUT1 */
239+
.plla_out0_rates[x8_RATE] = 49152000,
240+
.plla_out0_rates[x11_RATE] = 45158400,
241+
};
242+
235243
static const struct of_device_id graph_of_tegra_match[] = {
236244
{ .compatible = "nvidia,tegra210-audio-graph-card",
237245
.data = &tegra210_data },
238246
{ .compatible = "nvidia,tegra186-audio-graph-card",
239247
.data = &tegra186_data },
248+
{ .compatible = "nvidia,tegra264-audio-graph-card",
249+
.data = &tegra264_data },
240250
{},
241251
};
242252
MODULE_DEVICE_TABLE(of, graph_of_tegra_match);

0 commit comments

Comments
 (0)