ASoC: Intel: mfld: add dsp error codes
authorVinod Koul <vinod.koul@intel.com>
Wed, 9 Jul 2014 09:27:50 +0000 (14:57 +0530)
committerMark Brown <broonie@linaro.org>
Mon, 14 Jul 2014 18:44:47 +0000 (19:44 +0100)
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>
sound/soc/intel/sst-mfld-dsp.h

index 2c887855e7d8e422df3e721ba6b746c78f60a8da..4257263157cd2659e5832bbb08236a23d47f688f 100644 (file)
@@ -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 */