From: Jonathan W. <jw...@ph...> - 2008-10-27 23:37:09
|
Hi Pieter > >> would it be possible without too much pain to check for the streaming > >> state and grey out those controls which are currently not available? > >> that would spare the users a lot of confusion. > > > > FYI I already do this for the MOTU mixer. If streaming is active, controls > > which would change the number of channels are disabled. The MOTU mixer > > interface provides the streaming status of the device via a dbus element so > > the mixer code itself doesn't have to worry about the details as to whether > > streaming is active. Furthermore, since the status comes from the device it > > guards against truly strange setups where one PC might have activated > > streaming while another is being used for mixer control. > > I just committed a generalization of this idea for any Control::Element. > I used this to disable the generic samplerate and clocksource controls > in the ffadomixer (qt4). I also 'protected' the controls of the saffire > pro that cause a device reset. Looks good to me. > Note that this NOT enforced by libffado itself but only by the python > code. IOW if you reconfigure the samplerate through another dbus client, > the device will accept this. Yep. The MOTU restrictions are similarly only enforced in the python code at present. At some point I'll look into making the libffado code more robust but there are other more important issues to deal with first. Regards jonathan |