OSDN Git Service

ASoC: jz4740: Add dynamic sampling rate support to jz4740-i2s
authorZubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Tue, 3 Feb 2015 10:55:57 +0000 (10:55 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 4 Feb 2015 21:12:39 +0000 (21:12 +0000)
commit26b0aad80a86d39b8c3a3189fbaf477ef92a64ff
treedb202135d3217371f5e39aad020af2a82337e8e2
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
ASoC: jz4740: Add dynamic sampling rate support to jz4740-i2s

The div clock register is not modified during jz4740_i2s_hw_params.
Hence, default sampling rates are actually used regardless of
sampling rates input from userspace.

This patch adds support to calculate the value of the divider from
the parameters passed from userspace and update the relevant div
registers

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/jz4740/jz4740-i2s.c