Charles Keepax 7f7cca08ab
ASoC: wm_adsp: Simplify handling of alg offset and length
The current code that reads the algorithm list from the DSP is
somewhat unclear, it converts directly from bytes to registers using
a hard coded divide by 2. Most offsets are usually handled in DSP
words within the driver and there is a function specifically for
converting from words to register addresses. So update the handling
to use these. This also removes the assumption that the registers
are 16-bit word addressed, which will no longer be true on some of
our newer parts.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2018-06-20 12:18:12 +01:00
..
2018-02-12 09:37:29 +00:00
2015-10-05 17:42:49 +01:00
2018-02-19 16:53:10 +00:00
2018-02-27 10:41:34 +00:00
2015-07-07 13:35:13 +01:00
2018-02-21 11:19:57 +00:00
2017-06-13 19:30:53 +01:00
2018-02-15 17:14:16 +00:00
2018-06-18 12:54:38 +01:00
2016-08-08 11:55:20 +01:00
2018-06-18 12:54:38 +01:00
2018-02-20 12:05:58 +00:00
2018-03-02 13:17:04 +00:00
2018-03-02 13:17:04 +00:00
2018-04-26 12:44:15 +01:00
2018-05-18 17:46:03 +01:00
2017-07-18 14:46:20 +01:00
2015-12-19 12:02:18 +00:00
2018-02-12 11:48:26 +00:00
2018-02-12 11:48:26 +00:00
2014-07-02 20:49:25 +01:00
2018-06-18 12:54:38 +01:00
2018-06-18 12:54:38 +01:00
2018-05-18 11:20:11 +01:00
2016-06-26 12:28:13 +01:00
2018-06-01 12:05:30 +01:00
2018-06-01 12:05:30 +01:00
2015-04-08 19:25:40 +01:00