Hi!
This series of patches was developed for EMAtech. They discovered that when running with multiple cards, switching between cards would lose all current changes made to the last active card.
Obviously, this is undesired behaviour. Though rather small, it nearly took me 6hrs to get this right, and it could still be improved, but I like to take hdspmixer into a completely different direction:
I want to remove the card switching code completely and simply run a single instance per card, that is, if you have more than one card, you'll say something like hdspmixer -c 1 (or even a card name).
Likewise, the preset files should then only contain the settings for a single card. Right now, it stores everything for three cards, and if you have four, then you'd be left in the rain. Also, when the order of cards changes, the mixer settings would end up on the wrong card.
Long story short: the current approach is a dead-end.
Cheers
Adrian Knoth (4): hdspmixer: Add a 9th pseudo preset hdspmixer: Save preset before switching cards hdspmixer: Recall 1st preset on all cards, not just on the first hdspmixer: Initialize headphones out in presets
hdspmixer/src/HDSPMixerCard.cxx | 1 + hdspmixer/src/HDSPMixerCard.h | 2 + hdspmixer/src/HDSPMixerCardSelector.cxx | 2 + hdspmixer/src/HDSPMixerIOMixer.cxx | 2 +- hdspmixer/src/HDSPMixerIOMixer.h | 2 +- hdspmixer/src/HDSPMixerOutput.cxx | 4 +- hdspmixer/src/HDSPMixerOutput.h | 2 +- hdspmixer/src/HDSPMixerWindow.cxx | 48 ++++++++++++++++++++++++++++-- hdspmixer/src/HDSPMixerWindow.h | 4 ++- hdspmixer/src/defines.h | 6 ++++ 10 files changed, 63 insertions(+), 10 deletions(-)