ASoC: Decouple DAPM from CODECs

Decoupling Dynamic Audio Power Management (DAPM) from codec devices is
required when developing ASoC further. Such as for other ASoC components to
have DAPM widgets or when extending DAPM to handle cross-device paths.

This patch decouples DAPM related variables from struct snd_soc_codec and
moves them to new struct snd_soc_dapm_context that is used to encapsulate
DAPM context of a device. ASoC core and API of DAPM functions are modified
to use DAPM context instead of codec.

This patch does not change current functionality and a large part of changes
come because of structure and internal API changes.

Core implementation is from Liam Girdwood <[email protected]> with some
minor core changes, codecs and machine driver conversions from
Jarkko Nikula <[email protected]>.

Signed-off-by: Liam Girdwood <[email protected]>
Signed-off-by: Jarkko Nikula <[email protected]>
Cc: Nicolas Ferre <[email protected]>
Cc: Manuel Lauss <[email protected]>
Cc: Mike Frysinger <[email protected]>
Cc: Cliff Cai <[email protected]>
Cc: Kevin Hilman <[email protected]>
Cc: Ryan Mallon <[email protected]>
Cc: Timur Tabi <[email protected]>
Cc: Sascha Hauer <[email protected]>
Cc: Lars-Peter Clausen <[email protected]>
Cc: Arnaud Patard (Rtp) <[email protected]>
Cc: Wan ZongShun <[email protected]>
Cc: Eric Miao <[email protected]>
Cc: Jassi Brar <[email protected]>
Cc: Daniel Gloeckner <[email protected]>
Cc: Kuninori Morimoto <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
108 files changed