]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm_adsp: Parse HOST_BUFFER controls
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Thu, 19 Jul 2018 10:50:39 +0000 (11:50 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 19 Jul 2018 14:11:56 +0000 (15:11 +0100)
commit180a4af4d11a9cfff955cd3d8f58758ffc75e8ce
tree30174d69a92b0b691dcf427c4395110d51ed2cbd
parentbed092e325ade6040c31878a6ca73720cf0ca945
ASoC: wm_adsp: Parse HOST_BUFFER controls

Currently the compressed streams in DSP firmwares are
identified essentially by looking at a fixed location inside
the firmware. This is fragile and also limits things to a
single compressed stream.

Here a new form of firmware parameter is added, the HOST_BUFFER
which identifies a compressed stream from meta-data in the
firmware file. This is more robust and allows for the possiblity
of using multiple streams per core in the future. Currently the
implementation is still limited to a single stream and will
use the first HOST_BUFFER parameter encountered. If there aren't
any HOST_BUFFER parameters it will fall back to the legacy way
of finding the host buffer.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c
sound/soc/codecs/wmfw.h