[OMAPZOOM] [PATCH] DSPBRIDGE DSP getProcessor state fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



DSP getProcessor state updated to cover
DSP Hibernation state

Signed-off-by: Hari Kanigeri <h-kanigeri2@xxxxxx>
---
 drivers/dsp/bridge/rmgr/proc.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/drivers/dsp/bridge/rmgr/proc.c b/drivers/dsp/bridge/rmgr/proc.c
index eb7781d..64bb124
--- a/drivers/dsp/bridge/rmgr/proc.c
+++ b/drivers/dsp/bridge/rmgr/proc.c
@@ -925,6 +925,8 @@ DSP_STATUS PROC_GetState(DSP_HPROCESSOR hProcessor,
 			case BRD_STOPPED:
 				pProcStatus->iState = PROC_STOPPED;
 				break;
+			case BRD_DSP_HIBERNATION:
+				/* Fall through */
 			case BRD_RUNNING:
 				pProcStatus->iState = PROC_RUNNING;
 				break;
@@ -935,6 +937,7 @@ DSP_STATUS PROC_GetState(DSP_HPROCESSOR hProcessor,
 				pProcStatus->iState = PROC_ERROR;
 				break;
 			default:
+				pProcStatus->iState = 0xFF;
 				status = DSP_EFAIL;
 				break;
 			}
@@ -967,7 +970,8 @@ DSP_STATUS PROC_GetState(DSP_HPROCESSOR hProcessor,
 	}
 	GT_2trace(PROC_DebugMask, GT_ENTER,
 		 "Exiting PROC_GetState, results:\n\t"
-		 "status:  0x%x\n\tpProcStatus: 0x%x\n", status, *pProcStatus);
+		 "status:  0x%x\n\tpProcStatus: 0x%x\n", status,
+		 pProcStatus->iState);
 	return status;
 }
 
-- 
1.5.6.rc2

Thank you,
Best regards,
Hari

Attachment: 0001-DSPBRIDGE-DSP-getProcessor-fixed.patch
Description: 0001-DSPBRIDGE-DSP-getProcessor-fixed.patch


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux