]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Warn rather than set a silly constraint when we can't do symmetry
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 8 Mar 2011 00:17:56 +0000 (00:17 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 8 Mar 2011 18:56:30 +0000 (18:56 +0000)
commita3168222b29a256c5a4734278bb371703a9b4ce2
tree74b3f9a3820ec11c7e77433ca26f3c355cb54b85
parent688f3b556c2b5894cbb21b0e422403150377ffb4
ASoC: Warn rather than set a silly constraint when we can't do symmetry

Symmetric rate configuration can fail if the second stream starting tries
to apply the symmetric constraint before the first stream has got far
enough to pick a rate. Rather than try to enforce a nonsensical rate of
0Hz log a warning and allow the application to carry on. Things might go
wrong later on but the user will know about it and there's unlikely to be
lasting damage.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
sound/soc/soc-core.c