From 8dbc6535d5f9583de7964e0153f01155a9ce6e17 Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Wed, 23 Jul 2014 15:10:58 +0200 Subject: 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. --- sound/soc/tegra/tegra30_spdif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 |= -- cgit v1.2.3