Guennadi Liakhovetski 9ef91cad92 ASoC: SOF: fix uninitialised "work" with VirtIO
In the VirtIO case the sof_pcm_open() function isn't called on the
host during guest streaming, which then leaves "work" structures
uninitialised. However it is then used to handle position update
messages from the DSP. Move their initialisation to immediately after
allocation of the containing structure.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20200325211233.27394-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-03-26 18:31:14 +00:00
..
2020-01-05 16:14:27 +01:00
2020-01-05 16:15:07 +01:00
2020-03-11 18:45:26 +00:00
2020-02-06 14:15:01 +00:00
2020-02-18 13:33:39 +01:00
2020-01-28 16:26:57 -08:00
2020-01-28 16:26:57 -08:00
2020-01-05 16:14:43 +01:00
2020-01-05 16:14:56 +01:00
2020-01-05 16:15:13 +01:00
2020-01-05 16:14:46 +01:00
2020-03-11 18:45:26 +00:00
2020-01-28 16:26:57 -08:00
2019-08-08 08:18:32 +02:00