Change preferred master logic
Review Request #116851 - Created March 17, 2014 and submitted
Change preferred master logic This makes the preferred master a permanent, user-based value and especially allows the control / device entry of MasterControl to stay empty to allow automatic selection of the device by the backend mixer set. This also adds an automatic entry to all non-stream mixers and always saves the the current preferred master, idependent of the current validity.
Hmm, this is a tough change. Have to take a closer look. In theory all that is described in the description should already work, but I once have stumbled across a bug report that says that preferred master is not saved. When testing this, we definitely need to check what happens with pluggable devices, especially USB cards (I own two, so I can even test multiple hotplugs). Saving master may be currently broken, if the card is unplugged before saving is done (e.g. unplug, then logout).
I added an "empty String" handling to Mixer::getGlobalMasterMD(). Also some minor changes in DialogSelectMaster, to count only controls having playback volume. I commited it as last action of the KDE Multimedia Sprint 2014 in Randa. I think it is a nice addition in the goal to polish and fine-tune KMix. Thanks for your patience Jan-Marek, and thanks again for your contribution.
Link to the commit: