diff options
| author | Cezary Rojewski <cezary.rojewski@intel.com> | 2024-04-05 11:09:21 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-06-12 11:03:23 +0200 |
| commit | 3e35eb8449236e0f57588b98684d067804066fe5 (patch) | |
| tree | 726c915bb32c3d792a5b85ecd28a3a4cefe2e696 /sound | |
| parent | c923f05b018a1a00a51e0e5196c988eaa15429d8 (diff) | |
| download | linux-3e35eb8449236e0f57588b98684d067804066fe5.tar.gz linux-3e35eb8449236e0f57588b98684d067804066fe5.tar.bz2 linux-3e35eb8449236e0f57588b98684d067804066fe5.zip | |
ASoC: Intel: avs: Fix ASRC module initialization
[ Upstream commit 9d2e26f31c7cc3fa495c423af9b4902ec0dc7be3 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound')
| -rw-r--r-- | sound/soc/intel/avs/path.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/intel/avs/path.c b/sound/soc/intel/avs/path.c index ce157a8d6552..989a7a4127cd 100644 --- a/sound/soc/intel/avs/path.c +++ b/sound/soc/intel/avs/path.c @@ -308,6 +308,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; |
