At Wed, 21 Jan 2015 09:55:16 +0800, han.lu@intel.com wrote:
From: "Lu, Han" han.lu@intel.com
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
The contents are almost good, but I got a few compile warnings.
================ main.c: In function 'binary_file_parse': main.c:185:2: warning: implicit declaration of function 'stat' [-Wimplicit-function-declaration] if (stat(filepath, &st) == -1) { ^ main.c:201:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (read(fd, res, sz) != sz) { ^ main.c: In function 'execute_sequence': main.c:252:5: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized] if (err < 0) ^ main.c:285:6: note: 'err' was declared here int err = 0; ^ ================
Takashi