From: Takashi Iwai Subject: Re: [PATCH] ALSA: HDA: Refactor Realtek's automute Date: Tue, 20 Sep 2011 17:01:36 +0200 Message-ID: References: <4E786A56.3080202@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 41D56103A57 for ; Tue, 20 Sep 2011 17:01:37 +0200 (CEST) In-Reply-To: <4E786A56.3080202@canonical.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: David Henningsson Cc: ALSA Development Mailing List List-Id: alsa-devel@alsa-project.org At Tue, 20 Sep 2011 12:26:30 +0200, David Henningsson wrote: > > Ok, my automute refactoring has been rebased to your latest tree. I've > tested it on my own machine, but I don't know if wider testing is needed > to ensure there are no regressions. Thanks. alc_simple_setup_automute() calls can be more simplified. The function can check spec->autocfg.line_out_pins[0], hp_pins[0] and speaker_pins[0] to identify detect_hp & co flags. Otherwise, the arguments "1, 0, 0, 1" are hard to understand. Other than that, the patch looks good to me. Takashi