ASoC: sun8i-codec: Prepare to extend the DAI driver
authorSamuel Holland <samuel@sholland.org>
Wed, 14 Oct 2020 06:19:25 +0000 (01:19 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 26 Oct 2020 14:56:51 +0000 (14:56 +0000)
commit7826b8d15ec2cea1c1b8680ada1eb965d0660aa6
tree0082ccecd34b2a19ef284b63012b46d97590902e
parentfc7f6a054e1a8c5525bf59c73d8e6333d48a5120
ASoC: sun8i-codec: Prepare to extend the DAI driver

In preparation for adding additional DAIs to this component, convert the
DAI driver definition to an array. Since this changes all of the lines
in the definition anyway, let's move it closer to the ops function
definitions, instead of on the far side of the DAPM arrays. And while
moving the DAI driver ops, rename the set_fmt hook to match the usual
naming scheme.

Give the existing DAI an explicit ID and more meaningful stream names,
so it will remain unique as more DAIs are added. The AIF widget streams
must be updated to match.

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