@@ -83,7 +83,7 @@ extern dsp_status cfg_get_cd_version(OUT u32 *pdwVersion);
* Returns:
* DSP_SOK: Success.
* CFG_E_INVALIDHDEVNODE: dev_node_obj is invalid.
- * CFG_E_INVALIDPOINTER: phDevObject is invalid.
+ * -EFAULT: phDevObject is invalid.
* CFG_E_RESOURCENOTAVAIL: The resource is not available.
* Requires:
* CFG initialized.
@@ -126,7 +126,7 @@ extern dsp_status cfg_get_dsp_resources(IN struct cfg_devnode *dev_node_obj,
* Returns:
* DSP_SOK: Success.
* CFG_E_INVALIDHDEVNODE: dev_node_obj is invalid.
- * CFG_E_INVALIDPOINTER: pstrExecFile is invalid.
+ * -EFAULT: pstrExecFile is invalid.
* CFG_E_RESOURCENOTAVAIL: The resource is not available.
* Requires:
* CFG initialized.
@@ -147,7 +147,7 @@ extern dsp_status cfg_get_exec_file(IN struct cfg_devnode *dev_node_obj,
* pHostResTable: Ptr to a location to store the host resource table.
* Returns:
* DSP_SOK: On success.
- * CFG_E_INVALIDPOINTER: pHostResTable is invalid.
+ * -EFAULT: pHostResTable is invalid.
* CFG_E_INVALIDHDEVNODE: dev_node_obj is invalid.
* CFG_E_RESOURCENOTAVAIL: The resource is not available.
* Requires:
@@ -226,7 +226,7 @@ extern dsp_status cfg_get_wmd_file_name(IN struct cfg_devnode *dev_node_obj,
* pstrZLFileName: Ptr to character buf to hold ZLFileName.
* Returns:
* DSP_SOK: Success.
- * CFG_E_INVALIDPOINTER: pstrZLFileName is invalid.
+ * -EFAULT: pstrZLFileName is invalid.
* CFG_E_INVALIDHDEVNODE: dev_node_obj is invalid.
* CFG_E_RESOURCENOTAVAIL: couldn't find the ZLFileName.
* Requires:
@@ -216,9 +216,6 @@
/* FAILURE Codes : CFG */
#define CFG_EBASE (DSP_COMP_EBASE + 0x200)
-/* Invalid pointer passed into a configuration module function */
-#define CFG_E_INVALIDPOINTER (CFG_EBASE + 0x00)
-
/* Invalid device node handle passed into a configuration module function. */
#define CFG_E_INVALIDHDEVNODE (CFG_EBASE + 0x01)
@@ -60,7 +60,7 @@ dsp_status cfg_get_auto_start(struct cfg_devnode *dev_node_obj,
if (!dev_node_obj)
status = CFG_E_INVALIDHDEVNODE;
if (!pdwAutoStart)
- status = CFG_E_INVALIDPOINTER;
+ status = -EFAULT;
if (DSP_SUCCEEDED(status)) {
status = reg_get_value(AUTOSTART, (u8 *) pdwAutoStart,
&dw_buf_size);
@@ -122,7 +122,7 @@ dsp_status cfg_get_dsp_resources(struct cfg_devnode *dev_node_obj,
if (!dev_node_obj) {
status = CFG_E_INVALIDHDEVNODE;
} else if (!pDSPResTable) {
- status = CFG_E_INVALIDPOINTER;
+ status = -EFAULT;
} else {
status = reg_get_value(DSPRESOURCES, (u8 *) pDSPResTable,
&dw_res_size);
@@ -154,7 +154,7 @@ dsp_status cfg_get_exec_file(struct cfg_devnode *dev_node_obj, u32 ul_buf_size,
if (!dev_node_obj)
status = CFG_E_INVALIDHDEVNODE;
else if (!pstrExecFile)
- status = CFG_E_INVALIDPOINTER;
+ status = -EFAULT;
if (DSP_SUCCEEDED(status)) {
status =
@@ -188,7 +188,7 @@ dsp_status cfg_get_host_resources(struct cfg_devnode *dev_node_obj,
status = CFG_E_INVALIDHDEVNODE;
if (!pHostResTable)
- status = CFG_E_INVALIDPOINTER;
+ status = -EFAULT;
if (DSP_SUCCEEDED(status)) {
dw_buf_size = sizeof(struct cfg_hostres);