]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: avs: Copy only as many RX bytes as necessary
authorCezary Rojewski <cezary.rojewski@intel.com>
Thu, 7 Jul 2022 12:41:45 +0000 (14:41 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 8 Jul 2022 17:53:20 +0000 (18:53 +0100)
commitd695b72f879e1f28e28775e2024d795a879615e6
tree8cc5e0c9face9df2cb3a208e93511e6d2a28d0f4
parent600d5e621e9aa96964e9de2a901aa06fb7a5acae
ASoC: Intel: avs: Copy only as many RX bytes as necessary

There is no need to copy number of bytes specified by IPC message caller
if DSP firmware returned lower number. In consequence, LARGE_CONFIG_GET
handler is simplified.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20220707124153.1858249-5-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/ipc.c
sound/soc/intel/avs/messages.c