diff options
author | Sumit Bhattacharya <sumitb@nvidia.com> | 2011-09-29 12:44:31 +0530 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-10-11 11:25:25 -0700 |
commit | 20b94da045dfed6046e90d468d6e0d31eb72ec67 (patch) | |
tree | 42f80834a63ab7f733df5746a8f0111979b07c9b /sound | |
parent | 785b8f8fb2e07c1c14cee371dc1ce2a998599c63 (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
Diffstat (limited to 'sound')
-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); |