Stuart Henderson <[email protected]> wrote: > On 2020/07/25 09:20, Theo de Raadt wrote: > > The normal idiom is when last-close happens in a driver, all modal-state > > is lost and restored to default, and when you use the driver again -- > > the new open gets you a raw configuration which is then changed via > > ioctl, before futher use. > > Isn't this a bit like volume controls for audio which do exist outside > of a particular application's opening of the device?
That is soft state, and operate in a global experience context. Please also consider more than volume controls. With audio, I think it is the only major knob, but what's being proposed is a big collection of knobs. I'm not sure I see the set of camera ops the same way as volume control. Also see my message relating to 'reset', back to the default state. No such thing exists in audio. I think this is the difference between subsystem (soft state), versus driver state (much more hard state)
