From: Takashi Iwai Subject: Re: [PATCH] compress: add support for gapless playback Date: Mon, 11 Feb 2013 16:30:42 +0100 Message-ID: References: <1360585365-16891-1-git-send-email-vinod.koul@intel.com> <20130211134147.GG3789@intel.com> <20130211145558.GH3789@intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id AECDB261670 for ; Mon, 11 Feb 2013 16:30:43 +0100 (CET) In-Reply-To: <20130211145558.GH3789@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Vinod Koul Cc: Jeeja KP , alsa-devel@alsa-project.org, broonie@opensource.wolfsonmicro.com, liam.r.girdwood@intel.com List-Id: alsa-devel@alsa-project.org At Mon, 11 Feb 2013 06:55:58 -0800, Vinod Koul wrote: > > On Mon, Feb 11, 2013 at 03:38:32PM +0100, Takashi Iwai wrote: > > Well, the question is how this value change is supposed. I guess it's > > not defined precisely yet. > > > > It'd make sense to clear padding or such automatically at each new > > stream switch, indeed. OTOH, what if a metadata is supposed to be > > kept for all tracks (e.g. something like the playback speed control)? > > > > So, this won't be only a question about bookkeeping in the compress > > core, but rather an API question. If all metadata are supposed to be > > cleared at stream change, it's fine -- the refresh of all metadata by > > user-space is mandatory. OTOH, if the metadata are never changed > > unless the stream is (re-)prepared, again, user-space has to manage > > all metadata by itself. There is no big difference between them. > > The difference is what happens if user-space doesn't update. > > > > If the behavior is defined per each parameter, maybe it's good for > > user-space, but then the driver (or comr core) becomes slightly more > > complex since it needs to clear some data selectively. > Current ones would be changed for every track, but then some wouldnt. > So its best left to userspace. So right now we have two things: > - add single key/value only > - or pad up struct. The implementation of ioctl is basically orthogonal with the question whether the driver implicitly clears the parameters or not... Takashi