]> git.alsa-project.org Git - alsa-tools.git/commit
hdspmixer: Recall 1st preset on all cards, not just on the first
authorAdrian Knoth <adi@drcomp.erfurt.thur.de>
Mon, 4 Apr 2011 12:34:29 +0000 (14:34 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 Apr 2011 06:22:33 +0000 (08:22 +0200)
commit92413b739e07d2451abfb95bae42bbbd74e60e15
tree8a6da1b5e6185d59d9855089837755ff086d92c8
parent7a865ce04036ee092a07a131c1bc3b38ae810c9c
hdspmixer: Recall 1st preset on all cards, not just on the first

With the new "store current settings to the virtual 9th preset" before
switching cards code, one needs to make sure the actual mixer state is
loaded with sane values, either from the preset file or a generic
builtin preset.

Calling preset_change(1) is sufficient, setting all the required data.
However, in case of more than one RME card in the system, one needs to
call this function for each card, otherwise, some of the cards store
uninitialized data to the 9th preset, resulting in a weird mixer state
afterwards.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
hdspmixer/src/HDSPMixerWindow.cxx