From: Li Bo Subject: Re: [PATCH 8/31] HDA patch_via.c: Change VT1708S & VT1702 hp mode controls Date: Tue, 6 Oct 2009 12:44:28 +0800 Message-ID: <16685ee0910052144r444996bdqee29f374207cd7@mail.gmail.com> References: <16685ee0910050725u67cdf3b5g8dcd20275bcf773f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-fx0-f212.google.com (mail-fx0-f212.google.com [209.85.220.212]) by alsa0.perex.cz (Postfix) with ESMTP id B308210384E for ; Tue, 6 Oct 2009 06:44:29 +0200 (CEST) Received: by fxm8 with SMTP id 8so3304530fxm.45 for ; Mon, 05 Oct 2009 21:44:28 -0700 (PDT) In-Reply-To: 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: Takashi Iwai Cc: LoganLi@viatech.com.cn, alsa-devel@alsa-project.org, HaraldWelte@viatech.com, lydiawang@viatech.com.cn List-Id: alsa-devel@alsa-project.org Hi, Takashi When independent hp switches from on -> off: hp volume/switch is deactivated off -> hp volume switch is activated These 2 actions are one-shot setup, so we put "need reboot" to remind user that hp volume/switch update will only take effect after reboot. On Mon, Oct 5, 2009 at 11:04 PM, Takashi Iwai wrote: > At Mon, 5 Oct 2009 22:25:15 +0800, > Li Bo wrote: >> >> [ALSA] HDA VIA: Change VT1708S & VT1702 hp mode controls >> >> For VT1708S and VT1702, deactivate "Headphone Playback Volume" and >> "Headphone Playback Mute" control if "Independent HP" mode is OFF. >> and rename VT1702 "Independent HP" text. >> >> Signed-off-by: Lydia Wang >> @@ -3342,11 +3359,13 @@ >> >> =A0static int vt1702_auto_create_hp_ctls(struct via_spec *spec, hda_nid_= t pin) >> =A0{ >> - =A0 =A0 int err; >> - >> + =A0 =A0 int err, i; >> + =A0 =A0 struct hda_input_mux *imux; >> + =A0 =A0 static const char *texts[] =3D { "ON (need reboot)", >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0"OFF (need reboot)", >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0NULL}; > > These texts look very strange... > > > Takashi >