> And you didn't tell me if the thinkpad-acpi driver does see changes in the
> mute state properly, yet.  Please confirm that (but do NOT try to change the
> volume, just check if the driver reports the mute state correctly, comparing
> it with the mute led when you press the mute key, press it multiple times,
> and also do mute/unmute cycles using mute and volume up/down).
Sorry I forgot, the acpi driver recognizes the mute state.
Press any times is only to mute, not toggle. Then press up/down will
unmute the sound.

As a good news, the mute bit in the volume byte is correct in ANY
times, even if someone is doing some funny thing with the volume in
procfs.

> So, it mutes only the speakers on hardware, and not speakers+headphone?
>
> That's _bad_.
> ...
> How does mute and volume work in Windows?  How do they behave re. the
> spearkeds?  re. the headphone?

In Windows, the mute button works as a mute toggle key. And it works
with the headphone.

> That won't go down well, you need a mute _SWITCH_ to send absolute (mute)
> and (unmute) events to do what you want properly, as keycodes can make the
> mixer get out of sync with the firmware mute.
>
> The problem is that KEY_MUTE is actually KEY_TOGGLEMUTE, so it cannot be
> used to syncronize two systems with memory if one of them can receive
> external events (and the HDA mixer _CAN_, you just need an external keyboard
> with a mute key, or to open the mixer applet and mute/unmute directly).
I see... Then It's better to write another userspace program to
syncronize with HDA mixer and the ec memory, since someone may prefer
OSS than ALSA
What I mean to emulate a keycode is not to determine whether the mute
button is pressed, it is to determine after some time, whether the
mute bit changed, if it was changed, mute the alsa sound.

In fact, tpb provide some functions, but the code of tpb is somehow bad...

-- 
Sincerely,
    Yang Zhe

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
ibm-acpi-devel mailing list
ibm-acpi-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel

Reply via email to