]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ASoC: sun8i-codec: Program DAI format before clock inversion
authorSamuel Holland <samuel@sholland.org>
Wed, 14 Oct 2020 06:19:26 +0000 (01:19 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 26 Oct 2020 14:56:52 +0000 (14:56 +0000)
commitfd57ed2de5b1a5e153abf2f8c02fc3c1bf40de3b
tree05ad93901aa87b28e5f88493af4f3f08bfae5e22
parent7826b8d15ec2cea1c1b8680ada1eb965d0660aa6
ASoC: sun8i-codec: Program DAI format before clock inversion

The LRCK inversion bit has a different meaning in DSP mode: it selects
between the DSP A and DSP B formats. To support this, we need to know if
the selected format is a DSP format. One easy way to do this is to set
the format field before the clock inversion fields.

Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20201014061941.4306-3-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun8i-codec.c