Gary Winiger wrote:
>> I wonder how we do "object reuse" scrubbing for a webcam ?  Ask the user 
>> to put a cloth over the camera ;-)
> 
>       The same as we do /dev/audio.  We reset any state that can be
>       read out to some default state.  We also control which user
>       is authorized access to /dev/audio.

/dev/audio is completely different.  It is a device node looked after by 
a kernel driver.

libsane is a CONSUMER of a device node provided by ugen(7D) [via libusb].

libsane is to the scanner device as /usr/bin/audiorecord is to 
/dev/audio - an unprivileged userland consumer of the device.

It isn't /usr/bin/audiorecord that is responsible for participating in 
the device allocation / object reuse.

-- 
Darren J Moffat

Reply via email to