Skip to content

Commit

Permalink
ASoC: tlv320dac33: Correct the OSCSET calculation
Browse files Browse the repository at this point in the history
OSCSET calculation was not correct in case of 44.1KHz
sampling rate.
With small adjustment both 48 and 44.1 KHz calculation
now gives the correct value.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Peter Ujfalusi authored and Mark Brown committed Feb 16, 2010
1 parent e5e878c commit 7833ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/tlv320dac33.c
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ static int dac33_hw_params(struct snd_pcm_substream *substream,
}

#define CALC_OSCSET(rate, refclk) ( \
((((rate * 10000) / refclk) * 4096) + 5000) / 10000)
((((rate * 10000) / refclk) * 4096) + 7000) / 10000)
#define CALC_RATIOSET(rate, refclk) ( \
((((refclk * 100000) / rate) * 16384) + 50000) / 100000)

Expand Down

0 comments on commit 7833ae0

Please sign in to comment.