diff options
author | Vinod Koul <vinod.koul@intel.com> | 2014-07-09 05:27:50 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-14 14:44:47 -0400 |
commit | 8813e66db73bfac940bfd08c31592365f0a56c74 (patch) | |
tree | d84c9b55785763a6343a3e4da262c8b8683f5908 | |
parent | 1ad0e33060a64121c1c7acb7ec21a4fdef4aaed6 (diff) |
ASoC: Intel: mfld: add dsp error codes
DSP returns error codes for IPC return so add them in driver
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/soc/intel/sst-mfld-dsp.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sound/soc/intel/sst-mfld-dsp.h b/sound/soc/intel/sst-mfld-dsp.h index 2c887855e7d8..4257263157cd 100644 --- a/sound/soc/intel/sst-mfld-dsp.h +++ b/sound/soc/intel/sst-mfld-dsp.h | |||
@@ -171,6 +171,21 @@ enum stream_type { | |||
171 | SST_STREAM_TYPE_MUSIC = 1, | 171 | SST_STREAM_TYPE_MUSIC = 1, |
172 | }; | 172 | }; |
173 | 173 | ||
174 | enum sst_error_codes { | ||
175 | /* Error code,response to msgId: Description */ | ||
176 | /* Common error codes */ | ||
177 | SST_SUCCESS = 0, /* Success */ | ||
178 | SST_ERR_INVALID_STREAM_ID = 1, | ||
179 | SST_ERR_INVALID_MSG_ID = 2, | ||
180 | SST_ERR_INVALID_STREAM_OP = 3, | ||
181 | SST_ERR_INVALID_PARAMS = 4, | ||
182 | SST_ERR_INVALID_CODEC = 5, | ||
183 | SST_ERR_INVALID_MEDIA_TYPE = 6, | ||
184 | SST_ERR_STREAM_ERR = 7, | ||
185 | |||
186 | SST_ERR_STREAM_IN_USE = 15, | ||
187 | }; | ||
188 | |||
174 | struct ipc_dsp_hdr { | 189 | struct ipc_dsp_hdr { |
175 | u16 mod_index_id:8; /*!< DSP Command ID specific to tasks */ | 190 | u16 mod_index_id:8; /*!< DSP Command ID specific to tasks */ |
176 | u16 pipe_id:8; /*!< instance of the module in the pipeline */ | 191 | u16 pipe_id:8; /*!< instance of the module in the pipeline */ |