From patchwork Tue Dec 30 16:20:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takashi Iwai X-Patchwork-Id: 5552741 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3477D9F2B9 for ; Tue, 30 Dec 2014 16:20:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 501F62017E for ; Tue, 30 Dec 2014 16:20:49 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 6DE0D20173 for ; Tue, 30 Dec 2014 16:20:47 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 3D7DF2606B1; Tue, 30 Dec 2014 17:20:44 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id F15B4260674; Tue, 30 Dec 2014 17:20:33 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id DADED260679; Tue, 30 Dec 2014 17:20:32 +0100 (CET) Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 711A5260672 for ; Tue, 30 Dec 2014 17:20:25 +0100 (CET) Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 51927ACDA; Tue, 30 Dec 2014 16:20:25 +0000 (UTC) Date: Tue, 30 Dec 2014 17:20:25 +0100 Message-ID: From: Takashi Iwai To: Jan Engelhardt In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.4 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Cc: alsa-devel@alsa-project.org, mr.bobukas@gmail.com Subject: Re: [alsa-devel] Regression for Lenovo X240 sound in 3.18 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" 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 X-Virus-Scanned: ClamAV using ClamSMTP At Tue, 30 Dec 2014 16:45:38 +0100, Takashi Iwai wrote: > > At Tue, 30 Dec 2014 16:30:39 +0100 (CET), > Jan Engelhardt wrote: > > > > [1 ] > > > > On Tuesday 2014-12-30 16:15, Takashi Iwai wrote: > > > > > >> - speakers do not output _any_ sound whatsoever anymore > > > > > >Are you using PulseAudio or without? Try to check without PA at > > >first. > > > > I never use PA, so this is all with plain ALSA. > > > > >In anyway, get alsa-info.sh outputs at the headphone plugged and > > >unplugged on both 3.17.x and 3.18.x kernels. Run the script with > > >--no-upload option and attach them. > > Please give both headphone plugged and unplugged for both kernels > (total 4 states). Ah, I see you disable the automute. So the headphone plug shouldn't matter. Hm, then there is nothing obvious wrong there at a quick glance. Maybe there is an implicit fixed connection between a DAC and a pin? Try the patch below. Takashi diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 65f1f4e18ea5..8b51772c7420 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5440,6 +5440,16 @@ static int patch_alc269(struct hda_codec *codec) spec->init_hook = alc5505_dsp_init; } + { // XXX + static hda_nid_t preferred_pairs[] = { + 0x14, 0x03, + 0x15, 0x02, + 0x16, 0x02, + 0 + }; + spec->gen.preferred_dacs = preferred_pairs; + } + /* automatic parse from the BIOS config */ err = alc269_parse_auto_config(codec); if (err < 0)