mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-03-10 05:33:45 -04:00
hdajackretask: Fix "advanced override" bug
The values were not correctly retreived from the comboboxes. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
c2963afb19
commit
6391a860e8
1 changed files with 5 additions and 5 deletions
|
|
@ -183,14 +183,14 @@ static void update_user_pin_config(ui_data_t* ui)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (ui->free_overrides) {
|
if (ui->free_overrides) {
|
||||||
int i;
|
int j;
|
||||||
int index;
|
int index;
|
||||||
unsigned long val = 0;
|
unsigned long val = 0;
|
||||||
for (i = 0; i < FREE_OVERRIDES_COUNT; i++) {
|
for (j = 0; j < FREE_OVERRIDES_COUNT; j++) {
|
||||||
index = gtk_combo_box_get_active(GTK_COMBO_BOX(pin_ui->jacktype));
|
index = gtk_combo_box_get_active(GTK_COMBO_BOX(pin_ui->free_override_cb[j]));
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
break;
|
break;
|
||||||
val += get_free_override_list(i)[index].value;
|
val += get_free_override_list(j)[index].value;
|
||||||
}
|
}
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue