Hello,
Changes since v2 [1]: - Code for the DAPM_SUPPLY widget attach has been moved to core (Request from Mark, if I understood correctly). - Makes it reusable in other drivers - Additional code still needed in DAI (event handler, selection of the dai), and machine drivers (DAPM routing) - Should work even if we have multiple instances of the DAI (coment from Lars-Peter Clausen)
[1] http://mailman.alsa-project.org/pipermail/alsa-devel/2011-August/042923.html
Regards, Peter
--- Misael Lopez Cruz (1): ASoC: omap-mcpdm: Replace legacy driver
Peter Ujfalusi (2): ASoC: DAPM: Add private data pointer for DAPM widget ASoC: soc-dapm: API to attach DAPM_SUPPLY to be used for dai
include/sound/soc-dapm.h | 18 + sound/soc/omap/Makefile | 2 +- sound/soc/omap/mcpdm.c | 474 ------------------------- sound/soc/omap/mcpdm.h | 152 -------- sound/soc/omap/omap-mcpdm.c | 813 ++++++++++++++++++++++++++++--------------- sound/soc/omap/omap-mcpdm.h | 97 +++++ sound/soc/omap/sdp4430.c | 14 +- sound/soc/soc-dapm.c | 27 ++ 8 files changed, 690 insertions(+), 907 deletions(-) delete mode 100644 sound/soc/omap/mcpdm.c delete mode 100644 sound/soc/omap/mcpdm.h rewrite sound/soc/omap/omap-mcpdm.c (46%) create mode 100644 sound/soc/omap/omap-mcpdm.h