lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 23 Feb 2010 08:36:44 +0100
From:	Clemens Ladisch <clemens@...isch.de>
To:	Henrique de Moraes Holschuh <hmh@....eng.br>
CC:	ibm-acpi-devel@...ts.sourceforge.net, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] thinkpad-acpi: fix return value of volume callbacks

Henrique de Moraes Holschuh wrote:
> On Mon, 22 Feb 2010, Clemens Ladisch wrote:
> > Fix up the volume status setting functions to return a non-zero value if
> > the control value has changed, so that the ALSA framework can correctly
> > generate control change notifications.
> 
> Please explain...

ALSA sends notifications to all mixer application when the value of
any mixer control has changed.  To be able to avoid sending them for
controls that did not actually change, it uses the return value of the
.put callback: 0 means the control value did not change; 1 means it has
changed (or might have changed), and a notification is to be sent.
<http://www.alsa-project.org/~tiwai/writing-an-alsa-driver/ch06s05.html#control-interface-callbacks-put>


Regards,
Clemens
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ