From: Takashi Iwai Subject: Re: [PATCH] compress: add support for gapless playback Date: Thu, 14 Feb 2013 10:13:57 +0100 Message-ID: References: <1360831371-27602-1-git-send-email-vinod.koul@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 353AC2651D2 for ; Thu, 14 Feb 2013 10:13:58 +0100 (CET) In-Reply-To: <1360831371-27602-1-git-send-email-vinod.koul@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 Thu, 14 Feb 2013 14:12:51 +0530, Vinod Koul wrote: > > this add new API for sound compress to support gapless playback. > As noted in Documentation change, we add API to send metadata of encoder and > padding delay to DSP. Also add API for indicating EOF and switching to > subsequent track > > Also bump the compress API version > > Signed-off-by: Jeeja KP > Signed-off-by: Vinod Koul > --- > v5: > - update metadata value with 8 words What's the reason behind this change? I can think of metadata like EQ parameters, but the magic number 8 is in question :) I'm no enthusiastic over minimalism like Apple, so I don't mind this change, but just out of curiosity... Also, another spot: > @@ -145,6 +160,10 @@ struct snd_compr_codec_caps { > struct snd_compr_codec_caps) > #define SNDRV_COMPRESS_SET_PARAMS _IOW('C', 0x12, struct snd_compr_params) > #define SNDRV_COMPRESS_GET_PARAMS _IOR('C', 0x13, struct snd_codec) > +#define SNDRV_COMPRESS_SET_METADATA _IOW('C', 0x14,\ > + struct snd_compr_metadata) > +#define SNDRV_COMPRESS_GET_METADATA _IOW('C', 0x15,\ > + struct snd_compr_metadata) Isn't it _IOWR()? Takashi