diff options
author | Sumit Bhattacharya <sumitb@nvidia.com> | 2011-09-29 12:44:31 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:49:16 -0800 |
commit | fcc5c619787de3813e1fffed8edd92182751f5aa (patch) | |
tree | e934a7b396c6cc739aa1762227692dd8bd78dc45 /sound/soc/tegra/tegra30_spdif.c | |
parent | d7e091608521465c0484d12052e24b59c5f28235 (diff) |
ASoC: Tegra: SPDIF: Set 2x spdif_out clock for T30
It is a WAR to have better audio quality for HDMI audio over SPDIF.
Bug 872652
Change-Id: I896589fd60980c155fae5900618734e1912b4a38
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/55143
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Tested-by: Gerrit_Virtual_Submit
Rebase-Id: Re1fbe68f78d561aea3f7d1f0492086ae0deea742
Diffstat (limited to 'sound/soc/tegra/tegra30_spdif.c')
-rw-r--r-- | sound/soc/tegra/tegra30_spdif.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/tegra/tegra30_spdif.c b/sound/soc/tegra/tegra30_spdif.c index 3a8f9b7932d9..b934634fb5eb 100644 --- a/sound/soc/tegra/tegra30_spdif.c +++ b/sound/soc/tegra/tegra30_spdif.c @@ -284,6 +284,10 @@ static int tegra30_spdif_hw_params(struct snd_pcm_substream *substream, return -EINVAL; } + // WAR: Apply 2x spdifclock to have proper audio (bug 838569) + // Should be removed once HDA is up. + spdifclock *= 2; + ret = clk_set_rate(spdif->clk_spdif_out, spdifclock); if (ret) { dev_err(dev, "Can't set SPDIF clock rate: %d\n", ret); |