diff options
author | Ranjani Sridharan <ranjani.sridharan@linux.intel.com> | 2020-08-26 11:45:32 -0700 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-08-27 14:22:24 +0100 |
commit | 01d42d5a0a70bdcece7228232590f177e7114368 (patch) | |
tree | 8204d06288311b83a96325cb8bc36c5fc1e4a4f0 /include/sound | |
parent | 8b98491a6b8c41a7e4334fb94a58c268d831458e (diff) |
ASoC: SOF: Intel: hda: Simplify error handling during FW boot
Modify cl_stream_prepare() to return a pointer to the prepared stream
if successful or ERR_PTR() otherwise. This would simplify the error
paths in hda_dsp_cl_boot_firmware() and hda_dsp_cl_boot_firmware_iccmax()
to perform the stream cleanup after FW boot. This change also renders
the function get_stream_with_tag() redundant.
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20200826184532.1612070-9-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
0 files changed, 0 insertions, 0 deletions