diff options
author | Peter Ujfalusi <peter.ujfalusi@linux.intel.com> | 2023-09-15 14:40:15 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-09-15 13:15:31 +0100 |
commit | c2d8f17ed0c70816737cbf8f530d2178ee6affbb (patch) | |
tree | 2f5d91fb50177ee436c7d8c35e5f49dc01fc8ab3 /sound/soc/sof/ipc4.c | |
parent | 353bc9924cb1b7176fdc4ebb3610306398f41c94 (diff) | |
download | linux-stable-c2d8f17ed0c70816737cbf8f530d2178ee6affbb.tar.gz linux-stable-c2d8f17ed0c70816737cbf8f530d2178ee6affbb.tar.bz2 linux-stable-c2d8f17ed0c70816737cbf8f530d2178ee6affbb.zip |
ASoC: SOF: ipc4: Convert status code 2 and 15 to -EOPNOTSUPP
The status code 2 and 15 can be translated to -EOPNOTSUPP, so convert them
to a meaningful error number.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Chao Song <chao.song@linux.intel.com>
Link: https://lore.kernel.org/r/20230915114018.1701-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/ipc4.c')
-rw-r--r-- | sound/soc/sof/ipc4.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/sof/ipc4.c b/sound/soc/sof/ipc4.c index ab6eddd91bb7..24e9c29f3579 100644 --- a/sound/soc/sof/ipc4.c +++ b/sound/soc/sof/ipc4.c @@ -99,6 +99,10 @@ static int sof_ipc4_check_reply_status(struct snd_sof_dev *sdev, u32 status) to_errno: switch (status) { + case 2: + case 15: + ret = -EOPNOTSUPP; + break; case 8: case 11: case 105 ... 109: |