[alsa-devel] [PATCH v2 1/2] ASoC: DAPM: Add private data pointer for DAPM widget
Mark Brown
broonie at opensource.wolfsonmicro.com
Tue Aug 23 00:32:32 CEST 2011
On Mon, Aug 22, 2011 at 04:33:20PM +0300, Péter Ujfalusi wrote:
> On Saturday 20 August 2011 09:02:20 Mark Brown wrote:
> > If we're adding this we should probably go the accessor route like we do
> > with the driver data for the CODECs.
> Something like:
> static inline void *snd_soc_widget_get_pdata(struct snd_soc_dapm_widget *w)
> {
> return w->private_data;
> }
Yeah, something like that.
> Another option at the moment is that I create global variable within the omap-
> mcpdm.c, so I can have access to the mcpdm within the dapm event handler.
That'll probably break in future I'd guess.
More information about the Alsa-devel
mailing list