[alsa-devel] HD-audio regression after commit 34588709af61be1550b4e2bcee5c85d0ac4f34d4
Manolo Díaz
diaz.manolo at gmail.com
Thu Jan 17 19:12:24 CET 2013
El jue, 17 ene 2013 a las 16:32 horas
Takashi Iwai escribió:
>At Thu, 17 Jan 2013 09:59:20 -0500,
>Miro Hodak wrote:
>>
>> On Thu, Jan 17, 2013 at 7:49 AM, Raymond Yau <superquad.vortex2 at gmail.com>wrote:
>>
>> >
>> > >
>> > > OK, now as far as Auto-Mute goes, should it do what expected when
>> > enabled - i.e. muting the speakers when headphones are connected to the
>> > front panel? I have tried that, does not seem to work.
>> > >
>> >
>> > Do your computer chassis have a hda front audio panel with Jack detection ?
>> >
>> > The front headphone Jack should return true when headphone Jack is plugged
>> >
>> > control.35 {
>> > iface CARD
>> > name 'Front Headphone Jack'
>> >
>> > value false
>> > comment {
>> > access read
>> > type BOOLEAN
>> > count 1
>> > }
>> > }
>> >
>> > All ADI codecs support impedance measurement
>> >
>> > Try the modified hda-jack-sense-test which need hda-analyzer
>> >
>> > http://thread.gmane.org/gmane.linux.alsa.devel/90911/focus=91115
>> >
>>
>> Hmmm, ran into some python issues. Even hda-analyzer itself is not working:
>> ...
>> File "/dev/shm/hda-analyzer/hda_proc.py", line 143, in wrongfile
>> raise ValueError, "wrong proc file format (%s)" % msg
>> ValueError: wrong proc file format (integer decode 'State of AFG node
>> 0x01:' ('Node '))
>
>Ah, it's a new proc file entry that has been added recently.
>hda-analyzer needs to be fixed.
>
>In anyway, only for checking the presence unsolicited events, you can
>do without extra program. Suppose you built your kernel with the
>tracing support. See "Tracepoints" option in
>Documentation/sound/alsa/HD-Audio.txt.
>
> # echo 1 > /sys/kernel/debug/tracing/events/hda/hda_unsol_event/enable
>
> (plug and unplug your headphone jacks)
>
> # cat /sys/kernel/debug/tracing/trace
>
>If you see some hda_unsol_event lines there, it implies that the jack
>detection basically works in hardware level.
>
>
>Takashi
I Suppose that when auto-mute is enabled an HP independent is disabled,
inserting the HP jack should disable sound from front speakers. If so
then auto-mute doesn't work. Jack insertion/extraction events are well
detected for front speakers and HP.
#~ cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 4/4 #P:2
#
# _-----=> irqs-off
# / _----=> need-resched
# | / _---=> hardirq/softirq
# || / _--=> preempt-depth
# ||| / delay
# TASK-PID CPU# |||| TIMESTAMP FUNCTION
# | | | |||| | |
<idle>-0 [001] d.h. 137.881919: hda_unsol_event: [0] res=8000000, res_ex=10
<idle>-0 [001] d.h. 162.511102: hda_unsol_event: [0] res=8000000, res_ex=10
<idle>-0 [001] d.h. 246.529813: hda_unsol_event: [0] res=4000000, res_ex=10
<idle>-0 [001] d.h. 272.381719: hda_unsol_event: [0] res=4000000, res_ex=10
branch tested: test/hda-gen-parser
commit 6f4c53a1467c51966e06a1d29c6f0fee85d5c6f6
Merge: 920544e 29476558
Author: Takashi Iwai <tiwai at suse.de>
Date: Thu Jan 17 09:56:33 2013 +0100
Regards,
--
Manolo Díaz
More information about the Alsa-devel
mailing list