diff mbox

[2/7] ASoC: Intel: mfld: add dsp error codes

Message ID 1404898076-1882-3-git-send-email-vinod.koul@intel.com (mailing list archive)
State Accepted
Commit 8813e66db73bfac940bfd08c31592365f0a56c74
Headers show

Commit Message

Vinod Koul July 9, 2014, 9:27 a.m. UTC
DSP returns error codes for IPC return so add them in driver

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
 sound/soc/intel/sst-mfld-dsp.h |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

Comments

Mark Brown July 14, 2014, 6:45 p.m. UTC | #1
On Wed, Jul 09, 2014 at 02:57:50PM +0530, Vinod Koul wrote:
> DSP returns error codes for IPC return so add them in driver

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/intel/sst-mfld-dsp.h b/sound/soc/intel/sst-mfld-dsp.h
index 2c88785..4257263 100644
--- a/sound/soc/intel/sst-mfld-dsp.h
+++ b/sound/soc/intel/sst-mfld-dsp.h
@@ -171,6 +171,21 @@  enum stream_type {
 	SST_STREAM_TYPE_MUSIC = 1,
 };
 
+enum sst_error_codes {
+	/* Error code,response to msgId: Description */
+	/* Common error codes */
+	SST_SUCCESS = 0,        /* Success */
+	SST_ERR_INVALID_STREAM_ID = 1,
+	SST_ERR_INVALID_MSG_ID = 2,
+	SST_ERR_INVALID_STREAM_OP = 3,
+	SST_ERR_INVALID_PARAMS = 4,
+	SST_ERR_INVALID_CODEC = 5,
+	SST_ERR_INVALID_MEDIA_TYPE = 6,
+	SST_ERR_STREAM_ERR = 7,
+
+	SST_ERR_STREAM_IN_USE = 15,
+};
+
 struct ipc_dsp_hdr {
 	u16 mod_index_id:8;		/*!< DSP Command ID specific to tasks */
 	u16 pipe_id:8;	/*!< instance of the module in the pipeline */