From: Takashi Iwai Subject: Re: [PATCH 1/2] ALSA: compress: Add SNDRV_PCM_STATE_PREPARED state explanation Date: Fri, 04 Mar 2016 17:50:11 +0100 Message-ID: References: <1457103330-18135-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 (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 713B7265767 for ; Fri, 4 Mar 2016 17:50:12 +0100 (CET) In-Reply-To: <1457103330-18135-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: liam.r.girdwood@linux.intel.com, patches.audio@intel.com, alsa-devel@alsa-project.org, broonie@kernel.org List-Id: alsa-devel@alsa-project.org On Fri, 04 Mar 2016 15:55:29 +0100, Vinod Koul wrote: > > Stream states were explained in the code comments but > SNDRV_PCM_STATE_PREPARED was missed so add it > > Signed-off-by: Vinod Koul Applied both patches. Thanks. Takashi > --- > sound/core/compress_offload.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c > index 7fac3cae8abd..51a8eb495f54 100644 > --- a/sound/core/compress_offload.c > +++ b/sound/core/compress_offload.c > @@ -74,6 +74,9 @@ struct snd_compr_file { > * SNDRV_PCM_STATE_SETUP: When stream has been initialized. This is done by > * calling SNDRV_COMPRESS_SET_PARAMS. running streams will come to this > * state at stop by calling SNDRV_COMPRESS_STOP, or at end of drain. > + * SNDRV_PCM_STATE_PREPARED: When a stream has been written to (for > + * playback only). User after setting up stream writes the data buffer > + * before starting the stream. > * SNDRV_PCM_STATE_RUNNING: When stream has been started and is > * decoding/encoding and rendering/capturing data. > * SNDRV_PCM_STATE_DRAINING: When stream is draining current data. This is done > -- > 1.9.1 >