projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
beeeee9
)
ASoC: Intel: avs: Fix ASRC module initialization
author
Cezary Rojewski
<cezary.rojewski@intel.com>
Fri, 5 Apr 2024 09:09:21 +0000
(11:09 +0200)
committer
Mark Brown
<broonie@kernel.org>
Fri, 5 Apr 2024 12:13:05 +0000
(13:13 +0100)
The ASRC module configuration consists of several reserved fields. Zero
them out when initializing the module to avoid sending invalid data.
Fixes:
274d79e51875
("ASoC: Intel: avs: Configure modules according to their type")
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link:
https://msgid.link/r/20240405090929.1184068-6-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/path.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/intel/avs/path.c
b/sound/soc/intel/avs/path.c
index 9bd03a44fcb9722c7d6b9f720a9da0bfc2b120fe..8dfd90587427f450d8e86a11cc7610271ea40b0a 100644
(file)
--- a/
sound/soc/intel/avs/path.c
+++ b/
sound/soc/intel/avs/path.c
@@
-365,6
+365,7
@@
static int avs_asrc_create(struct avs_dev *adev, struct avs_path_module *mod)
struct avs_tplg_module *t = mod->template;
struct avs_asrc_cfg cfg;
+ memset(&cfg, 0, sizeof(cfg));
cfg.base.cpc = t->cfg_base->cpc;
cfg.base.ibs = t->cfg_base->ibs;
cfg.base.obs = t->cfg_base->obs;