]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: fsi: add master clock control functions
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 6 Nov 2012 02:30:38 +0000 (18:30 -0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 6 Nov 2012 08:54:42 +0000 (09:54 +0100)
commitab6f6d85210c4d0265cf48e9958c04e08595055a
tree95a3371ac6700bc5b7d351b93a2190ec48e65416
parent80b4addc9c697c8d515afdaf671b948b3de6801c
ASoC: fsi: add master clock control functions

Current FSI driver required set_rate() platform callback function
to set audio clock if it was master mode,
because it seemed that CPG/FSI-DIV clocks calculation depend on
platform/board/cpu.
But it was calculable regardless of platform.
This patch supports audio clock calculation method,
but the sampling rate under 32kHz is not supported at this point.
Old type set_rate() is still supported now,
but it will be deleted on next version

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/sh_fsi.h
sound/soc/sh/fsi.c