]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm_adsp: Switch to using wm_coeff_read_ctrl for compressed buffers
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 13 Sep 2021 16:00:44 +0000 (17:00 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 Sep 2021 12:00:30 +0000 (13:00 +0100)
commit9a14ab5a0276c10aee38deab10af2361f6792450
treea865fd31403eb1d731c858e391e60c3de5795181
parenta4622d30008ee213df6f85e35045ff86b83ad04a
ASoC: wm_adsp: Switch to using wm_coeff_read_ctrl for compressed buffers

When parsing a compressed buffer from the firmware the driver currently
open codes reading the firmware coefficient containing the buffer
description. Improve this slightly by using the coefficient read
functions already provided by the wm_adsp driver. It is worth noting
this change requires the running variable to be set before
wm_adsp_buffer_init is called, however this is safe, since its all still
under the power lock and nothing in the compressed code gates itself on
running.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210913160057.103842-4-simont@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c