2010-08-03 04:30:07

by Leandro Lucarella

[permalink] [raw]
Subject: Regression 2.6.35: Intel N10/ICH 7 Family HDA (Realtek ALC662 rev1) beep broken

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).

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. 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).

I would appreciate if somebody can give me some hints on how to get the beep
back.

Thank you.


Here is some data about my card, please let me know (Cc me please) if you need
any other information.

# lspci -vvs00:1b.0
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01)
Subsystem: Intel Corporation Device d613
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 44
Region 0: Memory at d0600000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Address: 00000000fee0f00c Data: 4181
Capabilities: [70] Express (v1) Root Complex Integrated Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <64ns, L1 <1us
ExtTag- RBE- FLReset-
DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop+
MaxPayload 128 bytes, MaxReadReq 128 bytes
DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend-
LnkCap: Port #0, Speed unknown, Width x0, ASPM unknown, Latency L0 <64ns, L1 <1us
ClockPM- Surprise- LLActRep- BwNot-
LnkCtl: ASPM Disabled; Disabled- Retrain- CommClk-
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed unknown, Width x0, TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
Capabilities: [100 v1] Virtual Channel
Caps: LPEVC=0 RefClk=100ns PATEntryBits=1
Arb: Fixed- WRR32- WRR64- WRR128-
Ctrl: ArbSelect=Fixed
Status: InProgress-
VC0: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
Arb: Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
Ctrl: Enable+ ID=0 ArbSelect=Fixed TC/VC=01
Status: NegoPending- InProgress-
VC1: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
Arb: Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
Ctrl: Enable- ID=0 ArbSelect=Fixed TC/VC=00
Status: NegoPending- InProgress-
Capabilities: [130 v1] Root Complex Link
Desc: PortNumber=0f ComponentID=00 EltType=Config
Link0: Desc: TargetPort=00 TargetComponent=00 AssocRCRB- LinkType=MemMapped LinkValid+
Addr: 00000000fed1c000
Kernel driver in use: HDA Intel



# cat /proc/asound/card0/codec#2
Codec: Realtek ALC662 rev1
Address: 2
Function Id: 0x1
Vendor Id: 0x10ec0662
Subsystem Id: 0x8086d613
Revision Id: 0x100101
No Modem Function Group found
Default PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=2, o=0, i=0, unsolicited=1, wake=0
IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 [Audio Output] wcaps 0x1d: Stereo Amp-Out
Control: name="Front Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Device: name="ALC662 rev1 Analog", type="Audio", device=0
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
Amp-Out vals: [0x19 0x19]
Converter: stream=0, channel=0
PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x03 [Audio Output] wcaps 0x1d: Stereo Amp-Out
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
Amp-Out vals: [0x40 0x40]
Converter: stream=0, channel=0
PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x04 [Audio Output] wcaps 0x1d: Stereo Amp-Out
Control: name="Headphone Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
Amp-Out vals: [0x19 0x19]
Converter: stream=0, channel=0
PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x05 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
Control: name="IEC958 Playback Con Mask", index=0, device=0
Control: name="IEC958 Playback Pro Mask", index=0, device=0
Control: name="IEC958 Playback Default", index=0, device=0
Control: name="IEC958 Playback Switch", index=0, device=0
Control: name="IEC958 Default PCM Playback Switch", index=0, device=0
Device: name="ALC662 rev1 Digital", type="SPDIF", device=1
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
PCM:
rates [0x160]: 44100 48000 96000
bits [0x1e]: 16 20 24 32
formats [0x1]: PCM
Node 0x07 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x08 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Control: name="Capture Switch", index=1, device=0
Control: name="Capture Volume", index=1, device=0
Amp-In caps: ofs=0x09, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals: [0x89 0x89]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:
rates [0x160]: 44100 48000 96000
bits [0x6]: 16 20
formats [0x1]: PCM
Connection: 1
0x23
Node 0x09 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Control: name="Capture Switch", index=0, device=0
Control: name="Capture Volume", index=0, device=0
Device: name="ALC662 rev1 Analog", type="Audio", device=0
Amp-In caps: ofs=0x09, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals: [0x15 0x15]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:
rates [0x160]: 44100 48000 96000
bits [0x6]: 16 20
formats [0x1]: PCM
Connection: 1
0x22
Node 0x0a [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Control: name="Mic Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Control: name="Mic Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Control: name="Front Mic Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=In, idx=1, ofs=0
Control: name="Front Mic Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=In, idx=1, ofs=0
Control: name="Line Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=In, idx=2, ofs=0
Control: name="Line Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=In, idx=2, ofs=0
Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals: [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 9
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16
Node 0x0c [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Control: name="Front Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x00 0x00]
Connection: 2
0x02 0x0b
Node 0x0d [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x00 0x00]
Connection: 2
0x03 0x0b
Node 0x0e [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Control: name="Headphone Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x00 0x00]
Connection: 2
0x04 0x0b
Node 0x0f [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x12 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x14 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x0001003c: IN OUT HP EAPD Detect
EAPD 0x2: EAPD
Pin Default 0x01014410: [Jack] Line Out at Ext Rear
Conn = 1/8, Color = Green
DefAssociation = 0x1, Sequence = 0x0
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Connection: 1
0x0c
Node 0x15 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x00010034: IN OUT EAPD Detect
EAPD 0x2: EAPD
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Connection: 1
0x0d
Node 0x16 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x00000034: IN OUT Detect
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Connection: 1
0x0e
Node 0x17 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x18 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Control: name="Mic Boost", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x80 0x80]
Pincap 0x00001734: IN OUT Detect
Vref caps: HIZ 50 GRD 80
Pin Default 0x01a19830: [Jack] Mic at Ext Rear
Conn = 1/8, Color = Pink
DefAssociation = 0x3, Sequence = 0x0
Pin-ctls: 0x24: IN VREF_80
Unsolicited: tag=00, enabled=0
Connection: 1
0x0e
Node 0x19 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Control: name="Front Mic Boost", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x80 0x80]
Pincap 0x0000173c: IN OUT HP Detect
Vref caps: HIZ 50 GRD 80
Pin Default 0x02a19931: [Jack] Mic at Ext Front
Conn = 1/8, Color = Pink
DefAssociation = 0x3, Sequence = 0x1
Misc = NO_PRESENCE
Pin-ctls: 0x24: IN VREF_80
Unsolicited: tag=00, enabled=0
Connection: 2
0x0c* 0x0e
Node 0x1a [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x80 0x80]
Pincap 0x00000034: IN OUT Detect
Pin Default 0x0181303f: [Jack] Line In at Ext Rear
Conn = 1/8, Color = Blue
DefAssociation = 0x3, Sequence = 0xf
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Connection: 1
0x0d
Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x0000173c: IN OUT HP Detect
Vref caps: HIZ 50 GRD 80
Pin Default 0x0221451f: [Jack] HP Out at Ext Front
Conn = 1/8, Color = Green
DefAssociation = 0x1, Sequence = 0xf
Misc = NO_PRESENCE
Pin-ctls: 0xc0: OUT HP VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 2
0x0c 0x0e*
Node 0x1c [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x00000020: IN
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN
Node 0x1d [Pin Complex] wcaps 0x400000: Mono
Pincap 0x00000020: IN
Pin Default 0x4004c601: [N/A] Line Out at Ext N/A
Conn = RCA, Color = UNKNOWN
DefAssociation = 0x0, Sequence = 0x1
Pin-ctls: 0x20: IN
Node 0x1e [Pin Complex] wcaps 0x400300: Mono Digital
Pincap 0x00000010: OUT
Pin Default 0x99430120: [Fixed] SPDIF Out at Int ATAPI
Conn = ATAPI, Color = Unknown
DefAssociation = 0x2, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Connection: 1
0x06
Node 0x1f [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
Processing caps: benign=0, ncoeff=12
Node 0x21 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x22 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Control: name="Input Source", index=0, device=0
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 10
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x0b
Node 0x23 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Control: name="Input Source", index=1, device=0
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 10
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x0b
Node 0x24 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x25 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x26 [Vendor Defined Widget] wcaps 0xf00000: Mono


--
Leandro Lucarella (AKA luca) http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
Novocaine for the soul
you better give me something
to fill the hole
before I sputter out


2010-08-03 05:42:21

by Takashi Iwai

[permalink] [raw]
Subject: Re: Regression 2.6.35: Intel N10/ICH 7 Family HDA (Realtek ALC662 rev1) beep broken

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

2010-08-03 13:45:04

by Leandro Lucarella

[permalink] [raw]
Subject: Re: Regression 2.6.35: Intel N10/ICH 7 Family HDA (Realtek ALC662 rev1) beep broken

Takashi Iwai, el 3 de agosto a las 07:42 me escribiste:
> 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?

No, I don't think I have any of them (cat cat /proc/bus/input/devices at the
end).


> Please give alsa-info.sh output.

I didn't know where to find the script, Google gave me this:
http://git.alsa-project.org/?p=alsa-driver.git;a=blob_plain;f=utils/alsa-info.sh
So this is what I've use. I've shared the results at:
http://www.alsa-project.org/db/?f=6a051da2475c7246f40c493a310fecb0a1a289f5

> > 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.

Well, my bad, I booted the wrong kernel when trying the patch. The patch
works correctly, so I'll be very glad if it hits Linus kernel soon :)

I could send you the patch but I don't know exactly what to put in the
commit message. The problem is the same as the one with the ASUS P5-V?

> > 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.

OK, thanks for the help.

I hope the patch is committed into the main kernel soon.



# cat /proc/bus/input/devices
I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input0
U: Uniq=
H: Handlers=sysrq kbd event0
B: EV=120013
B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/devices/platform/pcspkr/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=40001
B: SND=6

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input2
U: Uniq=
H: Handlers=kbd event2
B: EV=3
B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
U: Uniq=
H: Handlers=kbd event3
B: EV=3
B: KEY=10000000000000 0

I: Bus=0003 Vendor=09da Product=022b Version=0110
N: Name="A4Tech Wireless Battery Free Optical Mouse"
P: Phys=usb-0000:00:1d.2-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0/input/input4
U: Uniq=
H: Handlers=mouse0 event4
B: EV=17
B: KEY=ff0000 0 0 0 0
B: REL=303
B: MSC=10

I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=LNXVIDEO/video/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input5
U: Uniq=
H: Handlers=kbd event5
B: EV=3
B: KEY=3e000b00000000 0 0 0

--
Leandro Lucarella (AKA luca) http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
Demasiado lento para una estrella fugaz
Demasiado limpio para lo que vos acostumbras
Demasiado claro para tanta oscuridad
Demasiados sueños, poca realidad

2010-08-03 13:48:44

by Takashi Iwai

[permalink] [raw]
Subject: Re: Regression 2.6.35: Intel N10/ICH 7 Family HDA (Realtek ALC662 rev1) beep broken

At Tue, 3 Aug 2010 10:44:09 -0300,
Leandro Lucarella wrote:
>
> > Please give alsa-info.sh output.
>
> I didn't know where to find the script,

It's listed in Documentation/sound/alsa/HD-Audio.txt :)

> Google gave me this:
> http://git.alsa-project.org/?p=alsa-driver.git;a=blob_plain;f=utils/alsa-info.sh
> So this is what I've use. I've shared the results at:
> http://www.alsa-project.org/db/?f=6a051da2475c7246f40c493a310fecb0a1a289f5
>
> > > 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.
>
> Well, my bad, I booted the wrong kernel when trying the patch. The patch
> works correctly, so I'll be very glad if it hits Linus kernel soon :)
>
> I could send you the patch but I don't know exactly what to put in the
> commit message. The problem is the same as the one with the ASUS P5-V?

I can add such a trivial patch manually, of course. But I'd need
to know which machine you have (vendor/model name, etc).


thanks,

Takashi

2010-08-03 14:49:30

by Leandro Lucarella

[permalink] [raw]
Subject: Re: Regression 2.6.35: Intel N10/ICH 7 Family HDA (Realtek ALC662 rev1) beep broken

Takashi Iwai, el 3 de agosto a las 15:48 me escribiste:
> At Tue, 3 Aug 2010 10:44:09 -0300,
> Leandro Lucarella wrote:
> >
> > > Please give alsa-info.sh output.
> >
> > I didn't know where to find the script,
>
> It's listed in Documentation/sound/alsa/HD-Audio.txt :)

Woops!

> > Google gave me this:
> > http://git.alsa-project.org/?p=alsa-driver.git;a=blob_plain;f=utils/alsa-info.sh
> > So this is what I've use. I've shared the results at:
> > http://www.alsa-project.org/db/?f=6a051da2475c7246f40c493a310fecb0a1a289f5
> >
> > > > 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.
> >
> > Well, my bad, I booted the wrong kernel when trying the patch. The patch
> > works correctly, so I'll be very glad if it hits Linus kernel soon :)
> >
> > I could send you the patch but I don't know exactly what to put in the
> > commit message. The problem is the same as the one with the ASUS P5-V?
>
> I can add such a trivial patch manually, of course. But I'd need
> to know which machine you have (vendor/model name, etc).

Is a desktop box.
CPU Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz
Motherboard Intel Corporation DG41RQ

Let me know if you need any other information.


Thank you.

Here is the output of lshw:

# lshw -short
H/W path Device Class Description
===========================================================
system Desktop Computer
/0 bus DG41RQ
/0/0 memory 64KiB BIOS
/0/4 processor Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz
/0/4/5 memory 32KiB L1 cache
/0/4/6 memory 2MiB L2 cache
/0/2a memory 2GiB System Memory
/0/2a/0 memory DIMM Synchronous [empty]
/0/2a/1 memory 2GiB DIMM DDR2 Synchronous 800 MHz (1.2 ns)
/0/100 bridge 4 Series Chipset DRAM Controller
/0/100/1 bridge 4 Series Chipset PCI Express Root Port
/0/100/2 display 4 Series Chipset Integrated Graphics Controller
/0/100/1b multimedia N10/ICH 7 Family High Definition Audio Controller
/0/100/1c bridge N10/ICH 7 Family PCI Express Port 1
/0/100/1c.1 bridge N10/ICH 7 Family PCI Express Port 2
/0/100/1c.1/0 eth0 network RTL8111/8168B PCI Express Gigabit Ethernet controller
/0/100/1d bus N10/ICH 7 Family USB UHCI Controller #1
/0/100/1d.1 bus N10/ICH 7 Family USB UHCI Controller #2
/0/100/1d.2 bus N10/ICH 7 Family USB UHCI Controller #3
/0/100/1d.3 bus N10/ICH 7 Family USB UHCI Controller #4
/0/100/1d.7 bus N10/ICH 7 Family USB2 EHCI Controller
/0/100/1e bridge 82801 PCI Bridge
/0/100/1e/0 multimedia Bt848 Video Capture
/0/100/1f bridge 82801GB/GR (ICH7 Family) LPC Interface Bridge
/0/100/1f.1 scsi0 storage 82801G (ICH7 Family) IDE Controller
/0/100/1f.1/0.0.0 /dev/cdrom1 disk DVDRW SOHW-832S
/0/100/1f.1/0.0.0/0 /dev/cdrom1 disk
/0/100/1f.1/0.1.0 /dev/sda disk 160GB WDC WD1600JB-00G
/0/100/1f.1/0.1.0/1 /dev/sda1 volume 54MiB EXT3 volume
/0/100/1f.1/0.1.0/2 /dev/sda2 volume 74GiB Linux filesystem partition
/0/100/1f.1/0.1.0/3 /dev/sda3 volume 74GiB Linux filesystem partition
/0/100/1f.2 scsi2 storage N10/ICH7 Family SATA IDE Controller
/0/100/1f.2/0.0.0 /dev/sdb disk 640GB WDC WD6400AAKS-6
/0/100/1f.2/0.0.0/1 /dev/sdb1 volume 258MiB EXT3 volume
/0/100/1f.2/0.0.0/2 /dev/sdb2 volume 595GiB Extended partition
/0/100/1f.2/0.0.0/2/5 /dev/sdb5 volume 73GiB Linux filesystem partition
/0/100/1f.2/0.0.0/2/6 /dev/sdb6 volume 73GiB Linux filesystem partition
/0/100/1f.2/0.0.0/2/7 /dev/sdb7 volume 73GiB Linux filesystem partition
/0/100/1f.2/0.0.0/2/8 /dev/sdb8 volume 73GiB Linux filesystem partition
/0/100/1f.2/0.0.0/2/9 /dev/sdb9 volume 73GiB Linux filesystem partition
/0/100/1f.2/0.0.0/2/a /dev/sdb10 volume 73GiB Linux filesystem partition
/0/100/1f.2/0.0.0/2/b /dev/sdb11 volume 73GiB Linux filesystem partition
/0/100/1f.2/0.0.0/2/c /dev/sdb12 volume 77GiB Linux filesystem partition
/0/100/1f.3 bus N10/ICH 7 Family SMBus Controller


--
Leandro Lucarella (AKA luca) http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
Can you stand up?
I do believe it's working, good.
That'll keep you going through the show
Come on it's time to go.

2010-08-03 15:24:15

by Takashi Iwai

[permalink] [raw]
Subject: Re: Regression 2.6.35: Intel N10/ICH 7 Family HDA (Realtek ALC662 rev1) beep broken

At Tue, 3 Aug 2010 11:48:10 -0300,
Leandro Lucarella wrote:
>
> Takashi Iwai, el 3 de agosto a las 15:48 me escribiste:
> > At Tue, 3 Aug 2010 10:44:09 -0300,
> > Leandro Lucarella wrote:
> > >
> > > > Please give alsa-info.sh output.
> > >
> > > I didn't know where to find the script,
> >
> > It's listed in Documentation/sound/alsa/HD-Audio.txt :)
>
> Woops!
>
> > > Google gave me this:
> > > http://git.alsa-project.org/?p=alsa-driver.git;a=blob_plain;f=utils/alsa-info.sh
> > > So this is what I've use. I've shared the results at:
> > > http://www.alsa-project.org/db/?f=6a051da2475c7246f40c493a310fecb0a1a289f5
> > >
> > > > > 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.
> > >
> > > Well, my bad, I booted the wrong kernel when trying the patch. The patch
> > > works correctly, so I'll be very glad if it hits Linus kernel soon :)
> > >
> > > I could send you the patch but I don't know exactly what to put in the
> > > commit message. The problem is the same as the one with the ASUS P5-V?
> >
> > I can add such a trivial patch manually, of course. But I'd need
> > to know which machine you have (vendor/model name, etc).
>
> Is a desktop box.
> CPU Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz
> Motherboard Intel Corporation DG41RQ

OK, it's fine, I just wanted to be sure that it's no other brand.
The fix is now applied to sound tree, and will be included in the next
pull request, then will reach to stable tree.


thanks,

Takashi

2010-08-03 16:01:33

by Leandro Lucarella

[permalink] [raw]
Subject: Re: Regression 2.6.35: Intel N10/ICH 7 Family HDA (Realtek ALC662 rev1) beep broken

Takashi Iwai, el 3 de agosto a las 17:24 me escribiste:
> > > I can add such a trivial patch manually, of course. But I'd need
> > > to know which machine you have (vendor/model name, etc).
> >
> > Is a desktop box.
> > CPU Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz
> > Motherboard Intel Corporation DG41RQ
>
> OK, it's fine, I just wanted to be sure that it's no other brand.
> The fix is now applied to sound tree, and will be included in the next
> pull request, then will reach to stable tree.

Thank you.

--
Leandro Lucarella (AKA luca) http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
La esperanza es una amiga que nos presta la ilusión.