summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2014-07-23 15:10:58 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2014-07-23 15:10:58 +0200
commit8dbc6535d5f9583de7964e0153f01155a9ce6e17 (patch)
treea739f25abe58e7dd9311e7302dde6bdbbdc67f8d
parent17714a865512ad8634bcc616c4e2e65f8fff2646 (diff)
apalis/colibri t30: fix issue with slow spdif clock
Fix issue with slow SPDIF clock by just doubling desired rate prior to doing any further calculations on it. BTW: A proper fix might involve overall clock doubler configuration.
-rw-r--r--sound/soc/tegra/tegra30_spdif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/tegra/tegra30_spdif.c b/sound/soc/tegra/tegra30_spdif.c
index 038127c0afb0..d924c1089f17 100644
--- a/sound/soc/tegra/tegra30_spdif.c
+++ b/sound/soc/tegra/tegra30_spdif.c
@@ -228,7 +228,7 @@ static int tegra30_spdif_hw_params(struct snd_pcm_substream *substream,
srate = params_rate(params);
spdif->reg_ch_sta_a &= ~TEGRA30_SPDIF_CH_STA_TX_A_SAMP_FREQ_MASK;
spdif->reg_ch_sta_b &= ~TEGRA30_SPDIF_CH_STA_TX_B_ORIG_SAMP_FREQ_MASK;
- switch (srate) {
+ switch (srate * 2) {
case 32000:
spdifclock = 4096000;
spdif->reg_ch_sta_a |=