]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: bcm2835: Enforce full symmetry
authorMatthias Reichl <hias@horus.com>
Wed, 8 Nov 2017 20:03:32 +0000 (21:03 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 10 Nov 2017 21:26:03 +0000 (21:26 +0000)
commita5bdb42c840aecb846b212465f2b81bfb9646ceb
tree9ebdedf52b977293827c54cda8610b2a3f49c099
parent17ced423d911bd091742c817f11b89972b8a286b
ASoC: bcm2835: Enforce full symmetry

bcm2835's configuration registers can't be changed when a stream
is running, which means asymmetric configurations aren't supported.

Channel and rate symmetry are already enforced by constraints
but samplebits had been missed.

As hw_params doesn't check for symmetry constraints by itself
and just returns success if a stream is running this led to
situations where asymmetric configurations were seeming to
succeed but of course didn't work because the hardware wasn't
configured at all.

Fix this by adding the missing samplerate symmetry constraint.

Signed-off-by: Matthias Reichl <hias@horus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/bcm/bcm2835-i2s.c