From: Takashi Iwai Subject: Re: hda Regression: jack doesn't mute speaker Date: Thu, 16 Apr 2009 10:41:28 +0200 Message-ID: References: <49E65947.1090406@odi.ch> <49E6D8C0.4040206@odi.ch> <49E6DCED.90804@odi.ch> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 38069103926 for ; Thu, 16 Apr 2009 10:41:29 +0200 (CEST) In-Reply-To: <49E6DCED.90804@odi.ch> 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: Ortwin =?ISO-8859-1?Q?Gl=FCck?= Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Thu, 16 Apr 2009 09:23:25 +0200, Ortwin Gl=FCck wrote: > = > Takashi Iwai wrote: > >>>> Also the "Front" = > >>>> and "Surround" outputs are now both labeled "Speaker" (see attached = images of kmix). > >>> What I/O are they actually corresponding to? Are they speaker outputs > >>> or line-outs, or anything else? > >> They correspond to the built-in speakers. > > = > > So they are really front/surround 4.0-speaker outputs? > = > Probably. They seem to control two distinct speakers inside the laptop. M= ore I = > don't know. In OS-X there is only a single volume control (a sacrifice to = > usability I think. who would want to control individual volumes of these = on a = > laptop anyway). The problem is likely because hp_detect field isn't set on your machine because the headphone shares the same audio-out widget with the speaker out. Could you try the patch below? thanks, Takashi --- diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index ce30b45..917bc5d 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c @@ -3076,6 +3076,11 @@ static int create_multi_out_ctls(struct hda_codec *c= odec, int num_outs, unsigned int wid_caps; = for (i =3D 0; i < num_outs && i < ARRAY_SIZE(chname); i++) { + if (type =3D=3D AUTO_PIN_HP_OUT && !spec->hp_detect) { + wid_caps =3D get_wcaps(codec, pins[i]); + if (wid_caps & AC_WCAP_UNSOL_CAP) + spec->hp_detect =3D 1; + } nid =3D dac_nids[i]; if (!nid) continue; @@ -3119,11 +3124,6 @@ static int create_multi_out_ctls(struct hda_codec *c= odec, int num_outs, err =3D create_controls_idx(codec, name, idx, nid, 3); if (err < 0) return err; - if (type =3D=3D AUTO_PIN_HP_OUT && !spec->hp_detect) { - wid_caps =3D get_wcaps(codec, pins[i]); - if (wid_caps & AC_WCAP_UNSOL_CAP) - spec->hp_detect =3D 1; - } } } return 0;