ASoC: sun8i-codec: Enable AIF mono/stereo control
authorSamuel Holland <samuel@sholland.org>
Thu, 1 Oct 2020 02:11:30 +0000 (21:11 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 5 Oct 2020 13:16:20 +0000 (14:16 +0100)
commit18ebd62c30f0380da11d6c86e20b56c771ac1e18
treefda7da5e922aa9af482a9a39c4f0dad8b9ff2783
parent4ab60cef3149d57fe56add8c60ee7e6d45816f27
ASoC: sun8i-codec: Enable AIF mono/stereo control

Each left/right pair of AIF input/output channels can be swapped or
combined. This is useful for sending a mono audio source to both sides
of a stereo sink, or for creating complex mixing scenarios.

Add the support to control this feature from userspace.

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