OSDN Git Service

ucm: add cset-tlv
authorHsin-Yu Chao <hychao@chromium.org>
Wed, 13 Apr 2016 10:53:09 +0000 (18:53 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 13 Apr 2016 13:40:17 +0000 (15:40 +0200)
commite57b521c61f0df14b660ce6ba8c5009a63f5b115
tree36ba835563eceec390d91604f24d05ed2d296fbc
parent0c5e5c1801e5b1b55e46144ee29ca7a71f2812b0
ucm: add cset-tlv

This patch enables UCM to set a file in TLV format to kcontrol by:
cset-tlv "name='<kcontrol-name>' <path-to-file>"
This new 'cset-tlv' command will be used to write audio DSP to
specific alsa control, where the driver expectes a file in TLV
format.
The TLV file to set to kcontrol will be checked first by file size
not larger than 16 MB, and then examine if the length field reports
correct number of bytes in the TLV file.

Signed-off-by: Hsin-Yu Chao <hychao@chromium.org>
Reviewed-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/ucm/main.c
src/ucm/parser.c
src/ucm/ucm_local.h