[alsa-devel] [PATCH] ASoC: Add optional pointer to machine audio routes to snd_soc_card

Mark Brown broonie at opensource.wolfsonmicro.com
Fri Dec 17 23:37:09 CET 2010

On Fri, Dec 17, 2010 at 07:39:40PM +0200, Jarkko Nikula wrote:
> This is targeted mostly to cross-device setups where single audio map
> defining routes around and between the codecs looks cleaner than defining
> and registering maps to each codec separately from machine init callbacks.
> This could be also used to reduce simple machine init callbacks where only
> snd_soc_dapm_add_routes and snd_soc_dapm_sync are called. However, this does
> work only if the widgets names are unique in the system.
> Idea of common audio map came from Peter Ujfalusi <peter.ujfalusi at nokia.com>.

Good idea.  We should probably just do this for CODECs as well, they're
often doing similar boiler plate type stuff.

More information about the Alsa-devel mailing list