OSDN Git Service

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)
commitd52ed4b0bc73c1c7816f5b7a36229a95acfc76c8
tree30174d69a92b0b691dcf427c4395110d51ed2cbd
parent3bbc2705a3d132b9a86a0e4083f82a2b3c9bfdfd
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