diff options
author | Peter Ujfalusi <peter.ujfalusi@linux.intel.com> | 2022-06-30 08:56:38 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-07-07 18:16:40 +0200 |
commit | fc976f5629afb4160ee77798b14a693eac903ffd (patch) | |
tree | f8abf591e7f877d225caa8a08249e89f2ba34c75 /block/blk-zoned.c | |
parent | ASoC: Intel: Skylake: Correct the ssp rate discovery in skl_get_ssp_clks() (diff) | |
download | linux-fc976f5629afb4160ee77798b14a693eac903ffd.tar.xz linux-fc976f5629afb4160ee77798b14a693eac903ffd.zip |
ASoC: Intel: Skylake: Correct the handling of fmt_config flexible array
The struct nhlt_format's fmt_config is a flexible array, it must not be
used as normal array.
When moving to the next nhlt_fmt_cfg we need to take into account the data
behind the ->config.caps (indicated by ->config.size).
The logic of the code also changed: it is no longer saves the _last_
fmt_cfg for all found rates.
Fixes: bc2bd45b1f7f3 ("ASoC: Intel: Skylake: Parse nhlt and register clock device")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20220630065638.11183-3-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'block/blk-zoned.c')
0 files changed, 0 insertions, 0 deletions