ASoC: sigmadsp: Restructure in preparation for fw v2 support
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 19 Nov 2014 17:29:05 +0000 (18:29 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 20 Nov 2014 09:55:34 +0000 (09:55 +0000)
commitd48b088e3ec45eeccf0fce0b75378e41428f47e9
tree2a81e6d82c6aeeaf35620938f4079d290748b4bf
parent6b25730f68073ee95079d241ea6aa7be00805254
ASoC: sigmadsp: Restructure in preparation for fw v2 support

The v2 file format of the SigmaDSP takes a more declarative style compared
to the imperative style of the v1 format. In addition some features that are
supported with v2 require the driver to keep state around for the firmware.
This requires a bit of restructuring of both the firmware loader itself and
the drivers making use of the firmware loader.

Instead of loading and executing the firmware in place when the DSP is
configured the firmware is now loaded at driver probe time. This is required
since the new firmware format will in addition to the firmware data itself
contain meta information describing the firmware and its requirements and
capabilities. Those will for example be used to restrict the supported
samplerates advertised by the driver to userspace to the list of samplerates
supported for the firmware.

This only does the restructuring required by the v2 format, but does not
yet add support for the new format itself.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/adau1701.c
sound/soc/codecs/adau1761.c
sound/soc/codecs/adau1781.c
sound/soc/codecs/adau17x1.c
sound/soc/codecs/adau17x1.h
sound/soc/codecs/sigmadsp-i2c.c
sound/soc/codecs/sigmadsp-regmap.c
sound/soc/codecs/sigmadsp.c
sound/soc/codecs/sigmadsp.h