]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ASoC: bcm2835: Support left/right justified and DSP modes
authorMatthias Reichl <hias@horus.com>
Sun, 7 May 2017 13:30:50 +0000 (15:30 +0200)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 16 Feb 2018 22:11:49 +0000 (17:11 -0500)
commit3de79cc72b447aea77479750fe235382d58599c0
tree2e3a1a4207171f3e5b2d7cea7e0e116f81a346a8
parentc0153f97e8fc5d1e0292ab7248d6945fccf870c3
ASoC: bcm2835: Support left/right justified and DSP modes

DSP modes and left/right justified modes can be supported
on bcm2835 by configuring the frame sync polarity and
frame sync length registers and by adjusting the
channel data position registers.

Clock and frame sync polarity handling in hw_params has
been refactored to make the interaction between logical
rising/falling edge frame start and physical configuration
(changed by normal/inverted polarity modes) clearer.

Modes where the first active data bit is transmitted immediately
after frame start (eg DSP mode B with slot 0 active)
only work reliable if bcm2835 is configured as frame master.
In frame slave mode channel swap (or shift, this isn't quite
clear yet) can occur.

Currently the driver only warns if an unstable configuration
is detected but doensn't prevent using them.

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