[alsa-devel] [PATCH 0/4] hdspmixer: rescue current mixer settings when switching cards

Takashi Iwai tiwai at suse.de
Wed Apr 6 08:28:28 CEST 2011

At Mon,  4 Apr 2011 14:34:26 +0200,
Adrian Knoth wrote:
> 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.

But if you have single setup files, the card-order issue still
applies, no?

Though, I understand that a file-per-card is far easier to handle.

> Long story short: the current approach is a dead-end.

Go ahead!

Anyway, I applied your patches now.  Thanks.


More information about the Alsa-devel mailing list