]> rtime.felk.cvut.cz Git - linux-imx.git/commit
ALSA: Add snd_ctl_replace() to dynamically replace a control
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Wed, 16 Mar 2011 12:16:39 +0000 (12:16 +0000)
committerTakashi Iwai <tiwai@suse.de>
Tue, 22 Mar 2011 12:22:39 +0000 (13:22 +0100)
commit66b5b9722b8743f83d4c3f11f39665f5f2c40b12
treeab927644770847a0e4a8417dcea6ed8c789017c7
parent1872f589951caee1afd7cd2ea6729ac892de9ddf
ALSA: Add snd_ctl_replace() to dynamically replace a control

Add a function to dynamically replace a given control.  If the
control does not already exist, a third parameter is used to determine
whether to actually add that control.  This is useful in cases where
downloadable firmware at runtime can add or replace existing controls.
A separate patch needs to be made to allow ALSA Mixer to render the
replaced controls on the fly.

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/control.h
sound/core/control.c