diff options
author | Ernesto Ramos <ernesto@ti.com> | 2010-07-28 16:04:56 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-02 17:11:03 -0700 |
commit | 4ec09714a0a5861c3e786967024ddfff00b0add6 (patch) | |
tree | 1004c64c1886e958f4a284a72f0f7770e75cdaed /drivers/staging/tidspbridge/include/dspbridge/drv.h | |
parent | 6bcc9beed2d46c0db479a3750af4b2cbd7a92401 (diff) |
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.h | 5 |
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 0b36a11820b..f3650153ef3 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; }; /* |