]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Allow source specification for CODEC level sysclk
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 24 Aug 2011 19:09:01 +0000 (20:09 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 31 Aug 2011 08:57:35 +0000 (09:57 +0100)
commit7c9088ec5c6ec1a939c3fb70bd53f56023437e1a
tree7407347d709bda251c58185909c3d5fc58178587
parent2bcd58202bcdb1014a66e07b5047d39097d3a6ce
ASoC: Allow source specification for CODEC level sysclk

Similarly to PLLs/FLLs some modern CODECs provide selectable system clock
sources. When the clock is the clock for a DAI we do not usually need to
identify which clock is being configured so can use clk_id for the source
clock but with CODEC wide system clocks we will need to specify both the
clock being configured and the source.

Add a source argument to the CODEC driver set_sysclk() operation to
reflect this. As this operation is not as widely used as the DAI
set_sysclk() operation the change is not very invasive. We probably
ought to go and make the same alternation for DAIs at some point.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc.h
sound/soc/codecs/adav80x.c
sound/soc/codecs/wm9081.c
sound/soc/samsung/speyside.c
sound/soc/soc-core.c