[alsa-devel] [PATCH 1/5] ASoC: dapm: Fix return value of snd_soc_dapm_put_{volsw, enum_virt}()

Mark Brown broonie at kernel.org
Wed Jul 24 15:56:49 CEST 2013

On Wed, Jul 24, 2013 at 03:27:35PM +0200, Lars-Peter Clausen wrote:
> The ALSA core expect the put callback of a control to return 1 if the value of
> the control changed and 0 if it did not. Both snd_soc_dapm_put_volsw() and
> snd_soc_dapm_put_enum_virt() currently always returns 0. For both functions we
> already have a 'change' variable which either contains 1 or 0 depending on
> whether the value has changed or not, so just return that.

Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20130724/fb0e6739/attachment.sig>

More information about the Alsa-devel mailing list