ASoC: bcm2835: move to use the clock framework
authorMartin Sperl <kernel@martin.sperl.org>
Tue, 12 Jan 2016 12:35:46 +0000 (12:35 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 15 Jan 2016 18:09:10 +0000 (18:09 +0000)
commit517e7a1537ae4663268be5d0c0ec62c563b9fc99
tree2d808d9786f2e37b0104ac3b44a69e0aaf9416db
parent7905f08247131ac5d5c0e2f057e0cf19da40e5da
ASoC: bcm2835: move to use the clock framework

Since the move to the new clock framework with commit 94cb7f76caa0
("ARM: bcm2835: Switch to using the new clock driver support.")
this driver was no longer functional as it was manipulating the
clock registers locally without going true the framework.

This patch moves to use the new clock framework and also
moves away from the hardcoded address offsets for DMA getting
the dma-address directly from the device tree.

Note that the optimal bclk_ratio selection to avoid jitter
due to the use of fractional dividers, which is in the
current version has been removed, because not all devices
support these non power of 2 sized transfers, which resulted
in lots of (downstream) modules that use:
  snd_soc_dai_set_bclk_ratio(cpu_dai, sample_bits * 2);

Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/bcm/bcm2835-i2s.c