ASoC: SOF: Intel: hda-loader: improve error handling
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 22 Oct 2019 19:28:43 +0000 (14:28 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 23 Oct 2019 16:45:45 +0000 (17:45 +0100)
commit76dc6a2b312d15c91ff4b4d171e98cdc73ba3745
tree862bf63018f9fffd9cba8c5d8c781c0f9ecca6ff
parentef5dee551e3e6568fb203ea57fa24f55cb64d451
ASoC: SOF: Intel: hda-loader: improve error handling

If a ROM timeout is detected, we still stop the DMA but will return
the initial error should the DMA stop also fail.

Likewise the cleanup is handled regardless of the status, but we
return the initial error.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191022192844.21022-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-loader.c