summaryrefslogtreecommitdiffstats
path: root/package/multimedia/asterisk
ModeNameSize
-rw-r--r--Config.in319logstatsplainblame
-rw-r--r--asterisk.mk2960logstatsplainblame
-rw-r--r--asterisk_no_res_ninit.patch384logstatsplainblame
colspan='2' class='oid'>1004c64c1886e958f4a284a72f0f7770e75cdaed /drivers/staging/tidspbridge/include/dspbridge/drv.h parentstaging: ti dspbridge: use processor handle from context instead of user's (diff)downloadkernel-qcow2-linux-4ec09714a0a5861c3e786967024ddfff00b0add6.tar.gz
kernel-qcow2-linux-4ec09714a0a5861c3e786967024ddfff00b0add6.tar.xz
kernel-qcow2-linux-4ec09714a0a5861c3e786967024ddfff00b0add6.zip
staging: ti dspbridge: use stream id instead of kernel address
Send stream ids to the user instead of handles, then when the id is coming from user dspbridge can retrive the handle using id and avoid using invalid handles. Signed-off-by: Ernesto Ramos <ernesto@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/tidspbridge/include/dspbridge/drv.h')
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/drv.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/tidspbridge/include/dspbridge/drv.h b/drivers/staging/tidspbridge/include/dspbridge/drv.h
index 0b36a11820b5..f3650153ef35 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/drv.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/drv.h
@@ -131,7 +131,7 @@ struct strm_res_object {
void *hstream;
u32 num_bufs;
u32 dir;
- struct strm_res_object *next;
+ int id;
};
/* Overall Bridge process resource usage state */
@@ -173,8 +173,7 @@ struct process_context {
struct dspheap_res_object *pdspheap_list;
/* Stream resources */
- struct strm_res_object *pstrm_list;
- struct mutex strm_mutex;
+ struct idr *stream_id;
};
/*