]> 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)
commit37a9eb0b822622d749c3c465aa8043d982825693
tree9ebdedf52b977293827c54cda8610b2a3f49c099
parentb4ea3f4a527c3efef8c5b72f3b47d2cdd83e12c4
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