[alsa-devel] [PATCH v2 1/2] ASoC: DAPM: Add private data pointer for DAPM widget

Peter Ujfalusi peter.ujfalusi at ti.com
Fri Aug 19 09:41:18 CEST 2011


Support for using custom private data assigned
per DAPM widget.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi at ti.com>
---
 include/sound/soc-dapm.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index 602024d..84114e7 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -467,6 +467,7 @@ struct snd_soc_dapm_widget {
 	unsigned char force:1;			/* force state */
 	unsigned char ignore_suspend:1;         /* kept enabled over suspend */
 	int subseq;				/* sort within widget type */
+	void *private_data;
 
 	int (*power_check)(struct snd_soc_dapm_widget *w);
 
-- 
1.7.6



More information about the Alsa-devel mailing list