hdspmixer: Save preset before switching cards

When running with more than one card, switching cards would lose any
changes made to the current card. To avoid this inconvenience, save the
current settings to the virtual 9th preset and restore them when
switching back.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Adrian Knoth 2011-04-04 14:34:28 +02:00 committed by Takashi Iwai
parent 0b018d9a23
commit 7a865ce040
5 changed files with 47 additions and 1 deletions

View file

@ -48,6 +48,8 @@ public:
int channels_input, channels_playback, window_width, window_height, card_id;
int channels_output;
int type;
int last_preset; /* Last activated preset before switching to another card */
int last_dirty; /* Last dirty flag before switching to another card */
char *channel_map_input, *channel_map_playback;
char *dest_map;
char *meter_map_input, *meter_map_playback;