From: Takashi Iwai Subject: Re: [PATCH 2/3] ALSA: compress_core: Split copy into seperate read and write callbacks Date: Tue, 09 Apr 2013 16:30:37 +0200 Message-ID: References: <1364991209-24653-1-git-send-email-ckeepax@opensource.wolfsonmicro.com> <1364991209-24653-2-git-send-email-ckeepax@opensource.wolfsonmicro.com> <515DC015.7040704@linux.intel.com> <20130405082344.GA20026@opensource.wolfsonmicro.com> <20130409111507.GF31193@intel.com> <20130409114727.GP9243@opensource.wolfsonmicro.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 A4AFB265E28 for ; Tue, 9 Apr 2013 16:30:38 +0200 (CEST) In-Reply-To: <20130409114727.GP9243@opensource.wolfsonmicro.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: Mark Brown Cc: alsa-devel@alsa-project.org, Vinod Koul , patches@opensource.wolfsonmicro.com, Pierre-Louis Bossart , lgirdwood@gmail.com, Charles Keepax List-Id: alsa-devel@alsa-project.org At Tue, 9 Apr 2013 12:47:28 +0100, Mark Brown wrote: > > [1 ] > On Tue, Apr 09, 2013 at 04:45:07PM +0530, Vinod Koul wrote: > > On Fri, Apr 05, 2013 at 09:23:45AM +0100, Charles Keepax wrote: > > > On Thu, Apr 04, 2013 at 01:01:57PM -0500, Pierre-Louis Bossart wrote: > > > > > Why not remove the const to make this consistent with the PCM interface? > > > > I had been trying to avoid loosing the const from the write file > > > operation, however I am happy to just loose this through casting > > > instead. It is certainly a simpler change I will respin these to > > > do so. > > > Keeping const of write seems to be a better idea... Ah i cant decide :( > > I will asker wiser folks... Takashi, Mark? > > I generally prefer the const correctness, but on the other hand Pierre > is right about the PCM interface and it's probably more trouble than > it's worth to change that. So meh, dunno :/ I'm inclined to take an easier approach, just removing const, in such a case. If we do split to read & write, it should be done for PCM as well. There are only handful users, so it shouldn't be too hard. Takashi