From: Takashi Iwai Subject: Re: Regression for Lenovo X240 sound in 3.18 Date: Tue, 30 Dec 2014 17:20:25 +0100 Message-ID: References: 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 711A5260672 for ; Tue, 30 Dec 2014 17:20:25 +0100 (CET) In-Reply-To: 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 To: Jan Engelhardt Cc: alsa-devel@alsa-project.org, mr.bobukas@gmail.com List-Id: alsa-devel@alsa-project.org 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)