]> git.alsa-project.org Git - alsa-lib.git/commit
ucm: add binary configure file parse
authorLu, Han <han.lu@intel.com>
Thu, 22 Jan 2015 01:32:47 +0000 (09:32 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 23 Jan 2015 16:21:27 +0000 (17:21 +0100)
commit6ea14c3624c0cbcf90e7d5859b4af629523b8d82
tree784ff6d0f8c9d4109900ad5d77369a547925cca3
parent3b5fac6d10c580aee14642df8f94caad15dd53f0
ucm: add binary configure file parse

with cset command, UCM set kcontrol parameters directly:
    cset "name='<KCONTROL_NAME>' 1<,2,3,...>"
This patch enables UCM to set kcontrol with parameters from
configure file:
    cset-bin-file "name='<KCONTROL_NAME>' <path/to/file>"
where "cset-bin-file" is a newly added keyword alongside of "cset",
to indicate cset with binary data in file.
The binary data in file is parameter for audio DSPs, and it's just
passed by UCM/ALSA as raw data. The data type of parameter elements
must be byte, and the count must matches driver definition.

Signed-off-by: Lu, Han <han.lu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/ucm/main.c
src/ucm/parser.c
src/ucm/ucm_local.h