ASoC: wm_adsp: Attach buffers and streams together
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Tue, 15 Dec 2015 11:29:47 +0000 (11:29 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 23 Dec 2015 00:20:50 +0000 (00:20 +0000)
commit95fe9597d2494e8c4c9064fca1e12d1c03733ae7
tree136f57d69f474dded8fac9c8ceeaed8887db3df6
parent2cd19bdbf83c4c70b2ee36d022c5ded2738d2e19
ASoC: wm_adsp: Attach buffers and streams together

The stream is created whilst the compressed stream is opened and a
buffer is created when the DSP powers up. It is necessary at a point
once both the DSP has powered up and the the stream has been opened to
connect a stream to a buffer on the DSP. This is done in the trigger
callback as this is after the DSP has been powered and obviously the
stream must be open. Note that whilst the connect is currently trivial
it is expected that this will get more complex when support for multiple
buffers/streams per DSP is added.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm5110.c
sound/soc/codecs/wm_adsp.c
sound/soc/codecs/wm_adsp.h