commit | ce6120cca2589ede530200c7cfe11ac9f144333c | [log] [tgz] |
---|---|---|
author | Liam Girdwood <[email protected]> | Fri Nov 05 15:53:46 2010 +0200 |
committer | Mark Brown <[email protected]> | Sat Nov 06 11:28:29 2010 -0400 |
tree | 6ea7c26ce64dd4753e7cf9a3b048e74614b169dc | |
parent | 22e2fda5660cdf62513acabdb5c82a5af415f838 [diff] |
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]>