Return-Path: Received: from mx1.suse.de (mail.suse.de [195.135.220.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx1.suse.de", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id A236867B22 for ; Tue, 30 May 2006 23:48:21 +1000 (EST) Date: Tue, 30 May 2006 15:48:17 +0200 Message-ID: From: Takashi Iwai To: Johannes Berg Subject: Re: [Alsa-devel] [RFC 4/7] snd-aoa: add codecs In-Reply-To: <1148996349.4372.7.camel@johannes> References: <20060528190026.754474000@johannes.berg> <20060528190125.927852000@johannes.berg> <1148992996.3102.8.camel@johannes> <1148995575.4372.5.camel@johannes> <1148996349.4372.7.camel@johannes> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: linuxppc-dev@ozlabs.org, alsa-devel@alsa-project.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , At Tue, 30 May 2006 15:39:09 +0200, Johannes Berg wrote: > > On Tue, 2006-05-30 at 15:35 +0200, Takashi Iwai wrote: > > > And I thought the put callbacks in your code always return either 1 or > > -err? > > Yeah, they return 1 if the change was applied (or no change) and -err if > there's an error about the change (only in very few cases). > > I figured the extra notification wouldn't hurt, and to the application > there wouldn't be a problem. Actually the extra notification won't hurt much in practice. I've seen that some drivers also don't check the unchanged case and return always 1, so apparently the apps work. But, it's of course better to check the state on the driver side. Takashi