Re: [PATCH v3 7/9] media: vimc: Dynamically allocate stream struct

2020-09-12 Thread Kaaira Gupta
On Wed, Sep 02, 2020 at 11:29:31AM +0100, Kieran Bingham wrote: > Hi Kaaira, > > On 19/08/2020 19:04, Kaaira Gupta wrote: > > Multiple streams will share same stream struct if we want them to run on > > same thread. So remove it from vimc_cap struct so that it doesn't get > > destroyed when one of

Re: [PATCH v3 7/9] media: vimc: Dynamically allocate stream struct

2020-09-02 Thread Kieran Bingham
Hi Kaaira, On 19/08/2020 19:04, Kaaira Gupta wrote: > Multiple streams will share same stream struct if we want them to run on > same thread. So remove it from vimc_cap struct so that it doesn't get > destroyed when one of the capture does, and allocate it memory > dynamically. Use kref with it as

[PATCH v3 7/9] media: vimc: Dynamically allocate stream struct

2020-08-19 Thread Kaaira Gupta
Multiple streams will share same stream struct if we want them to run on same thread. So remove it from vimc_cap struct so that it doesn't get destroyed when one of the capture does, and allocate it memory dynamically. Use kref with it as it will be used by multiple captures. Signed-off-by: Kaaira