OSDN Git Service

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)
commit04ae08596737c4d3872dfb6e617c918d9ecf073e
treea865fd31403eb1d731c858e391e60c3de5795181
parent6477960755fb2c0ca9b0497bc86abfa4ee173556
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