Re: Proposal for channel coordination between multiple v4l2 users

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



Tom Zoerner <tomzo@xxxxxxxxxx> writes:

> Looks fine to me.  Only, since you're using a separate semaphore for
> priority updates - which drivers will probably not apply in addition to
> the hardware access semaphore around execution of SET ioctls - it might
> be better to modify v4l2_prio_change() so that the new prio is set
> before the old one is released.  Else a low-prio SET ioctl might get
> through in the middle (e.g. between a change from interactive to record
> level.)

Good point.  And I think when doing updates in set-release order we
can drop the lock altogether and use atomic_t for the prios array
instead.

  Gerd

-- 
sigfault




[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux