[alsa-devel] DAPM widgets beyond 2.6.38

Mark Brown broonie at opensource.wolfsonmicro.com
Fri Mar 25 11:47:14 CET 2011

On Thu, Mar 24, 2011 at 07:47:40PM -0700, Peter Hsiang wrote:

As ever always CC maintainers on mails if you want them to see them

> 1) In 2.6.38, after these 2 operations: 
>   snd_soc_dapm_new_controls(dapm, dapm_widgets, ARRAY_SIZE(dapm_widgets));
>   snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));
> Is it *always* necessary to call snd_soc_dapm_new_widgets(dapm)?  
> I have seen one case where it was not called.

It's not actually required for CODEC drivers, the core will run it when
probe finishes.

> 2) In 2.6.39, to do the same, is there any function to call other than the table entries?

Not for the DAPM init.

More information about the Alsa-devel mailing list