Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755192Ab0HCFmV (ORCPT ); Tue, 3 Aug 2010 01:42:21 -0400 Received: from cantor2.suse.de ([195.135.220.15]:54683 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755093Ab0HCFmT (ORCPT ); Tue, 3 Aug 2010 01:42:19 -0400 Date: Tue, 03 Aug 2010 07:42:16 +0200 Message-ID: From: Takashi Iwai To: Leandro Lucarella Cc: linux-kernel@vger.kernel.org, Jaroslav Kysela , Kailang Yang , Daniel T Chen , alsa-devel@alsa-project.org Subject: Re: Regression 2.6.35: Intel N10/ICH 7 Family HDA (Realtek ALC662 rev1) beep broken In-Reply-To: <20100803040054.GX3508@llucax.com.ar> References: <20100803040054.GX3508@llucax.com.ar> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.1 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2202 Lines: 61 At Tue, 3 Aug 2010 01:00:54 -0300, Leandro Lucarella wrote: > > Hi. I've upgraded from kernel 2.6.34 to 2.6.35 and the beep through the > sound card stopped working. I found a very similar problem[1] > (commit[2]). > > [1] http://lkml.org/lkml/2010/7/28/228 > [2] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=dc1eae256cfac03bf17bf3eb016e3a6423d3f9d5 > > I've tried to manually enabling the beep with the steps in the e-mail > thread I found: > > # echo -n 1 > /sys/class/sound/hwC0D2/subsystem_id > # echo -n 1 > /sys/class/sound/hwC0D2/reconfig > > But it didn't work (the beep still goes through the pcspkr). So, you want to hook the beep over codec but it doesn't work, right. Do you get "Beep" mixer elements and the dedicated input device? Please give alsa-info.sh output. > I've tried to naively (I'm not a kernel hacker, so I was just guessing) add a > new entry with the quirks beep_white_list by copying the entry for ASUS like > this: > > diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c > index 596ea2f..ca3ed12 100644 > --- a/sound/pci/hda/patch_realtek.c > +++ b/sound/pci/hda/patch_realtek.c > @@ -5183,6 +5183,7 @@ static void fillup_priv_adc_nids(struct hda_codec *codec, hda_nid_t *nid > > static struct snd_pci_quirk beep_white_list[] = { > SND_PCI_QUIRK(0x1043, 0x829f, "ASUS", 1), > + SND_PCI_QUIRK(0x8086, 0xd613, "INTEL", 1), > {} > }; > > But it didn't work either. Hm, this should work. At least, you should have beep mixer & co with this. > Then I noticed, if I'm understanding the source code > (sound/pci/hda/patch_realtek.c) and documentation > (Documentation/sound/alsa/HD-Audio-Models.txt) right, that my card is not > present in the models listing, but it worked fine in 2.6.34 (and previous) > kernel(s). This is no problem. The model entry is only for special cases. For normal machines, no quirks are needed. Takashi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/