[ltp] Re: [CALL FOR TESTING] users of hda-intel, thinkpad-acpi and kernel > 2.6.30

Bjørn Mork linux-thinkpad@linux-thinkpad.org
Tue, 03 Nov 2009 19:08:21 +0100


kionez <kionez@anche.no> writes:

> Hi,
>
> seems that with new ALSA version ( starting frm kernel 2.6.30) we loose
> the beep functionality on our thinkpads. Probably, as Henrique de Moraes
> Holschuh write in this ML, is related to "ALSA switching the HDA
> mixer+codec to "digital beeps" or whatever, which is incompatible with
> the signal path used by the firmware." [1]
>
> I would like to collect some test in order to report them to alsa-devel
> mailing list.
>
> So, make sure that:
>
> - you have an hda-itel soundcard (according to thinkwiki these chips are
>  installed into R/T/X/Z 60 [2] and R/T/X/Z 61 [3] )

Only those chips or any HDA Intel?  AFAICS, the X301 is also using the
snd-hda-intel driver:

nemi:/home/bjorn# lspci -nnvvs 1b
00:1b.0 Audio device [0403]: Intel Corporation 82801I (ICH9 Family) HD Audio Controller [8086:293e] (rev 03)
        Subsystem: Lenovo Device [17aa:20f2]
        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 B routed to IRQ 17
        Region 0: Memory at f0620000 (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 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [60] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
                Address: 0000000000000000  Data: 0000
        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- Suprise- 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] Virtual Channel <?>
        Capabilities: [130] Root Complex Link <?>
        Kernel driver in use: HDA Intel
        Kernel modules: snd-hda-intel

nemi:/home/bjorn# cat /dev/sndstat 
Sound Driver:3.8.1a-980706 (ALSA v1.0.20 emulation code)
Kernel: Linux nemi 2.6.31-1-amd64 #1 SMP Sat Oct 24 17:50:31 UTC 2009 x86_64
Config options: 0

Installed drivers: 
Type 10: ALSA emulation

Card config: 
HDA Intel at 0xf0620000 irq 17

Audio devices:
0: CONEXANT Analog (DUPLEX)

Synth devices: NOT ENABLED IN CONFIG

Midi devices: NOT ENABLED IN CONFIG

Timers:
7: system timer

Mixers:
0: Conexant CX20561 (Hermosa)



> - the laptop is running on AC power (and not on battery power)
> - thinkpad-acpi is correctly loaded into kernel
> - alsa mixer and volumes are set correctly (i.e.: Beep is not mute)
>
> then, the first test:
>
> Try to generate simply three beeps with thinkpad-acpi:
>
> # echo 2 > /proc/acpi/ibm/beep
>
> as root, or with sudo
>
> $ sudo sh -c 'echo 2 > /proc/acpi/ibm/beep'

beeps 3 times

> and now the second one:
>
> Try to detach power chord, in order to produce the two firmware beeps
> that notify the switch from powerline to battery.

double beep both when detaching and attaching the power chord.

> Please report here the results of two test ( do you ear beeps? :P ) ,
> the distribution you're using and kernel version ( $ uname -a ).

Thinkpad X301

Debian sid/lenny

bjorn@nemi:~$  uname -a 
Linux nemi 2.6.31-1-amd64 #1 SMP Sat Oct 24 17:50:31 UTC 2009 x86_64 GNU/Linux



Bjørn