[alsa-devel] Regression for Lenovo X240 sound in 3.18

Takashi Iwai tiwai at suse.de
Tue Dec 30 17:20:25 CET 2014


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  <text/plain; US-ASCII (7bit)>]
> > 
> > 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)


More information about the Alsa-devel mailing list