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)
commit3d2b3c707b3f9516d6c183eb1ffbf02a6dc5dc98
tree9ebdedf52b977293827c54cda8610b2a3f49c099
parent675c0ee514f56ea39f6f550299621aafe9a53fc0
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