OSDN Git Service

control_external: Add ability to specify TLV data.
authorDylan Reid <dgreid@chromium.org>
Sun, 15 Apr 2012 23:59:55 +0000 (16:59 -0700)
committerTakashi Iwai <tiwai@suse.de>
Mon, 16 Apr 2012 08:16:17 +0000 (10:16 +0200)
commita6c50d64d9d06cece520d0ab9b109990241af47b
tree7ae9eef41767413efc3b2b5392b8674c6c11bc2a
parented0e48583fbd9dc9d86dad25bb26ac089b9e3528
control_external: Add ability to specify TLV data.

Allow external control plugins to provide TLV data.  This allows
user-space pcms to specify dB ranges for controls.

This follows the same model as the ALSA drivers for accessing the
data.  The code is based on that implementation.  The control can
provide static data or a callback.  The data is accessed or modified
in the new snd_ctl_ext_elem_tlv callback.

Rev bump the protocol version to enable checking if an external
control supports TLV.

Signed-off-by: Dylan Reid <dgreid@chromium.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/control_external.h
src/control/control_ext.c