ASoC: cs4270: allow passing freq=0 in set_dai_sysclk()
authorDaniel Mack <daniel@caiaq.de>
Fri, 15 Jan 2010 16:36:48 +0000 (17:36 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 15 Jan 2010 17:28:41 +0000 (17:28 +0000)
commit6aababdf20bb8892023bb8df136514d7679e4959
tree4919145129a8b76b5bd94046da3b2a73beab4fdb
parent738ada47cf60830d37bb70ffb0b0281d19fc4c7f
ASoC: cs4270: allow passing freq=0 in set_dai_sysclk()

For setups with variable MCLKs, the current logic of limiting the
available sampling rates at startup time is not sufficient. We need to
be able to change the setting at a later point, and so the codec must
offer all possible rates until the hw_params are given.

This patches allows that by passing 0 as 'freq' argument to
cs4270_set_dai_sysclk().

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Acked-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/cs4270.c