From: Takashi Iwai Subject: Re: alsa-lib support for compress offload Date: Fri, 23 Jan 2015 07:41:02 +0100 Message-ID: References: <54B8DF7A.6000700@imgtec.com> <54B8F485.7090603@imgtec.com> <54B9413F.805@linux.intel.com> <54BD3D7F.6020105@imgtec.com> <54BD8036.5070405@linux.intel.com> <54BE25B7.1040606@imgtec.com> <20150121071053.GC28763@intel.com> <20150122215645.GF28763@intel.com> <54C173A4.4060706@linux.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 BF08D265379 for ; Fri, 23 Jan 2015 07:41:04 +0100 (CET) In-Reply-To: <54C173A4.4060706@linux.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: Pierre-Louis Bossart Cc: Vinod Koul , alsa-devel@alsa-project.org, Qais Yousef , Pierre-Louis Bossart , Mark Brown List-Id: alsa-devel@alsa-project.org At Thu, 22 Jan 2015 16:03:16 -0600, Pierre-Louis Bossart wrote: > > On 1/22/15 3:56 PM, Vinod Koul wrote: > > Can we actually support compress with current alsa APIs? If yes then we can > > do rework and keep current tinycompress APIs for Andporid and let core lib > > be reused, if not then we can go with these new APIs > > No. We need to be able to pass decoder/encoder parameters, and we need > the ability to deal with bytes, without any fixed mapping between bytes > and time. If we want any convergence we'd need ALSA to deal with bytes > only and not frames, in addition to the extra configuration steps, which > would be a complete API change. I don't think of merging the compress offload into PCM alsa-lib API. My point is only that the API function forms in tinycompress should be aligned with the existing alsa-lib API functions, e.g. open should take the name string, etc. Managing the compress offload into the PCM API would need redesigns, and I don't think it's worth. Takashi