mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-02-24 01:40:12 -05:00
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:
parent
0b018d9a23
commit
7a865ce040
5 changed files with 47 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue