]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: sun4i-codec: Move data structures to add create_card call to quirks
authorChen-Yu Tsai <wens@csie.org>
Thu, 3 Nov 2016 07:55:43 +0000 (15:55 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 3 Nov 2016 17:25:16 +0000 (11:25 -0600)
commit2f2a3462bc15e9613412ca186bf8a6611afa66c7
tree3051b24ef8610ed978ba6d4da546e5331bae124d
parentae73b34f66f629ab1986673e8e069342c09e3168
ASoC: sun4i-codec: Move data structures to add create_card call to quirks

The audio codec on later Allwinner SoCs have a different layout and
audio path compared to the A10/A20. However the PCM parts are still
the same.

The different layout and audio paths mean we need a different
create_card function for different families, so they can create
DAPM endpoint widgets and routes.

This patch moves the regmap configs, quirks and of_device_id
structures to just before the probe function, so we can, among other
things, include a pointer for the create_card function. None of the
lines of code were changed.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun4i-codec.c