summaryrefslogtreecommitdiff
path: root/sound/soc/tegra/tegra30_spdif.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/tegra/tegra30_spdif.c')
-rw-r--r--sound/soc/tegra/tegra30_spdif.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/tegra/tegra30_spdif.c b/sound/soc/tegra/tegra30_spdif.c
index a1f97fb4fa73..3a8f9b7932d9 100644
--- a/sound/soc/tegra/tegra30_spdif.c
+++ b/sound/soc/tegra/tegra30_spdif.c
@@ -37,6 +37,7 @@
#include <linux/slab.h>
#include <linux/io.h>
#include <mach/iomap.h>
+#include <mach/hdmi-audio.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
@@ -298,6 +299,12 @@ static int tegra30_spdif_hw_params(struct snd_pcm_substream *substream,
tegra30_spdif_disable_clocks(spdif);
+ ret = tegra_hdmi_setup_audio_freq_source(srate, SPDIF);
+ if (ret) {
+ dev_err(dev, "Can't set HDMI audio freq source: %d\n", ret);
+ return ret;
+ }
+
return 0;
}