]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdbf8f9574ca37e54c183026e94f5a3d160462765
treedb202135d3217371f5e39aad020af2a82337e8e2
parentc687bb41805a1238a38a086952014d5682516d9d
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