alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* DAPM widgets beyond 2.6.38
@ 2011-03-25  2:47 Peter Hsiang
  2011-03-25 10:47 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Hsiang @ 2011-03-25  2:47 UTC (permalink / raw)
  To: alsa-devel@alsa-project.org

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.

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

Thanks,

Peter

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: DAPM widgets beyond 2.6.38
  2011-03-25  2:47 DAPM widgets beyond 2.6.38 Peter Hsiang
@ 2011-03-25 10:47 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2011-03-25 10:47 UTC (permalink / raw)
  To: Peter Hsiang; +Cc: alsa-devel@alsa-project.org

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
reliably.

> 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-25 10:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-25  2:47 DAPM widgets beyond 2.6.38 Peter Hsiang
2011-03-25 10:47 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).