Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

firmware: cs_dsp: Allow creation of event controls

Some firmwares contain controls intended to convey firmware state back
to the host. Whilst more infrastructure will probably be needed for
these in time, as a first step allow creation of the controls, so said
firmwares arn't completely rejected.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20211117132300.1290-10-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Charles Keepax and committed by
Mark Brown
5c903f64 f444da38

+2
+1
drivers/firmware/cirrus/cs_dsp.c
··· 1177 1177 return -EINVAL; 1178 1178 break; 1179 1179 case WMFW_CTL_TYPE_HOSTEVENT: 1180 + case WMFW_CTL_TYPE_FWEVENT: 1180 1181 ret = cs_dsp_check_coeff_flags(dsp, &coeff_blk, 1181 1182 WMFW_CTL_FLAG_SYS | 1182 1183 WMFW_CTL_FLAG_VOLATILE |
+1
include/linux/firmware/cirrus/wmfw.h
··· 29 29 #define WMFW_CTL_TYPE_ACKED 0x1000 /* acked control */ 30 30 #define WMFW_CTL_TYPE_HOSTEVENT 0x1001 /* event control */ 31 31 #define WMFW_CTL_TYPE_HOST_BUFFER 0x1002 /* host buffer pointer */ 32 + #define WMFW_CTL_TYPE_FWEVENT 0x1004 /* firmware event control */ 32 33 33 34 struct wmfw_header { 34 35 char magic[4];