ASoC: bcm2835: Enforce full symmetry
authorMatthias Reichl <hias@horus.com>
Sun, 7 May 2017 14:24:57 +0000 (16:24 +0200)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:54:31 +0000 (15:54 +0100)
commit15da62d560f2196aaaf064e0d317d93803e70217
tree4183d95be79d55f6898e1c897e0d82ebf28509e6
parent3f3d04d2b83c19c0a293ed5768f3dcea6af4282f
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>
sound/soc/bcm/bcm2835-i2s.c