]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ASoC: bcm2835: Enforce full symmetry
authorMatthias Reichl <hias@horus.com>
Sun, 7 May 2017 14:24:57 +0000 (16:24 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 5 Apr 2018 14:21:14 +0000 (16:21 +0200)
commite8dd81007f87987a8ea4655fc51b56a776dbbf02
tree1d4c6b15283a6e07258013576167c14e6d1bb63b
parentcd06397528145bf11d06eb163d4f62ea9a49cec0
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