All pastes #1846658 Raw Edit

phh

public text v1 · immutable
#1846658 ·published 2010-03-20 14:34 UTC
rendered paste body
diff --git a/arch/arm/mach-msm/qdsp5/adsp.c b/arch/arm/mach-msm/qdsp5/adsp.cindex a784ff5..e902845 100644--- a/arch/arm/mach-msm/qdsp5/adsp.c+++ b/arch/arm/mach-msm/qdsp5/adsp.c@@ -34,6 +34,7 @@ #include <linux/wait.h> #include <linux/wakelock.h> #include <mach/amss_para.h>+#include "../smd_rpcrouter.h"  static struct wake_lock adsp_wake_lock; static inline void prevent_suspend(void)@@ -52,6 +53,8 @@ static inline void allow_suspend(void) uint32_t int_adsp = 0; #define RPC_ADSP_RTOS_ATOM_PROG 	0x3000000a #define RPC_ADSP_RTOS_MTOA_PROG 	0x3000000b+static unsigned adsp_cid=0xfadefade;    // we must register this cid early in smd init+                                        // don't know why it won't work if you register later.  static struct adsp_info adsp_info; static struct msm_rpc_endpoint *rpc_cb_server_client;@@ -1141,6 +1144,8 @@ static int msm_adsp_probe(struct platform_device *pdev) 		pr_err("adsp: could not create rpc server (%d)\n", rc); 		goto fail_rpc_open; 	}+        // this cid has to be registered early in rpc init so us the value from then.+	rpc_cb_server_client->cid=adsp_cid;  	rc = msm_rpc_register_server(rpc_cb_server_client, 				     RPC_ADSP_RTOS_MTOA_PROG,