ALSA: bebob: Correction for return value of .put callback
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 22 Jul 2014 14:13:56 +0000 (23:13 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 22 Jul 2014 14:21:54 +0000 (16:21 +0200)
commitf77ac91e8edade4755f732d52fa094dc3bfd8b8e
tree8ba708e922f0dc20e0dfb52bcff26b501c8b7840
parent5a0438f4a6328b47bd3c00b2f03eb766cc72a75c
ALSA: bebob: Correction for return value of .put callback

This commit is for correction of my misunderstanding about return value of
.put callback in ALSA Control interface.

According to 'Writing ALSA Driver' (*1), return value of the callback has
three patterns; 1: changed, 0: not changed, an negative value: fatal error.

But I misunderstood that it's boolean; zero or nonzero.

*1: Writing an ALSA Driver (2005, Takashi Iwai)
http://www.alsa-project.org/main/index.php/ALSA_Driver_Documentation

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/bebob/bebob_maudio.c