From: Takashi Iwai Subject: Re: [PATCH] hdajackretask: Fix "advanced override" bug Date: Fri, 01 Mar 2013 12:00:42 +0100 Message-ID: References: <1362085268-31957-1-git-send-email-david.henningsson@canonical.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id E654B265DF8 for ; Fri, 1 Mar 2013 12:00:44 +0100 (CET) In-Reply-To: <1362085268-31957-1-git-send-email-david.henningsson@canonical.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: David Henningsson Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Thu, 28 Feb 2013 22:01:08 +0100, David Henningsson wrote: > > The values were not correctly retreived from the comboboxes. > > Signed-off-by: David Henningsson Thanks, applied. Takashi > --- > hdajackretask/main-gtk.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/hdajackretask/main-gtk.c b/hdajackretask/main-gtk.c > index 65d0f3a..4227669 100644 > --- a/hdajackretask/main-gtk.c > +++ b/hdajackretask/main-gtk.c > @@ -183,14 +183,14 @@ static void update_user_pin_config(ui_data_t* ui) > continue; > > if (ui->free_overrides) { > - int i; > + int j; > int index; > unsigned long val = 0; > - for (i = 0; i < FREE_OVERRIDES_COUNT; i++) { > - index = gtk_combo_box_get_active(GTK_COMBO_BOX(pin_ui->jacktype)); > - if (index < 0) > + for (j = 0; j < FREE_OVERRIDES_COUNT; j++) { > + index = gtk_combo_box_get_active(GTK_COMBO_BOX(pin_ui->free_override_cb[j])); > + if (index < 0) > break; > - val += get_free_override_list(i)[index].value; > + val += get_free_override_list(j)[index].value; > } > if (index < 0) > continue; > -- > 1.7.9.5 >