ASoC: rt5677: Allow arbitrary block read/write via SPI
authorBen Zhang <benzh@chromium.org>
Sat, 22 Aug 2015 04:17:00 +0000 (21:17 -0700)
committerMark Brown <broonie@kernel.org>
Tue, 25 Aug 2015 16:34:30 +0000 (17:34 +0100)
commit7d4d443eb4386d6dbd420fa96303dd8fbc1eefc8
tree9eb7d85d1dea45e38e3b4f0a5382ea49fce5003a
parentf8163c8673efaabb361281a2759b3167d181ecf6
ASoC: rt5677: Allow arbitrary block read/write via SPI

Added rt5677_spi_read() and refactored rt5677_spi_write() so that
an arbitrary block in the DSP address space can be read/written
via SPI. For example, this allows us to load an ELF DSP firmware
with sparse sections, and stream audio samples from DSP ring buffer.

Signed-off-by: Ben Zhang <benzh@chromium.org>
Acked-by: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5677-spi.c
sound/soc/codecs/rt5677-spi.h
sound/soc/codecs/rt5677.c