ASoC: ac97: Support multi-platform AC'97
authorMark Brown <broonie@linaro.org>
Wed, 26 Jun 2013 11:45:59 +0000 (12:45 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 27 Jun 2013 08:48:42 +0000 (09:48 +0100)
commitb047e1cce8fe32475ab61846772943a5e4c0a908
tree9d04d8101d161b96f96c2e2e5bd03900011828ec
parentb49dff8cb61cd4715991612e2eb6905b73a0be78
ASoC: ac97: Support multi-platform AC'97

Currently we can only have a single platform built in with AC'97 support
due to the use of a global variable to provide the bus operations. Fix
this by making that variable a pointer and having the bus drivers set the
operations prior to registering.

This is not a particularly good or nice approach but it avoids blocking
multiplatform and a real fix involves fixing the fairly deep problems
with AC'97 support - we should be converting it to a real bus.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
20 files changed:
include/sound/soc.h
sound/soc/au1x/ac97c.c
sound/soc/au1x/psc-ac97.c
sound/soc/blackfin/bf5xx-ac97.c
sound/soc/cirrus/ep93xx-ac97.c
sound/soc/codecs/ac97.c
sound/soc/codecs/ad1980.c
sound/soc/codecs/stac9766.c
sound/soc/codecs/wm9705.c
sound/soc/codecs/wm9712.c
sound/soc/codecs/wm9713.c
sound/soc/fsl/imx-ssi.c
sound/soc/fsl/mpc5200_psc_ac97.c
sound/soc/nuc900/nuc900-ac97.c
sound/soc/pxa/pxa2xx-ac97.c
sound/soc/samsung/ac97.c
sound/soc/sh/hac.c
sound/soc/soc-core.c
sound/soc/tegra/tegra20_ac97.c
sound/soc/txx9/txx9aclc-ac97.c