[Alsa-devel] [RFC 4/7] snd-aoa: add codecs

Takashi Iwai tiwai at suse.de
Tue May 30 23:35:11 EST 2006


At Tue, 30 May 2006 15:26:10 +0200,
Johannes Berg wrote:
> 
> > > > > +	return 1;
> > > > 
> > > > The put callback is supposed to return 0 if the values are unchanged
> > > > (although most apps ignore the return value).
> > > 
> > > Does it have to? This way there's an event, but...
> > 
> > Yes, in principle.  As mentioned, it works even without the check,
> > though.
> 
> Hmm. I thought it worked like this:
>  0    -> no change
>  1    -> change applied, and other apps are notified, 0 returned to the app
> -err  -> error returned to app
> 
> Is that wrong?

It's correct.

And I thought the put callbacks in your code always return either 1 or
-err?


Takashi



More information about the Linuxppc-dev mailing list