From: Takashi Iwai Subject: Re: [PATCH] hda: add HP automute support to Intel ALC889/ALC889A models Date: Thu, 30 Jul 2009 08:52:21 +0200 Message-ID: References: <20090730064725.GA7306@localhost> 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 5EA1C244E5 for ; Thu, 30 Jul 2009 08:52:21 +0200 (CEST) In-Reply-To: <20090730064725.GA7306@localhost> 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: Wu Fengguang Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Thu, 30 Jul 2009 14:47:25 +0800, Wu Fengguang wrote: > > +static struct hda_verb alc262_hippo_unsol_verbs[] = { > + {0x15, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN | ALC880_HP_EVENT}, > + {0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP}, > + {} > +}; I don't think it's good to move alc262 stuff into the middle of alc88x. Rather define a common content, e.g. alc_pin15_hp_automute_verbs[], and use it in all places. Or, to reduce the patch size, you can simply #define alc262_hippo_unsol_verbs alc_pin15_hp_automute_verbs thanks, Takashi